groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <sun...@apache.org>
Subject Re: About simplifying the switch for runtime groovydoc
Date Sun, 28 Oct 2018 15:05:02 GMT
Hi Remko,

You can get the runtime groovydoc with reflection, here is an example:

AA.class.getMethod('m', new Class[0]).groovydoc.content.contains('method m')

BTW, I think we can add a DGM to simplify the above code ;-)

The complete example van be found at:
https://github.com/apache/groovy/blob/6da5d75c7e8fc9231a166ed40507311f30523c97/subprojects/parser-antlr4/src/test/resources/core/Groovydoc_01x.groovy


Cheers,
Daniel.Sun




-----
Daniel Sun 
Apache Groovy committer 
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun 

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message