There are two default implementations of this interface.
SimpleEvaluationContext: a simpler builder-style EvaluationContext
variant for data-binding purposes, which allows for opting into several SpEL
features as needed.StandardEvaluationContext: a powerful and highly configurable EvaluationContext
implementation, which can be extended, rather than having to implement everything
manually.| Modifier and Type | Method and Description |
|---|---|
| public default TypedValue | Returns: aTypedValue wrapping the assigned valuethe name of the variable to assign name, Supplier<TypedValue> the supplier of the value to be assigned to the variable valueSupplier)Assign the value created by the specified |
| public BeanResolver | |
| public List | getConstructorResolvers()
Return a list of resolvers that will be asked in turn to locate a constructor. |
| public List | |
| public OperatorOverloader | getOperatorOverloader()
Return an operator overloader that may support mathematical operations between more than the standard set of types. |
| public List | getPropertyAccessors()
Return a list of accessors that will be asked in turn to read/write a property. |
| public TypedValue | getRootObject()
Return the default root context object against which unqualified properties/methods/etc should be resolved. |
| public TypeComparator | |
| public TypeConverter | getTypeConverter()
Return a type converter that can convert (or coerce) a value from one type to another. |
| public TypeLocator | getTypeLocator()
Return a type locator that can be used to find types, either by short or fully qualified name. |
| public Object | Returns: the value of the variable, ornull if not foundthe name of the variable to look up name)Look up a named variable within this evaluation context. |
| public void | setVariable(String
the name of the variable to set name, Object the value to be placed in the variable value)Set a named variable in this evaluation context to a specified value. |
| assignVariable | back to summary |
|---|---|
| public default TypedValue assignVariable(String name, Supplier<TypedValue> valueSupplier) Assign the value created by the specified In contrast to By default, this method delegates to
| |
| getBeanResolver | back to summary |
|---|---|
| public BeanResolver getBeanResolver() Return a bean resolver that can look up beans by name.
| |
| getConstructorResolvers | back to summary |
|---|---|
| public List Return a list of resolvers that will be asked in turn to locate a constructor. | |
| getMethodResolvers | back to summary |
|---|---|
| public List Return a list of resolvers that will be asked in turn to locate a method. | |
| getOperatorOverloader | back to summary |
|---|---|
| public OperatorOverloader getOperatorOverloader() Return an operator overloader that may support mathematical operations between more than the standard set of types. | |
| getPropertyAccessors | back to summary |
|---|---|
| public List Return a list of accessors that will be asked in turn to read/write a property. | |
| getRootObject | back to summary |
|---|---|
| public TypedValue getRootObject() Return the default root context object against which unqualified properties/methods/etc should be resolved. This can be overridden when evaluating an expression. | |
| getTypeComparator | back to summary |
|---|---|
| public TypeComparator getTypeComparator() Return a type comparator for comparing pairs of objects for equality. | |
| getTypeConverter | back to summary |
|---|---|
| public TypeConverter getTypeConverter() Return a type converter that can convert (or coerce) a value from one type to another. | |
| getTypeLocator | back to summary |
|---|---|
| public TypeLocator getTypeLocator() Return a type locator that can be used to find types, either by short or fully qualified name. | |
| lookupVariable | back to summary |
|---|---|
| public Object lookupVariable(String name) Look up a named variable within this evaluation context. | |
| setVariable | back to summary |
|---|---|
| public void setVariable(String name, Object value) Set a named variable in this evaluation context to a specified value. In contrast to
| |