public interface IStandardVariableExpressionEvaluator
Common interface for all objects in charge of executing variable expressions (${...}) inside Thymeleaf Standard Expressions.
The basic implementation of this interface evaluates expressions using OGNL
OgnlVariableExpressionEvaluator, but a SpringEL version also exists in the Thymeleaf + Spring
integration package.
Implementations of this interface should be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluate(Configuration configuration,
IProcessingContext processingContext,
String expression,
StandardExpressionExecutionContext expContext,
boolean useSelectionAsRoot)
Evaluate the variable expression.
|
Object evaluate(Configuration configuration, IProcessingContext processingContext, String expression, StandardExpressionExecutionContext expContext, boolean useSelectionAsRoot)
Evaluate the variable expression.
configuration - the Configuration object for the template execution environment.processingContext - the processing context object containing the variables to be applied to the expression.expression - the expression to be evaluated (as a String).expContext - the expression execution context to be applied (preprocessing, etc.)useSelectionAsRoot - specify whether this is a variable expression (${...}, false) or a
selection variable expression (*{...}, true).Copyright © 2016 The THYMELEAF team. All rights reserved.