com.voytechs.jnetstream.npl
Class MultiplyOpNode
java.lang.Object
com.voytechs.jnetstream.npl.Node
com.voytechs.jnetstream.npl.OpNode
com.voytechs.jnetstream.npl.MultiplyOpNode
- All Implemented Interfaces:
- BooleanNode, IntNode, LongNode, StringNode, Visitable
public class MultiplyOpNode
- extends OpNode
- implements IntNode, LongNode, BooleanNode, StringNode
| Fields inherited from class com.voytechs.jnetstream.npl.OpNode |
BINARY, cardinality, FLAG_NO_OP, flags, HIGH, left, LOW, MEDIUM, NORMAL, op, presedence, right, UNARY |
| Methods inherited from class com.voytechs.jnetstream.npl.OpNode |
canOptimize, clone, createOpNode, createOpNode, equals, getCardinality, getFlags, getLeft, getOpString, getPresedence, getRight, optimize, set, setFlag, setLeft, setRight, toString, visit |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MultiplyOpNode
public MultiplyOpNode(LongNode right,
LongNode left)
- Parameters:
-
- Throws:
MultiplyOpNode
public MultiplyOpNode()
getInt
public int getInt()
- Specified by:
getInt in interface IntNode
getLong
public long getLong()
- Specified by:
getLong in interface LongNode
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean in interface BooleanNode
getString
public java.lang.String getString()
- Specified by:
getString in interface StringNode
createOpNode
public OpNode createOpNode(Node right,
Node left)
- Creates a new instace of this node type.
- Overrides:
createOpNode in class OpNode
main
public static void main(java.lang.String[] args)
- Test function for MultiplyOpNode
- Parameters:
args - command line arguments