public interface EvaluationContext
There is a default implementation of this EvaluationContext interface:
StandardEvaluationContext
which can be extended, rather than having to implement everything manually.
Modifier and Type | Method and Description |
---|---|
BeanResolver |
getBeanResolver()
Return a bean resolver that can look up beans by name.
|
java.util.List<ConstructorResolver> |
getConstructorResolvers()
Return a list of resolvers that will be asked in turn to locate a constructor.
|
java.util.List<MethodResolver> |
getMethodResolvers()
Return a list of resolvers that will be asked in turn to locate a method.
|
OperatorOverloader |
getOperatorOverloader()
Return an operator overloader that may support mathematical operations
between more than the standard set of types.
|
java.util.List<PropertyAccessor> |
getPropertyAccessors()
Return a list of accessors that will be asked in turn to read/write a property.
|
TypedValue |
getRootObject()
Return the default root context object against which unqualified
properties/methods/etc should be resolved.
|
TypeComparator |
getTypeComparator()
Return a type comparator for comparing pairs of objects for equality.
|
TypeConverter |
getTypeConverter()
Return a type converter that can convert (or coerce) a value from one type to another.
|
TypeLocator |
getTypeLocator()
Return a type locator that can be used to find types, either by short or
fully qualified name.
|
java.lang.Object |
lookupVariable(java.lang.String name)
Look up a named variable within this evaluation context.
|
void |
setVariable(java.lang.String name,
java.lang.Object value)
Set a named variable within this evaluation context to a specified value.
|
TypedValue getRootObject()
java.util.List<ConstructorResolver> getConstructorResolvers()
java.util.List<MethodResolver> getMethodResolvers()
java.util.List<PropertyAccessor> getPropertyAccessors()
TypeLocator getTypeLocator()
TypeConverter getTypeConverter()
TypeComparator getTypeComparator()
OperatorOverloader getOperatorOverloader()
@Nullable BeanResolver getBeanResolver()
void setVariable(java.lang.String name, @Nullable java.lang.Object value)
name
- variable to setvalue
- value to be placed in the variable@Nullable java.lang.Object lookupVariable(java.lang.String name)
name
- variable to lookupnull
if not found