public static Object evaluate(Namespaces namespaces, Classes classes, GroovyClassLoader groovyClassLoader, String statement) {
throw new IllegalStateException("Not implemented yet!");
}
public static Template parseStatement(String statement, final TemplateTextWriter templateTextWriter, final Namespaces namespaces, final Classes classes, final GroovyClassLoader groovyClassLoader) {
final StringSource sourceString = new StringSource("statement");
TemplateParser parser = new TemplateParser(new ITemplateFactoryFactory() {
public ITemplateFactory getFactory(int phase) {
return new TemplateFactory(sourceString, templateTextWriter, namespaces, classes, groovyClassLoader);
}
});
StringSource source = new StringSource(statement);
ParsingResult result = parser.parse(source);
if (!result.success()) {
throw new LajaException("Could not parse statement \"" + statement + "\"");
}