Package org.thymeleaf.spring6.expression
Class ThymeleafEvaluationContextWrapper
Object
org.thymeleaf.spring6.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 of EvaluationContext
, adding the
Thymeleaf-required PropertyAccessor
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
ConstructorDescriptionThymeleafEvaluationContextWrapper
(org.springframework.expression.EvaluationContext delegate) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.expression.BeanResolver
List<org.springframework.expression.ConstructorResolver>
List<org.springframework.expression.MethodResolver>
org.springframework.expression.OperatorOverloader
List<org.springframework.expression.PropertyAccessor>
org.springframework.expression.TypedValue
org.springframework.expression.TypeComparator
org.springframework.expression.TypeConverter
org.springframework.expression.TypeLocator
boolean
lookupVariable
(String name) void
setExpressionObjects
(IExpressionObjects expressionObjects) void
setVariable
(String name, Object value) void
setVariableAccessRestricted
(boolean restricted) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.expression.EvaluationContext
assignVariable
-
Constructor Details
-
ThymeleafEvaluationContextWrapper
public ThymeleafEvaluationContextWrapper(org.springframework.expression.EvaluationContext delegate)
-
-
Method Details
-
getRootObject
public org.springframework.expression.TypedValue getRootObject()- Specified by:
getRootObject
in interfaceorg.springframework.expression.EvaluationContext
-
getConstructorResolvers
- Specified by:
getConstructorResolvers
in interfaceorg.springframework.expression.EvaluationContext
-
getMethodResolvers
- Specified by:
getMethodResolvers
in interfaceorg.springframework.expression.EvaluationContext
-
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
- Specified by:
setVariable
in interfaceorg.springframework.expression.EvaluationContext
-
lookupVariable
- 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
- Specified by:
getExpressionObjects
in interfaceIThymeleafEvaluationContext
-
setExpressionObjects
- Specified by:
setExpressionObjects
in interfaceIThymeleafEvaluationContext
-