public class MethodReference extends SpelNodeImpl
Modifier and Type | Class and Description |
---|---|
private class |
MethodReference.MethodValueRef |
Modifier and Type | Field and Description |
---|---|
private MethodExecutor |
cachedExecutor |
private java.lang.String |
name |
private boolean |
nullSafe |
children, pos
Constructor and Description |
---|
MethodReference(boolean nullSafe,
java.lang.String methodName,
int pos,
SpelNodeImpl... arguments) |
Modifier and Type | Method and Description |
---|---|
private MethodExecutor |
findAccessorForMethod(java.lang.String name,
java.util.List<TypeDescriptor> argumentTypes,
ExpressionState state) |
private MethodExecutor |
findAccessorForMethod(java.lang.String name,
java.util.List<TypeDescriptor> argumentTypes,
java.lang.Object contextObject,
EvaluationContext eContext) |
java.lang.String |
getName() |
private java.util.List<TypeDescriptor> |
getTypes(java.lang.Object... arguments) |
TypedValue |
getValueInternal(ExpressionState state) |
protected ValueRef |
getValueRef(ExpressionState state) |
private void |
throwSimpleExceptionIfPossible(ExpressionState state,
AccessException ae)
Decode the AccessException, throwing a lightweight evaluation exception or, if the cause was a RuntimeException,
throw the RuntimeException directly.
|
java.lang.String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, isWritable, nextChildIs, setValue
private final java.lang.String name
private final boolean nullSafe
private volatile MethodExecutor cachedExecutor
public MethodReference(boolean nullSafe, java.lang.String methodName, int pos, SpelNodeImpl... arguments)
public final java.lang.String getName()
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException
getValueRef
in class SpelNodeImpl
EvaluationException
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal
in class SpelNodeImpl
EvaluationException
private void throwSimpleExceptionIfPossible(ExpressionState state, AccessException ae)
private java.util.List<TypeDescriptor> getTypes(java.lang.Object... arguments)
public java.lang.String toStringAST()
toStringAST
in interface SpelNode
toStringAST
in class SpelNodeImpl
private MethodExecutor findAccessorForMethod(java.lang.String name, java.util.List<TypeDescriptor> argumentTypes, ExpressionState state) throws SpelEvaluationException
SpelEvaluationException
private MethodExecutor findAccessorForMethod(java.lang.String name, java.util.List<TypeDescriptor> argumentTypes, java.lang.Object contextObject, EvaluationContext eContext) throws SpelEvaluationException
SpelEvaluationException