use of freemarker.template.ObjectWrapper in project freemarker by apache.
the class OverloadedMethods2 method getJavaStringSequenceList.
public List getJavaStringSequenceList() throws TemplateModelException {
ObjectWrapper ow = Environment.getCurrentEnvironment().getObjectWrapper();
List listList = new ArrayList();
{
List list = new ArrayList();
list.add("a");
list.add("b");
listList.add(ow.wrap(list));
}
{
List list = new ArrayList();
list.add("c");
listList.add(ow.wrap(list));
}
return listList;
}
Aggregations