All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.jexl2.JadeJexlEngine Maven / Gradle / Ivy

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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy