Class JexlHelper
java.lang.Object
net.simplace.core.jexl.JexlHelper
Creates
JexlRuleScripts with the shared SIMPLACE JEXL engine.- Author:
- Andreas Enders
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.commons.jexl3.JexlEnginethe shared, thread safe JEXL engine with the SIMPLACE namespaces (seeJexlBuilder) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final JexlRuleScriptCreates a rule script; the complexity is derived from the rule (seeJexlRuleScript.analyseComplexity(String)).static final JexlRuleScriptcreate(JexlRuleScript.COMPLEXITY aComplexity, String aRuleOrExpression) Creates a rule script with a given complexity.
-
Field Details
-
JEXL_ENGINE
public static final org.apache.commons.jexl3.JexlEngine JEXL_ENGINEthe shared, thread safe JEXL engine with the SIMPLACE namespaces (seeJexlBuilder)
-
-
Constructor Details
-
JexlHelper
public JexlHelper()
-
-
Method Details
-
create
public static final JexlRuleScript create(JexlRuleScript.COMPLEXITY aComplexity, String aRuleOrExpression) Creates a rule script with a given complexity.- Parameters:
aComplexity- how the rule is evaluatedaRuleOrExpression- the rule text- Returns:
- the created rule script, or
nullif the rule is empty
-
create
Creates a rule script; the complexity is derived from the rule (seeJexlRuleScript.analyseComplexity(String)).- Parameters:
aRuleOrExpression- the rule text- Returns:
- the created rule script, or
nullif the rule isnullor empty
-