[stringtemplate-interest] v4 renderers

Brian Clapper bmc at clapper.org
Wed Dec 22 15:22:10 PST 2010


On 12/22/2010 04:29 PM, Terence Parr wrote:
> ok, v4 works for renderers now with instanceof functionality:

[snip]

> Look ok? Same would work for registerModelAdaptor(type, adap), right? Upon
> <a.p> and a.getClass() is instanceof or implements type, then I'd ask adap how
> to get p from 'a', right? Later I can cache a.getClass -> adap mapping.

Independent of the "what to cache" issue (Udo makes a good point), this looks 
right to me.
-- 
-Brian

Brian Clapper, http://www.clapper.org/bmc/


More information about the stringtemplate-interest mailing list