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
Constructor and Description |
---|
ThymeleafEvaluationContextWrapper(org.springframework.expression.EvaluationContext delegate) |
Modifier and Type | Method and 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) |
public ThymeleafEvaluationContextWrapper(org.springframework.expression.EvaluationContext delegate)
public org.springframework.expression.TypedValue getRootObject()
getRootObject
in interface org.springframework.expression.EvaluationContext
public List<org.springframework.expression.ConstructorResolver> getConstructorResolvers()
getConstructorResolvers
in interface org.springframework.expression.EvaluationContext
public List<org.springframework.expression.MethodResolver> getMethodResolvers()
getMethodResolvers
in interface org.springframework.expression.EvaluationContext
public List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
getPropertyAccessors
in interface org.springframework.expression.EvaluationContext
public org.springframework.expression.TypeLocator getTypeLocator()
getTypeLocator
in interface org.springframework.expression.EvaluationContext
public org.springframework.expression.TypeConverter getTypeConverter()
getTypeConverter
in interface org.springframework.expression.EvaluationContext
public org.springframework.expression.TypeComparator getTypeComparator()
getTypeComparator
in interface org.springframework.expression.EvaluationContext
public org.springframework.expression.OperatorOverloader getOperatorOverloader()
getOperatorOverloader
in interface org.springframework.expression.EvaluationContext
public org.springframework.expression.BeanResolver getBeanResolver()
getBeanResolver
in interface org.springframework.expression.EvaluationContext
public void setVariable(String name, Object value)
setVariable
in interface org.springframework.expression.EvaluationContext
public Object lookupVariable(String name)
lookupVariable
in interface org.springframework.expression.EvaluationContext
public boolean isVariableAccessRestricted()
isVariableAccessRestricted
in interface IThymeleafEvaluationContext
public void setVariableAccessRestricted(boolean restricted)
setVariableAccessRestricted
in interface IThymeleafEvaluationContext
public org.thymeleaf.expression.IExpressionObjects getExpressionObjects()
getExpressionObjects
in interface IThymeleafEvaluationContext
public void setExpressionObjects(org.thymeleaf.expression.IExpressionObjects expressionObjects)
setExpressionObjects
in interface IThymeleafEvaluationContext
Copyright © 2017 The THYMELEAF team. All rights reserved.