Package org.thymeleaf.spring5.expression
Class ThymeleafEvaluationContextWrapper
- Object
-
- org.thymeleaf.spring5.expression.ThymeleafEvaluationContextWrapper
-
- All Implemented Interfaces:
org.springframework.expression.EvaluationContext
,IThymeleafEvaluationContext
public final class ThymeleafEvaluationContextWrapper extends Object implements IThymeleafEvaluationContext
Implementation of Thymeleaf's
IThymeleafEvaluationContext
interface designed to wrap around a delegated implementation ofEvaluationContext
, adding the Thymeleaf-requiredPropertyAccessor
implementations and (optionally) a series of variables to be accessed like#variableName
during expression evaluation.Note a class with this name existed since 2.1.0, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.3
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description ThymeleafEvaluationContextWrapper(org.springframework.expression.EvaluationContext delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.expression.BeanResolver
getBeanResolver()
List<org.springframework.expression.ConstructorResolver>
getConstructorResolvers()
org.thymeleaf.expression.IExpressionObjects
getExpressionObjects()
List<org.springframework.expression.MethodResolver>
getMethodResolvers()
org.springframework.expression.OperatorOverloader
getOperatorOverloader()
List<org.springframework.expression.PropertyAccessor>
getPropertyAccessors()
org.springframework.expression.TypedValue
getRootObject()
org.springframework.expression.TypeComparator
getTypeComparator()
org.springframework.expression.TypeConverter
getTypeConverter()
org.springframework.expression.TypeLocator
getTypeLocator()
boolean
isVariableAccessRestricted()
Object
lookupVariable(String name)
void
setExpressionObjects(org.thymeleaf.expression.IExpressionObjects expressionObjects)
void
setVariable(String name, Object value)
void
setVariableAccessRestricted(boolean restricted)
-
-
-
Method Detail
-
getRootObject
public org.springframework.expression.TypedValue getRootObject()
- Specified by:
getRootObject
in interfaceorg.springframework.expression.EvaluationContext
-
getConstructorResolvers
public List<org.springframework.expression.ConstructorResolver> getConstructorResolvers()
- Specified by:
getConstructorResolvers
in interfaceorg.springframework.expression.EvaluationContext
-
getMethodResolvers
public List<org.springframework.expression.MethodResolver> getMethodResolvers()
- Specified by:
getMethodResolvers
in interfaceorg.springframework.expression.EvaluationContext
-
getPropertyAccessors
public List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
- Specified by:
getPropertyAccessors
in interfaceorg.springframework.expression.EvaluationContext
-
getTypeLocator
public org.springframework.expression.TypeLocator getTypeLocator()
- Specified by:
getTypeLocator
in interfaceorg.springframework.expression.EvaluationContext
-
getTypeConverter
public org.springframework.expression.TypeConverter getTypeConverter()
- Specified by:
getTypeConverter
in interfaceorg.springframework.expression.EvaluationContext
-
getTypeComparator
public org.springframework.expression.TypeComparator getTypeComparator()
- Specified by:
getTypeComparator
in interfaceorg.springframework.expression.EvaluationContext
-
getOperatorOverloader
public org.springframework.expression.OperatorOverloader getOperatorOverloader()
- Specified by:
getOperatorOverloader
in interfaceorg.springframework.expression.EvaluationContext
-
getBeanResolver
public org.springframework.expression.BeanResolver getBeanResolver()
- Specified by:
getBeanResolver
in interfaceorg.springframework.expression.EvaluationContext
-
setVariable
public void setVariable(String name, Object value)
- Specified by:
setVariable
in interfaceorg.springframework.expression.EvaluationContext
-
lookupVariable
public Object lookupVariable(String name)
- Specified by:
lookupVariable
in interfaceorg.springframework.expression.EvaluationContext
-
isVariableAccessRestricted
public boolean isVariableAccessRestricted()
- Specified by:
isVariableAccessRestricted
in interfaceIThymeleafEvaluationContext
-
setVariableAccessRestricted
public void setVariableAccessRestricted(boolean restricted)
- Specified by:
setVariableAccessRestricted
in interfaceIThymeleafEvaluationContext
-
getExpressionObjects
public org.thymeleaf.expression.IExpressionObjects getExpressionObjects()
- Specified by:
getExpressionObjects
in interfaceIThymeleafEvaluationContext
-
setExpressionObjects
public void setExpressionObjects(org.thymeleaf.expression.IExpressionObjects expressionObjects)
- Specified by:
setExpressionObjects
in interfaceIThymeleafEvaluationContext
-
-