public class FunctionReference extends SpelNodeImpl
Functions are very simplistic, the arguments are not part of the definition (right now), so the names must be unique.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
children, pos
Constructor and Description |
---|
FunctionReference(java.lang.String functionName,
int pos,
SpelNodeImpl... arguments) |
Modifier and Type | Method and Description |
---|---|
private TypedValue |
executeFunctionJLRMethod(ExpressionState state,
java.lang.reflect.Method method)
Execute a function represented as a java.lang.reflect.Method.
|
private java.lang.Object[] |
getArguments(ExpressionState state)
Compute the arguments to the function, they are the children of this expression node.
|
TypedValue |
getValueInternal(ExpressionState state) |
java.lang.String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, isWritable, nextChildIs, setValue
public FunctionReference(java.lang.String functionName, int pos, SpelNodeImpl... arguments)
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal
in class SpelNodeImpl
EvaluationException
private TypedValue executeFunctionJLRMethod(ExpressionState state, java.lang.reflect.Method method) throws EvaluationException
state
- the expression evaluation statethe
- java method to invokeEvaluationException
- if there is any problem invoking the methodpublic java.lang.String toStringAST()
toStringAST
in interface SpelNode
toStringAST
in class SpelNodeImpl
private java.lang.Object[] getArguments(ExpressionState state) throws EvaluationException
EvaluationException