de.odysseus.el.tree.impl.ast
Class AstFunction
java.lang.Object
de.odysseus.el.tree.impl.ast.AstNode
de.odysseus.el.tree.impl.ast.AstRightValue
de.odysseus.el.tree.impl.ast.AstInvocation
de.odysseus.el.tree.impl.ast.AstFunction
- All Implemented Interfaces:
- ExpressionNode, FunctionNode, Node
public class AstFunction
- extends AstInvocation
- implements FunctionNode
Constructor Summary |
AstFunction(java.lang.String name,
int index,
java.util.List<AstNode> nodes)
|
AstFunction(java.lang.String name,
int index,
java.util.List<AstNode> nodes,
boolean varargs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AstFunction
public AstFunction(java.lang.String name,
int index,
java.util.List<AstNode> nodes)
AstFunction
public AstFunction(java.lang.String name,
int index,
java.util.List<AstNode> nodes,
boolean varargs)
eval
public java.lang.Object eval(Bindings bindings,
ELContext context)
- Specified by:
eval
in class AstNode
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
appendStructure
public void appendStructure(java.lang.StringBuilder b,
Bindings bindings)
- Specified by:
appendStructure
in class AstNode
getIndex
public int getIndex()
- Description copied from interface:
FunctionNode
- Get the unique index of this identifier in the expression (e.g. preorder index)
- Specified by:
getIndex
in interface FunctionNode
getName
public java.lang.String getName()
- Description copied from interface:
FunctionNode
- Get the full function name
- Specified by:
getName
in interface FunctionNode
getCardinality
public int getCardinality()
- Description copied from interface:
Node
- Get the node's number of children.
- Specified by:
getCardinality
in interface Node
getChild
public AstNode getChild(int i)
- Description copied from interface:
Node
- Get i'th child
- Specified by:
getChild
in interface Node