/** * Evaluates the given expression string using the given variables as context variables. * * @param <T> The desired type * @param expressionString Expression string to evaluate * @param variables The variables to put into context * @return The result of the evaluation */ public <T> T evaluate(String expressionString, Map<String, Object> variables) { return evaluate(parseExpression(expressionString), variables); }
/** * Evaluates the given expression string using the given variables as context variables. * * @param <T> The desired type * @param expressionString Expression string to evaluate * @param desiredResultType The desired type of the result. Spring will make best attempt at converting result to this type. * @param variables The variables to put into context * @return The result of the evaluation */ public <T> T evaluate(String expressionString, Class<T> desiredResultType, Map<String, Object> variables) { return evaluate(parseExpression(expressionString), desiredResultType, variables); }
/** * Evaluates the given expression string using the given variables as context variables. * * @param <T> The desired type * @param expressionString Expression string to evaluate * @param variables The variables to put into context * @return The result of the evaluation */ public <T> T evaluate(String expressionString, Map<String, Object> variables) { return evaluate(parseExpression(expressionString), variables); }
/** * Evaluates the given expression string using the given variables as context variables. * * @param <T> The desired type * @param expressionString Expression string to evaluate * @param desiredResultType The desired type of the result. Spring will make best attempt at converting result to this type. * @param variables The variables to put into context * @return The result of the evaluation */ public <T> T evaluate(String expressionString, Class<T> desiredResultType, Map<String, Object> variables) { return evaluate(parseExpression(expressionString), desiredResultType, variables); }