public class AstFunction extends AstRightValue implements FunctionNode
Constructor and Description |
---|
AstFunction(String name,
int index,
AstParameters params) |
AstFunction(String name,
int index,
AstParameters params,
boolean varargs) |
Modifier and Type | Method and Description |
---|---|
void |
appendStructure(StringBuilder b,
Bindings bindings) |
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.
|
String |
getName()
Get the full function name
|
protected AstNode |
getParam(int i) |
int |
getParamCount()
Get the number of parameters for this function
|
protected Object |
invoke(Bindings bindings,
ELContext context,
Object base,
Method method)
Invoke method.
|
boolean |
isVarArgs() |
String |
toString() |
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue
getStructuralId, getValue
public AstFunction(String name, int index, AstParameters params)
public AstFunction(String name, int index, AstParameters params, boolean varargs)
protected Object invoke(Bindings bindings, ELContext context, Object base, Method method) throws InvocationTargetException, IllegalAccessException
bindings
- context
- base
- method
- InvocationTargetException
IllegalAccessException
public void appendStructure(StringBuilder b, Bindings bindings)
appendStructure
in class AstNode
public int getIndex()
FunctionNode
getIndex
in interface FunctionNode
public String getName()
FunctionNode
getName
in interface FunctionNode
public boolean isVarArgs()
isVarArgs
in interface FunctionNode
true
if this node supports varargs.public int getParamCount()
FunctionNode
getParamCount
in interface FunctionNode
protected AstNode getParam(int i)
public int getCardinality()
Node
getCardinality
in interface Node
Copyright © 2015. All rights reserved.