Package de.hybris.platform.util
Class ExpressionUtils
java.lang.Object
de.hybris.platform.util.ExpressionUtils
-
Method Details
-
evaluateToInteger
-
evaluate
Allows evaluating SpEL expression.SimpleEvaluationContextwill be used as evaluation context which does not allow using full extent of SpEL language. If you need to have more control over expression evaluation, you can useevaluate(String, EvaluationContext)method and provide dedicated evaluation context.- Parameters:
expression- SpEL expressionvariables- variables that can be used in expression
-
evaluate
public static Object evaluate(String expression, org.springframework.expression.EvaluationContext evaluationContext) Allows evaluating SpEL expression.- Parameters:
expression- SpEL expressionevaluationContext- evaluation context. Make sure the evaluation context is not allowing code execution from untrusted source
-