public abstract class BinaryOperationNode extends Node
For example:
lefOperandNode operator rightOperandNode
Modifier and Type | Field and Description |
---|---|
protected Node |
left |
protected Node |
right |
protected BinaryTree |
tree |
Modifier | Constructor and Description |
---|---|
protected |
BinaryOperationNode(BinaryTree tree,
Node left,
Node right) |
Modifier and Type | Method and Description |
---|---|
Node |
getLeftOperand() |
Collection<Node> |
getOperands()
|
Node |
getRightOperand() |
BinaryTree |
getTree()
Returns the
Tree in the abstract syntax tree, or null if no corresponding tree
exists. |
accept, getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setAssignmentContext, setBlock, setInSource, setLValue, toStringDebug
protected final BinaryTree tree
protected final Node left
protected final Node right
protected BinaryOperationNode(BinaryTree tree, Node left, Node right)
public Node getLeftOperand()
public Node getRightOperand()
public BinaryTree getTree()
Node
Tree
in the abstract syntax tree, or null
if no corresponding tree
exists. For instance, this is the case for an ImplicitThisNode
.public Collection<Node> getOperands()
Node
getOperands
in class Node
Node
s of this Node