Class ASTMulNode
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTBinaryOperator
org.apache.velocity.runtime.parser.node.ASTMathNode
org.apache.velocity.runtime.parser.node.ASTMulNode
- All Implemented Interfaces:
- Cloneable,- Node,- Renderable
Handles multiplication
Please look at the Parser.jjt file which is what controls the generation of this class.
Please look at the Parser.jjt file which is what controls the generation of this class.
- Version:
- $Id$
- Author:
- Will Glass-Husain, Peter Romianowski, Jason van Zyl, Geir Magnusson Jr.
- 
Field SummaryFields inherited from class org.apache.velocity.runtime.parser.node.ASTMathNodestrictMode
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionget the string representing the mathematical operatorinit(InternalContextAdapter context, Object data) perform(Number left, Number right, InternalContextAdapter context) Performs the math operation represented by this node.Methods inherited from class org.apache.velocity.runtime.parser.node.ASTMathNodehandleSpecial, jjtAccept, valueMethods inherited from class org.apache.velocity.runtime.parser.node.ASTBinaryOperatorliteralMethods inherited from class org.apache.velocity.runtime.parser.node.SimpleNodechildrenAccept, cleanupParserAndTokens, clone, clone, dump, dump, dump, evaluate, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getParser, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString
- 
Constructor Details- 
ASTMulNodepublic ASTMulNode(int id) - Parameters:
- id-
 
- 
ASTMulNode- Parameters:
- p-
- id-
 
 
- 
- 
Method Details- 
performDescription copied from class:ASTMathNodePerforms the math operation represented by this node.- Specified by:
- performin class- ASTMathNode
- Parameters:
- left-
- right-
- context-
- Returns:
- computed value
- See Also:
 
- 
initDescription copied from class:ASTMathNode- Specified by:
- initin interface- Node
- Overrides:
- initin class- ASTMathNode
- Parameters:
- context-
- data-
- Returns:
- The init result.
- Throws:
- TemplateInitException
- See Also:
 
- 
getLiteralOperatorDescription copied from class:ASTBinaryOperatorget the string representing the mathematical operator- Specified by:
- getLiteralOperatorin class- ASTBinaryOperator
- Returns:
- operator string
 
 
-