[stringtemplate-interest] StringTemplate + Doclet

Terence Parr parrt at cs.usfca.edu
Tue Dec 21 10:04:31 PST 2010


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/609e962d/attachment.html 


More information about the stringtemplate-interest mailing list