[stringtemplate-interest] StringTemplate type proxies

Terence Parr parrt at cs.usfca.edu
Tue Dec 14 11:16:34 PST 2010


Very convincing argument, folks. thank you. 3rd party models.

Ok, so how do they interact with renderers?  I guess the renderer is done *after* proxy stuff.

Proxy: RandomModelObject -> MyWrapperForRandomModelObject, adds getFoo() or whatever.

Then, if getFoo() returns type Date, renderer applies to that.  I like it.  

I remember mentioning how to do this manually. just override setAttribute() so that it traps RandomModelObject and wraps.  

Does this need to be formalized or can it simply be a FAQ entry?  it's a switch on type, look up in hashtable thing only right?

Ter


More information about the stringtemplate-interest mailing list