public class ASTMethod extends SimpleNode
| Modifier and Type | Field and Description |
|---|---|
private static Info |
DUMMY
dummy velocity info.
|
children, id, parent, parser| Constructor and Description |
|---|
ASTMethod(int id)
Create the node given an id.
|
ASTMethod(Parser p,
int id)
Create a node with the given parser and id.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(java.lang.Object obj,
JexlContext jc)
evaluate a method invocation upon a base object.
|
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data)
Accept the visitor.
|
private java.lang.Number |
narrow(java.lang.Number original)
Given a Number, return back the value using the smallest type the result
will fit into.
|
childrenAccept, dump, interpret, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString, toString, valueprivate static final Info DUMMY
public ASTMethod(int id)
id - node id.public ASTMethod(Parser p, int id)
p - a parser.id - node id.public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept in interface NodejjtAccept in class SimpleNodevisitor - a ParserVisitor.data - data to be passed along to the visitor.ParserVisitor.visit(org.apache.commons.jexl.parser.SimpleNode, java.lang.Object)public java.lang.Object execute(java.lang.Object obj,
JexlContext jc)
throws java.lang.Exception
execute in class SimpleNodejc - the JexlContext to evaluate against.obj - The object to have the method invoked.java.lang.Exception - on any errorprivate java.lang.Number narrow(java.lang.Number original)
original - the original number.