diff src/main/groovy/org/ssdt_ohio/gradle/doc/tools/UserClassDocProxy.groovy @ 15:e3c55e83c9a4

USASR-1307: start custom class/property displays
author Dave Smith <smith@nwoca.org>
date Fri, 17 Jan 2014 18:16:29 +0000
parents
children 8400a7db1330
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/groovy/org/ssdt_ohio/gradle/doc/tools/UserClassDocProxy.groovy	Fri Jan 17 18:16:29 2014 +0000
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2013.  Ohio Department of Education. - All Rights Reserved.
+ * Unauthorized copying of this file, in any medium, is strictly prohibited.
+ * Written by State Software Development Team (http://ssdt.oecn.k12.oh.us/)
+ */
+
+package org.ssdt_ohio.gradle.doc.tools
+
+import org.codehaus.groovy.groovydoc.GroovyFieldDoc
+
+class UserClassDocProxy extends groovy.util.Proxy {
+
+    GroovyFieldDoc[] properties() {
+        println "getting properties for $adaptee"
+        getAdaptee().properties().findAll { GroovyFieldDoc p ->
+            !p.isTransient()
+        }
+
+    }
+
+}