annotate src/main/groovy/org/ssdt_ohio/gradle/doc/tools/UserClassDocProxy.groovy @ 16:8400a7db1330

USASR-1307: update templates to groovydoc 2.3.6
author smith@nwoca.org
date Wed, 31 Dec 2014 22:35:45 +0000
parents e3c55e83c9a4
children e8e14d5d6be2
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 ->
e3c55e83c9a4 USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff changeset
16 !p.isTransient()
e3c55e83c9a4 USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff changeset
17 }
e3c55e83c9a4 USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff changeset
18
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
16
8400a7db1330 USASR-1307: update templates to groovydoc 2.3.6
smith@nwoca.org
parents: 15
diff changeset
21 def propertyMissing(String name) { getAdaptee()."$name" }
8400a7db1330 USASR-1307: update templates to groovydoc 2.3.6
smith@nwoca.org
parents: 15
diff changeset
22
15
e3c55e83c9a4 USASR-1307: start custom class/property displays
Dave Smith <smith@nwoca.org>
parents:
diff changeset
23 }