Class ASTSubtractNode
- java.lang.Object
-
- org.apache.velocity.runtime.parser.node.SimpleNode
-
- org.apache.velocity.runtime.parser.node.ASTMathNode
-
- org.apache.velocity.runtime.parser.node.ASTSubtractNode
-
- All Implemented Interfaces:
Node
,Renderable
public class ASTSubtractNode extends ASTMathNode
Handles 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 691048 2008-09-01 20:26:11Z nbubna $
-
-
Field Summary
-
Fields inherited from class org.apache.velocity.runtime.parser.node.ASTMathNode
strictMode
-
-
Constructor Summary
Constructors Constructor Description ASTSubtractNode(int id)
ASTSubtractNode(Parser p, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Number
perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)
Performs the math operation represented by this node.-
Methods inherited from class org.apache.velocity.runtime.parser.node.ASTMathNode
handleSpecial, init, jjtAccept, value
-
Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, dump, evaluate, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toString
-
-
-
-
Constructor Detail
-
ASTSubtractNode
public ASTSubtractNode(int id)
- Parameters:
id
-
-
ASTSubtractNode
public ASTSubtractNode(Parser p, int id)
- Parameters:
p
-id
-
-
-
Method Detail
-
perform
public java.lang.Number perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)
Description copied from class:ASTMathNode
Performs the math operation represented by this node.- Specified by:
perform
in classASTMathNode
-
-