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 Constructor Description OGNLVariableExpressionEvaluator(boolean applyOGNLShortcuts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(IExpressionContext context, IStandardVariableExpression expression, StandardExpressionExecutionContext expContext)Evaluate the variable expression.StringtoString()
-
-
-
Method Detail
-
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.
-
-