public class StringConcatenateAssignmentNode extends Node
variable += expression
Modifier and Type | Field and Description |
---|---|
protected Node |
left
The left-hand side of the assignment
|
protected Node |
right
The right-hand side of the assignment
|
protected Tree |
tree
The entire tree of the assignment
|
Constructor and Description |
---|
StringConcatenateAssignmentNode(Tree tree,
Node left,
Node right)
Constructs an
StringConcatenateAssignmentNode . |
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(NodeVisitor<R,P> visitor,
P p)
Accept method of the visitor pattern.
|
boolean |
equals(@Nullable Object obj) |
Node |
getLeftOperand() |
Collection<Node> |
getOperands()
|
Node |
getRightOperand() |
Tree |
getTree()
Returns the
Tree in the abstract syntax tree, or null if no corresponding tree
exists. |
int |
hashCode() |
String |
toString() |
getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setAssignmentContext, setBlock, setInSource, setLValue, toStringDebug
protected final Tree tree
protected final Node left
protected final Node right
public StringConcatenateAssignmentNode(Tree tree, Node left, Node right)
StringConcatenateAssignmentNode
.tree
- the binary tree of the assignmentleft
- the left-hand sideright
- the right-hand sidepublic Node getLeftOperand()
public Node getRightOperand()
public Tree 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 <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Node
public Collection<Node> getOperands()
Node
getOperands
in class Node
Node
s of this Node