Class OGNLVariableExpressionEvaluator
Object
org.thymeleaf.standard.expression.OGNLVariableExpressionEvaluator
- All Implemented Interfaces:
IStandardVariableExpressionEvaluator
public final class OGNLVariableExpressionEvaluator
extends Object
implements IStandardVariableExpressionEvaluator
Evaluator for variable expressions (${...}) in Thymeleaf Standard Expressions, using the
OGNL expression language.
Note a class with this name existed since 2.0.9, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectevaluate(IExpressionContext context, IStandardVariableExpression expression, StandardExpressionExecutionContext expContext) Evaluate the variable expression.toString()
-
Constructor Details
-
OGNLVariableExpressionEvaluator
public OGNLVariableExpressionEvaluator(boolean applyOGNLShortcuts)
-
-
Method Details
-
evaluate
public final Object evaluate(IExpressionContext context, IStandardVariableExpression expression, StandardExpressionExecutionContext expContext) Description copied from interface:IStandardVariableExpressionEvaluatorEvaluate the variable expression.
- Specified by:
evaluatein interfaceIStandardVariableExpressionEvaluator- Parameters:
context- the context object.expression- the standard variable expression to be evaluated.expContext- the expression execution context to be applied (preprocessing, etc.)- Returns:
- the result of evaluating the expression.
-
toString
-