de.odysseus.el.tree.impl.ast
Class AstMethod

java.lang.Object
  extended by de.odysseus.el.tree.impl.ast.AstNode
      extended by de.odysseus.el.tree.impl.ast.AstRightValue
          extended by de.odysseus.el.tree.impl.ast.AstInvocation
              extended by de.odysseus.el.tree.impl.ast.AstMethod
All Implemented Interfaces:
ExpressionNode, Node

public class AstMethod
extends AstInvocation


Field Summary
 
Fields inherited from class de.odysseus.el.tree.impl.ast.AstInvocation
nodes, varargs
 
Constructor Summary
AstMethod(AstProperty property, java.util.List<AstNode> nodes, boolean varargs)
           
 
Method Summary
 void appendStructure(java.lang.StringBuilder b, Bindings bindings)
           
 java.lang.Object eval(Bindings bindings, ELContext context)
           
protected  AstNode getBase()
           
 int getCardinality()
          Get the node's number of children.
 AstNode getChild(int i)
          Get i'th child
protected  java.lang.String getName(Bindings bindings, ELContext context)
           
protected  java.lang.reflect.Method resolveMethod(ELContext context, java.lang.Object base, java.lang.String name)
          Resolve method
 java.lang.String toString()
           
 
Methods inherited from class de.odysseus.el.tree.impl.ast.AstInvocation
getParam, getParamCount, invoke, isVarArgs
 
Methods inherited from class de.odysseus.el.tree.impl.ast.AstRightValue
getMethodInfo, getType, invoke, isLeftValue, isLiteralText, isReadOnly, setValue
 
Methods inherited from class de.odysseus.el.tree.impl.ast.AstNode
getStructuralId, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AstMethod

public AstMethod(AstProperty property,
                 java.util.List<AstNode> nodes,
                 boolean varargs)
Method Detail

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


Copyright © 2006-2009 Odysseus Software GmbH.