org.apache.commons.jexl.parser
Class ASTMethod

java.lang.Object
  extended byorg.apache.commons.jexl.parser.SimpleNode
      extended byorg.apache.commons.jexl.parser.ASTMethod
All Implemented Interfaces:
Node

public class ASTMethod
extends SimpleNode


Field Summary
 
Fields inherited from class org.apache.commons.jexl.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTMethod(int id)
           
ASTMethod(Parser p, int id)
           
 
Method Summary
 java.lang.Object execute(java.lang.Object obj, JexlContext jc)
          returns the value of itself applied to the object.
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 
Methods inherited from class org.apache.commons.jexl.parser.SimpleNode
childrenAccept, dump, interpret, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString, toString, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTMethod

public ASTMethod(int id)

ASTMethod

public ASTMethod(Parser p,
                 int id)
Method Detail

jjtAccept

public java.lang.Object jjtAccept(ParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode

execute

public java.lang.Object execute(java.lang.Object obj,
                                JexlContext jc)
                         throws java.lang.Exception
returns the value of itself applied to the object. We assume that an identifier can be gotten via a get(String)

Overrides:
execute in class SimpleNode
Throws:
java.lang.Exception