[stringtemplate-interest] Fun with ST4
Sam Harwell
sharwell at pixelminegames.com
Fri Jan 21 17:48:13 PST 2011
Hi Collin,
Just today for a separate I requested that <o.classes> check for a public
method "classes()" taking no arguments after checking for a method
"getClasses()". My example was abstract, but this looks like a concrete
example showing how useful it would be. :)
Sam
From: stringtemplate-interest-bounces at antlr.org
[mailto:stringtemplate-interest-bounces at antlr.org] On Behalf Of Collin Fagan
Sent: Friday, January 21, 2011 7:28 PM
To: Terence Parr
Cc: stringtemplate-interest List
Subject: Re: [stringtemplate-interest] Fun with ST4
Task 1: ST + Doclet API
Status: Success, but ...
The 'but' involves the fact that the names of the the methods in the Doclet
API are unadorned like 'classes()' and 'methods()' etc. That left me one
choice, and I know you aren't going to like it. I had to just lookup the
method reflectively. While this makes working with the API really easy... it
could also be used to invoke any method which is bad. :(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110121/55959d38/attachment.html
More information about the stringtemplate-interest
mailing list