de.odysseus.el.tree.impl.ast
Class AstMethod
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.AstMethod
- All Implemented Interfaces:
- ExpressionNode, Node
public class AstMethod
- extends AstInvocation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AstMethod
public AstMethod(AstProperty property,
java.util.List<AstNode> nodes,
boolean varargs)
resolveMethod
protected java.lang.reflect.Method resolveMethod(ELContext context,
java.lang.Object base,
java.lang.String name)
throws MethodNotFoundException
- Resolve method
- Parameters:
context
- base
-
- Returns:
- either a
java.lang.reflect.Method
or a javax.el.MethodInfo
- Throws:
PropertyNotFoundException
MethodNotFoundException
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
getBase
protected AstNode getBase()
getName
protected java.lang.String getName(Bindings bindings,
ELContext context)
getCardinality
public int getCardinality()
- Description copied from interface:
Node
- Get the node's number of children.
getChild
public AstNode getChild(int i)
- Description copied from interface:
Node
- Get i'th child