public class OgnlVariableExpressionEvaluator extends Object implements IStandardVariableExpressionEvaluator
Modifier and Type | Field and Description |
---|---|
static OgnlVariableExpressionEvaluator |
INSTANCE |
Modifier | Constructor and Description |
---|---|
protected |
OgnlVariableExpressionEvaluator() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
computeAdditionalContextVariables(IProcessingContext processingContext) |
Object |
evaluate(Configuration configuration,
IProcessingContext processingContext,
String expression,
StandardExpressionExecutionContext expContext,
boolean useSelectionAsRoot)
Evaluate the variable expression.
|
protected void |
setVariableRestrictions(StandardExpressionExecutionContext expContext,
Object evaluationRoot,
Map<String,Object> contextVariables) |
protected boolean |
shouldApplyOgnlBooleanFix()
Determines whether a fix should be applied to OGNL in order
to evaluate Strings as booleans in the same way as
Thymeleaf does ('false', 'off' and 'no' are actually "false"
instead of OGNL's default "true").
|
String |
toString() |
public static final OgnlVariableExpressionEvaluator INSTANCE
public final Object evaluate(Configuration configuration, IProcessingContext processingContext, String expression, StandardExpressionExecutionContext expContext, boolean useSelectionAsRoot)
IStandardVariableExpressionEvaluator
Evaluate the variable expression.
evaluate
in interface IStandardVariableExpressionEvaluator
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).protected Map<String,Object> computeAdditionalContextVariables(IProcessingContext processingContext)
protected void setVariableRestrictions(StandardExpressionExecutionContext expContext, Object evaluationRoot, Map<String,Object> contextVariables)
protected boolean shouldApplyOgnlBooleanFix()
Determines whether a fix should be applied to OGNL in order to evaluate Strings as booleans in the same way as Thymeleaf does ('false', 'off' and 'no' are actually "false" instead of OGNL's default "true").
Copyright © 2014 The THYMELEAF team. All rights reserved.