// for testing public CompiledST defineTemplate(String name, String argsS, String template) { String[] args = argsS.split(","); List<FormalArgument> a = new ArrayList<FormalArgument>(); for (String arg : args) { a.add(new FormalArgument(arg)); } return defineTemplate(name, new CommonToken(GroupParser.ID, name), a, template, null); }
/** Make this group import templates/dictionaries from g. */ public void importTemplates(STGroup g) { if (g == null) return; if (imports == null) imports = Collections.synchronizedList(new ArrayList<STGroup>()); imports.add(g); }