public class AstFunction extends AstRightValue implements FunctionNode
| Constructor and Description |
|---|
AstFunction(java.lang.String name,
int index,
AstParameters params) |
AstFunction(java.lang.String name,
int index,
AstParameters params,
boolean varargs) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendStructure(java.lang.StringBuilder b,
Bindings bindings) |
java.lang.Object |
eval(Bindings bindings,
ELContext context) |
int |
getCardinality()
Get the node's number of children.
|
AstNode |
getChild(int i)
Get i'th child
|
int |
getIndex()
Get the unique index of this identifier in the expression (e.g.
|
java.lang.String |
getName()
Get the full function name
|
protected AstNode |
getParam(int i) |
int |
getParamCount()
Get the number of parameters for this function
|
protected java.lang.Object |
invoke(Bindings bindings,
ELContext context,
java.lang.Object base,
java.lang.reflect.Method method)
Invoke method.
|
boolean |
isVarArgs() |
java.lang.String |
toString() |
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValuefindAccessibleMethod, getStructuralId, getValuepublic AstFunction(java.lang.String name,
int index,
AstParameters params)
public AstFunction(java.lang.String name,
int index,
AstParameters params,
boolean varargs)
protected java.lang.Object invoke(Bindings bindings, ELContext context, java.lang.Object base, java.lang.reflect.Method method) throws java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
bindings - context - base - method - java.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void appendStructure(java.lang.StringBuilder b,
Bindings bindings)
appendStructure in class AstNodepublic int getIndex()
FunctionNodegetIndex in interface FunctionNodepublic java.lang.String getName()
FunctionNodegetName in interface FunctionNodepublic boolean isVarArgs()
isVarArgs in interface FunctionNodetrue if this node supports varargs.public int getParamCount()
FunctionNodegetParamCount in interface FunctionNodeprotected AstNode getParam(int i)
public int getCardinality()
NodegetCardinality in interface Node