|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jexl.parser.SimpleNode
org.apache.commons.jexl.parser.ASTMethod
public class ASTMethod
Method execution.
| Field Summary | |
|---|---|
private static Info |
DUMMY
dummy velocity info. |
| Fields inherited from class org.apache.commons.jexl.parser.SimpleNode |
|---|
children, id, parent, parser |
| Constructor Summary | |
|---|---|
ASTMethod(int id)
Create the node given an id. |
|
ASTMethod(Parser p,
int id)
Create a node with the given parser and id. |
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Field Detail |
|---|
private static final Info DUMMY
| Constructor Detail |
|---|
public ASTMethod(int id)
id - node id.
public ASTMethod(Parser p,
int id)
p - a parser.id - node id.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||