Interface IEvaluator

    • Method Detail

      • evaluate

        boolean evaluate​(String expression,
                         Map<String,​Object> values)
        Evaluate an expression as a boolean response.
        Parameters:
        expression - the expression to evaluate
        values - the variables that the expression can evaluate against
        Returns:
        true if the expression evaluates to truthy value.
        See Also:
        AbstractEvaluator.objectToBoolean(Object)
      • evaluateExpression

        Object evaluateExpression​(String expression,
                                  Map<String,​Object> values)
                           throws Throwable
        Evaluate an expression to the value.
        Parameters:
        expression - the expression to evaluate
        values - the variables that the expression can evaluate against
        Returns:
        the result of the expression
        Throws:
        Throwable - if the expression fails