public class FieldAccessNode extends Node
expression . field
Modifier and Type | Field and Description |
---|---|
protected VariableElement |
element |
protected String |
field |
protected Node |
receiver |
protected Tree |
tree |
Constructor and Description |
---|
FieldAccessNode(Tree tree,
Node receiver) |
FieldAccessNode(Tree tree,
VariableElement element,
Node 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) |
VariableElement |
getElement() |
String |
getFieldName() |
Collection<Node> |
getOperands()
|
Node |
getReceiver() |
Tree |
getTree()
Returns the
Tree in the abstract syntax tree, or null if no corresponding
tree exists. |
int |
hashCode() |
boolean |
isStatic()
Is this a static field?
|
String |
toString() |
getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, nodeCollectionToString, setAssignmentContext, setBlock, setInSource, setLValue, toStringDebug
protected final Tree tree
protected final VariableElement element
protected final String field
protected final Node receiver
public FieldAccessNode(Tree tree, VariableElement element, Node receiver)
public VariableElement getElement()
public Node getReceiver()
public String getFieldName()
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 boolean isStatic()
public Collection<Node> getOperands()
Node
getOperands
in class Node
Node
s of this Node