public class MethodBasedEvaluationContext extends StandardEvaluationContext
EvaluationContext that
provides explicit support for method-based invocations.
Expose the actual method arguments using the following aliases:
ParameterNameDiscoverer| Constructor and Description |
|---|
MethodBasedEvaluationContext(java.lang.Object rootObject,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
ParameterNameDiscoverer parameterNameDiscoverer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
lazyLoadArguments()
Load the param information only when needed.
|
java.lang.Object |
lookupVariable(java.lang.String name)
Look up a named variable within this evaluation context.
|
addConstructorResolver, addMethodResolver, addPropertyAccessor, getBeanResolver, getConstructorResolvers, getMethodResolvers, getOperatorOverloader, getPropertyAccessors, getRootObject, getTypeComparator, getTypeConverter, getTypeLocator, registerFunction, registerMethodFilter, removeConstructorResolver, removeMethodResolver, removePropertyAccessor, setBeanResolver, setConstructorResolvers, setMethodResolvers, setOperatorOverloader, setPropertyAccessors, setRootObject, setRootObject, setTypeComparator, setTypeConverter, setTypeLocator, setVariable, setVariablespublic MethodBasedEvaluationContext(java.lang.Object rootObject,
java.lang.reflect.Method method,
java.lang.Object[] arguments,
ParameterNameDiscoverer parameterNameDiscoverer)
@Nullable public java.lang.Object lookupVariable(java.lang.String name)
EvaluationContextlookupVariable in interface EvaluationContextlookupVariable in class StandardEvaluationContextname - variable to lookupnull if not foundprotected void lazyLoadArguments()