Class JexlRuleScript

java.lang.Object
net.simplace.core.jexl.JexlRuleScript
All Implemented Interfaces:
org.apache.commons.jexl3.JexlExpression

public class JexlRuleScript extends Object implements org.apache.commons.jexl3.JexlExpression
Author:
lap
  • Method Details

    • analyseComplexity

      public static JexlRuleScript.COMPLEXITY analyseComplexity(String aRule)
      Analyses a Rule for it's complexity level
      Parameters:
      aRule -
      Returns:
      a JexlRuleScript.COMPLEXITY level
    • evaluate

      public Object evaluate(org.apache.commons.jexl3.JexlContext aContext)
      Specified by:
      evaluate in interface org.apache.commons.jexl3.JexlExpression
      Parameters:
      aContext -
      Returns:
      the result of that Script or Expression execution
    • debugValues

      public String debugValues(FWSimVarMap aVarMap)
      Parameters:
      aContext -
      Returns:
      the result of that Script or Expression execution
    • getComplexity

      public JexlRuleScript.COMPLEXITY getComplexity()
      Returns:
      the JexlRuleScript.COMPLEXITY of this Script or Expression
    • getRule

      public String getRule()
      Returns:
      the Rule source of this Script or Expression
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSourceText

      public String getSourceText()
      Specified by:
      getSourceText in interface org.apache.commons.jexl3.JexlExpression
    • getParsedText

      public String getParsedText()
      Specified by:
      getParsedText in interface org.apache.commons.jexl3.JexlExpression
    • callable

      public Callable<Object> callable(org.apache.commons.jexl3.JexlContext aArg0)
      Specified by:
      callable in interface org.apache.commons.jexl3.JexlExpression