[stringtemplate-interest] Renderers and model adapters for null

Collin Fagan collin.fagan at gmail.com
Mon Aug 22 06:14:46 PDT 2011


Hi All,

I don't know if I've asked this before (I can't find it in my archive) but
would it be possible to allow ST4 to register model adapters and renderers
for null?

Null actually does have a class type in java. It's Void.

group.registerModelAdaptor(Void.class,
                new NullAdapter());

I looked at the code adn it does not seem too complex to add this
functionality. What do people think?

My first use case would be to add a method called "isNull" that always
returns false. I can see other uses also.


Collin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110822/76c6d2a4/attachment.html 


More information about the stringtemplate-interest mailing list