org.apache.velocity.runtime.parser.node

Class ASTAddNode

public class ASTAddNode extends SimpleNode

Handles integer addition of nodes Please look at the Parser.jjt file which is what controls the generation of this class.

Version: $Id: ASTAddNode.java,v 1.8.8.1 2004/03/03 23:22:58 geirm Exp $

Author: Jason van Zyl Geir Magnusson Jr.

Constructor Summary
ASTAddNode(int id)
ASTAddNode(Parser p, int id)
Method Summary
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.
Objectvalue(InternalContextAdapter context)
computes the sum of the two nodes.

Constructor Detail

ASTAddNode

public ASTAddNode(int id)

ASTAddNode

public ASTAddNode(Parser p, int id)

Method Detail

jjtAccept

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

value

public Object value(InternalContextAdapter context)
computes the sum of the two nodes. Currently only integer operations are supported.

Returns: Integer object with value, or null

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.