Mercurial > public > gradleplugins
comparison src/main/groovy/org/ssdt_ohio/gradle/doc/tools/UserClassDocProxy.groovy @ 20:e8e14d5d6be2
improve formatting. exclude @transient and version
author | smith@nwoca.org |
---|---|
date | Fri, 08 Jan 2016 20:16:44 +0000 |
parents | 8400a7db1330 |
children | e2d02e8742be |
comparison
equal
deleted
inserted
replaced
19:c3527be50f56 | 20:e8e14d5d6be2 |
---|---|
11 class UserClassDocProxy extends groovy.util.Proxy { | 11 class UserClassDocProxy extends groovy.util.Proxy { |
12 | 12 |
13 GroovyFieldDoc[] properties() { | 13 GroovyFieldDoc[] properties() { |
14 println "getting properties for $adaptee" | 14 println "getting properties for $adaptee" |
15 getAdaptee().properties().findAll { GroovyFieldDoc p -> | 15 getAdaptee().properties().findAll { GroovyFieldDoc p -> |
16 !p.isTransient() | 16 !p.isTransient() && |
17 p.name() != 'version' && | |
18 !p.annotations().any { it.name().contains('Transient') } | |
17 } | 19 } |
18 | 20 |
19 } | 21 } |
20 | 22 |
21 def propertyMissing(String name) { getAdaptee()."$name" } | 23 def propertyMissing(String name) { getAdaptee()."$name" } |
22 | 24 |
23 } | 25 } |