Interface IExpressionEvaluator

All Known Implementing Classes:
ExpressionEvaluatorImpl

public interface IExpressionEvaluator
Use to evaluate the same expression many times.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    evaluate(Map<String,?> vals)
    Evaluate the current value from the passed in values.
    boolean
    Returns true if the expression is in valid syntax, false otherwise.
    void
    Set and parse the current expression
  • Method Details

    • setExpression

      void setExpression(String expr)
      Set and parse the current expression
      Parameters:
      expr -
    • evaluate

      double evaluate(Map<String,?> vals) throws Exception
      Evaluate the current value from the passed in values.
      Parameters:
      vals -
      Returns:
      Throws:
      Exception
    • isValidSyntax

      boolean isValidSyntax()
      Returns true if the expression is in valid syntax, false otherwise.
      Returns: