public final class ThymeleafEvaluationContextWrapper extends Object implements org.springframework.expression.EvaluationContext
Implementation of Spring's EvaluationContext
interface designed to wrap around another delegated implementation of this same interface,
adding (if needed) the Thymeleaf-required
PropertyAccessor
implementations and (optionally)
a series of variables to be accessed like #variableName during expression evaluation.
Modifier and Type | Field and Description |
---|---|
static org.springframework.context.expression.MapAccessor |
MAP_ACCESSOR_INSTANCE |
Constructor and Description |
---|
ThymeleafEvaluationContextWrapper(org.springframework.expression.EvaluationContext delegate) |
ThymeleafEvaluationContextWrapper(org.springframework.expression.EvaluationContext delegate,
Map<String,Object> additionalVariables) |
Modifier and Type | Method and Description |
---|---|
org.springframework.expression.BeanResolver |
getBeanResolver() |
List<org.springframework.expression.ConstructorResolver> |
getConstructorResolvers() |
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() |
Object |
lookupVariable(String name) |
void |
setVariable(String name,
Object value) |
public static final org.springframework.context.expression.MapAccessor MAP_ACCESSOR_INSTANCE
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
Copyright © 2016 The THYMELEAF team. All rights reserved.