org.apache.commons.jexl2.JadeJexlEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jade4j Show documentation
Show all versions of jade4j Show documentation
Java implementation of the jade templating language
package org.apache.commons.jexl2;
public class JadeJexlEngine extends JexlEngine {
/*
* using a semi strict interpreter and non strict arithmetic
*/
public JadeJexlEngine() {
super(new JadeIntrospect(null), new JadeJexlArithmetic(true), null, null);
setStrict(false);
}
@Override
protected Interpreter createInterpreter(JexlContext context, boolean strictFlag, boolean silentFlag) {
// always use strict
strictFlag = true;
return new JadeJexlInterpreter(this, context == null ? EMPTY_CONTEXT : context, strictFlag, silentFlag);
}
}