public class StandardEvaluationContext extends Object implements EvaluationContext
To resolve properties/methods/fields this context uses a reflection mechanism.
Constructor and Description |
---|
StandardEvaluationContext() |
StandardEvaluationContext(Object rootObject) |
public StandardEvaluationContext()
public StandardEvaluationContext(Object rootObject)
public void setRootObject(Object rootObject, TypeDescriptor typeDescriptor)
public void setRootObject(Object rootObject)
public TypedValue getRootObject()
getRootObject
in interface EvaluationContext
public void addConstructorResolver(ConstructorResolver resolver)
public boolean removeConstructorResolver(ConstructorResolver resolver)
public List<ConstructorResolver> getConstructorResolvers()
getConstructorResolvers
in interface EvaluationContext
public void setConstructorResolvers(List<ConstructorResolver> constructorResolvers)
public void addMethodResolver(MethodResolver resolver)
public boolean removeMethodResolver(MethodResolver methodResolver)
public List<MethodResolver> getMethodResolvers()
getMethodResolvers
in interface EvaluationContext
public void setBeanResolver(BeanResolver beanResolver)
public BeanResolver getBeanResolver()
getBeanResolver
in interface EvaluationContext
public void setMethodResolvers(List<MethodResolver> methodResolvers)
public void addPropertyAccessor(PropertyAccessor accessor)
public boolean removePropertyAccessor(PropertyAccessor accessor)
public List<PropertyAccessor> getPropertyAccessors()
getPropertyAccessors
in interface EvaluationContext
public void setPropertyAccessors(List<PropertyAccessor> propertyAccessors)
public void setTypeLocator(TypeLocator typeLocator)
public TypeLocator getTypeLocator()
getTypeLocator
in interface EvaluationContext
public void setTypeConverter(TypeConverter typeConverter)
public TypeConverter getTypeConverter()
getTypeConverter
in interface EvaluationContext
public void setTypeComparator(TypeComparator typeComparator)
public TypeComparator getTypeComparator()
getTypeComparator
in interface EvaluationContext
public void setOperatorOverloader(OperatorOverloader operatorOverloader)
public OperatorOverloader getOperatorOverloader()
getOperatorOverloader
in interface EvaluationContext
public void setVariable(String name, Object value)
EvaluationContext
setVariable
in interface EvaluationContext
name
- variable to setvalue
- value to be placed in the variablepublic Object lookupVariable(String name)
EvaluationContext
lookupVariable
in interface EvaluationContext
name
- variable to lookuppublic void registerMethodFilter(Class<?> type, MethodFilter filter)
type
- the type for which the filter should be calledfilter
- a MethodFilter, or NULL to deregister a filter for the typeCopyright © 2015. All rights reserved.