org.apache.commons.jexl.parser
Class ASTMethod
java.lang.Object
org.apache.commons.jexl.parser.SimpleNode
org.apache.commons.jexl.parser.ASTMethod
- All Implemented Interfaces:
- Node
- public class ASTMethod
- extends SimpleNode
Methods inherited from class org.apache.commons.jexl.parser.SimpleNode |
childrenAccept, dump, interpret, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString, toString, value |
ASTMethod
public ASTMethod(int id)
ASTMethod
public ASTMethod(Parser p,
int id)
jjtAccept
public Object jjtAccept(ParserVisitor visitor,
Object data)
- Accept the visitor.
- Specified by:
jjtAccept
in interface Node
- Overrides:
jjtAccept
in class SimpleNode
execute
public Object execute(Object obj,
JexlContext jc)
throws 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:
Exception
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.