public class ASTMulNode extends ASTMathNode
strictMode| Constructor and Description | 
|---|
ASTMulNode(int id)  | 
ASTMulNode(Parser p,
          int id)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getLiteralOperator()
get the string representing the mathematical operator 
 | 
Object | 
init(InternalContextAdapter context,
    Object data) | 
Number | 
perform(Number left,
       Number right,
       InternalContextAdapter context)
Performs the math operation represented by this node. 
 | 
handleSpecial, jjtAccept, valueliteralchildrenAccept, cleanupParserAndTokens, dump, dump, dump, evaluate, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toStringpublic ASTMulNode(int id)
id - public ASTMulNode(Parser p, int id)
p - id - public Number perform(Number left, Number right, InternalContextAdapter context)
ASTMathNodeperform in class ASTMathNodeASTAddNode.perform(Number, Number, InternalContextAdapter)public Object init(InternalContextAdapter context, Object data) throws TemplateInitException
ASTMathNodeinit in interface Nodeinit in class ASTMathNodeTemplateInitExceptionNode.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)public String getLiteralOperator()
ASTBinaryOperatorgetLiteralOperator in class ASTBinaryOperatorCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.