org.apache.velocity.runtime.parser.node

Class ASTDivNode

public class ASTDivNode extends SimpleNode

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

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

Author: Jason van Zyl Geir Magnusson Jr.

Constructor Summary
ASTDivNode(int id)
ASTDivNode(Parser p, int id)
Method Summary
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.
Objectvalue(InternalContextAdapter context)
computes the result of the division.

Constructor Detail

ASTDivNode

public ASTDivNode(int id)

ASTDivNode

public ASTDivNode(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 result of the division. Currently limited to Integers.

Returns: Integer(value) or null

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