public class LocalVariableNode extends Node
identifierWe allow local variable uses introduced by the
CFGBuilder
without corresponding AST Tree
s.Modifier and Type | Field and Description |
---|---|
protected @Nullable Node |
receiver
The receiver node for the local variable,
null otherwise. |
protected Tree |
tree
The tree for the local variable.
|
Constructor and Description |
---|
LocalVariableNode(Tree t)
Create a new local variable node for the given tree.
|
LocalVariableNode(Tree t,
@Nullable Node receiver)
Create a new local variable node for the given tree and receiver.
|
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) |
Element |
getElement() |
String |
getName() |
Collection<Node> |
getOperands()
|
@Nullable Node |
getReceiver()
The receiver node for the local variable,
null otherwise. |
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
public LocalVariableNode(Tree t)
public Element getElement()
public @Nullable Node getReceiver()
null
otherwise.public String getName()
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 ImplicitThisLiteralNode
.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