Interface TypeAwareExpressionEvaluator

    • Method Detail

      • evaluate

        Object evaluate​(String expression,
                        Class<?> type)
                 throws ExpressionEvaluationException
        Evaluate an expression. The optional type provided to this method is a hint (not a requirement) for the evaluator to resolve the expression to a compatible value. The evaluator is not expected to perform any conversion but rather filter out incompatible values from its result.
        Parameters:
        expression - the expression
        type - The expected type of expression result, may be null.
        Returns:
        the value of the expression
        Throws:
        ExpressionEvaluationException - in case of an error.