public abstract class BinaryOperationNode extends Node
For example:
lefOperandNode operator rightOperandNode
Modifier and Type | Field and Description |
---|---|
protected Node |
left |
protected Node |
right |
protected com.sun.source.tree.BinaryTree |
tree |
Constructor and Description |
---|
BinaryOperationNode(com.sun.source.tree.BinaryTree tree,
Node left,
Node right) |
Modifier and Type | Method and Description |
---|---|
Node |
getLeftOperand() |
java.util.Collection<Node> |
getOperands() |
Node |
getRightOperand() |
com.sun.source.tree.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 com.sun.source.tree.BinaryTree tree
protected final Node left
protected final Node right
public Node getLeftOperand()
public Node getRightOperand()
public com.sun.source.tree.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 java.util.Collection<Node> getOperands()
getOperands
in class Node
Node
s of this Node
.