Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTAddNode
public class ASTAddNode
extends SimpleNode
Nested Class Summary |
Field Summary |
Fields inherited from class org.apache.velocity.runtime.parser.node.SimpleNode | |
children , first, last , id , info , invalid , parent , parser , rsvc , state |
Constructor Summary | |
| |
|
Method Summary | |
Object |
|
Object |
|
Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode | |
childrenAccept , dump , evaluate , execute , getColumn , getFirstToken , getInfo , getLastToken , getLine , getType , init , isInvalid , jjtAccept , jjtAddChild , jjtClose , jjtGetChild , jjtGetNumChildren , jjtGetParent , jjtOpen , jjtSetParent , literal , render , setFirstToken , setInfo , setInvalid , toString , value |
public Object jjtAccept(ParserVisitor visitor, Object data)
Accept the visitor. *
- Overrides:
- jjtAccept in interface SimpleNode
public Object value(InternalContextAdapter context) throws MethodInvocationException
computes the sum of the two nodes. Currently only integer operations are supported.
- Overrides:
- value in interface SimpleNode
- Returns:
- Integer object with value, or null