[stringtemplate-interest] listing attributes of elements in collection

Terence Parr parrt at cs.usfca.edu
Mon Jul 14 13:23:21 PDT 2008


On Jul 13, 2008, at 1:44 PM, Dieter Frej wrote:

> Hi,
>
> I have the following structure of data in Java:
>
> class u
> - List<inputColumns> inputColumns
>
> class inputColumns
> - String identifier
>
> What I now actually want to do is to list the identifiers of the  
> inputColumns separated by ", ". How can I do that? The most obvious  
> version
>
> $u.inputColumns.identifier; separator=", "$
>
> throws an exception.

whichException?  perhaps the field or u is null.
Ter
> Did anyone understand what I want to do? Is there a solution for  
> this problem...
>
> Thanks in advance
>
> Daniel
> -- 
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list