org.apache.velocity.runtime.parser.node

Class ASTSubtractNode

public class ASTSubtractNode extends SimpleNode

Handles integer subtraction of nodes (in #set() ) Please look at the Parser.jjt file which is what controls the generation of this class.

Version: $Id: ASTSubtractNode.java,v 1.7.8.1 2004/03/03 23:22:59 geirm Exp $

Author: Jason van Zyl Geir Magnusson Jr.

Constructor Summary
ASTSubtractNode(int id)
ASTSubtractNode(Parser p, int id)
Method Summary
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.
Objectvalue(InternalContextAdapter context)
computes the value of the subtraction.

Constructor Detail

ASTSubtractNode

public ASTSubtractNode(int id)

ASTSubtractNode

public ASTSubtractNode(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 value of the subtraction. Currently limited to integers

Returns: Integer(value) or null

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