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 |
Constructor and Description |
---|
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, isLValue, setAssignmentContext, setBlock, setInSource, setLValue
protected final BinaryTree tree
protected final Node left
protected final Node right
public 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 ImplicitThisLiteralNode
.public Collection<Node> getOperands()
getOperands
in class Node
Node
s of this Node
.