org.thymeleaf.standard.expression
Class OgnlExpressionEvaluator
Object
org.thymeleaf.standard.expression.OgnlExpressionEvaluator
- All Implemented Interfaces:
- IStandardExpressionEvaluator
public class OgnlExpressionEvaluator
- extends Object
- implements IStandardExpressionEvaluator
- Since:
- 1.1
- Author:
- Daniel Fernández
INSTANCE
public static final OgnlExpressionEvaluator INSTANCE
evaluate
public final Object evaluate(Arguments arguments,
String expression,
Object root)
- Specified by:
evaluate
in interface IStandardExpressionEvaluator
computeAdditionalContextVariables
protected Map<String,Object> computeAdditionalContextVariables(Arguments arguments)
toString
public String toString()
- Overrides:
toString
in class Object
shouldApplyOgnlBooleanFix
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").
- Returns:
- whether the OGNL boolean fix should be applied or not.
Copyright © 2012 The THYMELEAF team. All Rights Reserved.