jboz / plantuml-builder

Plantuml diagram from java sources
Apache License 2.0
45 stars 10 forks source link

Groovy / Grails support #8

Closed tlefevre closed 1 year ago

tlefevre commented 4 years ago

I tried using this project in a Groovy / Grails project, but unfortunately both of them do a lot of wizardry in regards to classes.

Groovy itself adds this synthetic field to classes:

private transient groovy.lang.MetaClass com.example.metaClass

Various frameworks, like Grails and Gorm, add a lot of stuff into classes via traits. Common for them all are that their names start with the trait name (dots converted to underscores) and then two underscores followed by the field name. Eg.

private transient boolean com.example.org_grails_datastore_gorm_GormValidateable__skipValidate

The above would be from the org.grails.datastore.gorm.GormValidateable trait and it has the skipValidate field that is added to the class that implements the trait.

All this adds a lot of extra garbage to the plantuml. Would you consider filtering these out? Or make a way to add custom filters for field names? Possibly with regex capabilities?

jboz commented 4 years ago

Hello, sorry I'm not a user of this tools. Could you do an example project with the expected result? Or even make a pull request ;)