public class ASTSubtractNode extends ASTMathNode
strictMode
Constructor and Description |
---|
ASTSubtractNode(int id) |
ASTSubtractNode(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
String |
getLiteralOperator()
get the string representing the mathematical operator
|
Number |
perform(Number left,
Number right,
InternalContextAdapter context)
Performs the math operation represented by this node.
|
handleSpecial, init, jjtAccept, value
literal
childrenAccept, 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, toString
public ASTSubtractNode(int id)
id
- public ASTSubtractNode(Parser p, int id)
p
- id
- public String getLiteralOperator()
ASTBinaryOperator
getLiteralOperator
in class ASTBinaryOperator
public Number perform(Number left, Number right, InternalContextAdapter context)
ASTMathNode
perform
in class ASTMathNode
ASTAddNode.perform(Number, Number, InternalContextAdapter)
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.