Mercurial > public > gradleplugins
annotate 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 |
rev | line source |
---|---|
15
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
1 /* |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
2 * Copyright (c) 2013. Ohio Department of Education. - All Rights Reserved. |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
3 * Unauthorized copying of this file, in any medium, is strictly prohibited. |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
4 * Written by State Software Development Team (http://ssdt.oecn.k12.oh.us/) |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
5 */ |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
6 |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
7 package org.ssdt_ohio.gradle.doc.tools |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
8 |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
9 import org.codehaus.groovy.groovydoc.GroovyFieldDoc |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
10 |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
11 class UserClassDocProxy extends groovy.util.Proxy { |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
12 |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
13 GroovyFieldDoc[] properties() { |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
14 println "getting properties for $adaptee" |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
15 getAdaptee().properties().findAll { GroovyFieldDoc p -> |
20
e8e14d5d6be2
improve formatting. exclude @transient and version
smith@nwoca.org
parents:
16
diff
changeset
|
16 !p.isTransient() && |
e8e14d5d6be2
improve formatting. exclude @transient and version
smith@nwoca.org
parents:
16
diff
changeset
|
17 p.name() != 'version' && |
e8e14d5d6be2
improve formatting. exclude @transient and version
smith@nwoca.org
parents:
16
diff
changeset
|
18 !p.annotations().any { it.name().contains('Transient') } |
15
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
19 } |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
20 |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
21 } |
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
22 |
16
8400a7db1330
USASR-1307: update templates to groovydoc 2.3.6
smith@nwoca.org
parents:
15
diff
changeset
|
23 def propertyMissing(String name) { getAdaptee()."$name" } |
20
e8e14d5d6be2
improve formatting. exclude @transient and version
smith@nwoca.org
parents:
16
diff
changeset
|
24 |
15
e3c55e83c9a4
USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff
changeset
|
25 } |