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, setLValueprotected 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()
NodeTree 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 NodeNodes of this Node.