[stringtemplate-interest] StringTemplate + Doclet
Terence Parr
parrt at cs.usfca.edu
Tue Dec 21 14:43:03 PST 2010
we need to add registerModelAdaptor like reg renderer then just look up when we do properties.
T
On Dec 21, 2010, at 12:55 PM, Collin Fagan wrote:
> Thats good news, thanks. I am familiar with the Introspection/Reflection API so let me know if there is anything I can do to help.
>
> Collin
>
> On Tue, Dec 21, 2010 at 12:04 PM, Terence Parr <parrt at cs.usfca.edu> wrote:
> Hi Collin, we have *just* started talking about this :) In fact previous messages are all about it. We need an adaptor mechanism that overrides ASTExpr.GetObjectProperty to use adaptors to get classes and other fields/methods not following javabeans.
>
> I haven't implemented but it's "easy" ;)
>
> Ter
>
> On Dec 20, 2010, at 1:55 PM, Collin Fagan wrote:
>
>> Hi Everyone,
>>
>> I'm a big fan of StringTemplate but I've finally run into something I can't do. Basically I would very much like to bridge StringTemplate to java's Doclet API (http://download.oracle.com/javase/6/docs/technotes/guides/javadoc/doclet/overview.html) but the classes in com.sun.javadoc.* do not follow the getter + setter rule. They have method names like classes(), methods() and the like. Is there a way to override how ST looks for properties? Am I missing something where I can just call methods()? My only other options seem to involve lots of wrapping (not fun) or pushing everythign into maps (also not fun).
>>
>> Thanks,
>>
>> Collin
>>
>> P.S. I apologize in advance if this subject is well covered someplace else.
>> _______________________________________________
>> stringtemplate-interest mailing list
>> stringtemplate-interest at antlr.org
>> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20101221/9118bee2/attachment.html
More information about the stringtemplate-interest
mailing list