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)
Creates a new FieldAccessNode.
|
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() |
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebugprotected final Tree tree
protected final VariableElement element
protected final String field
protected final Node receiver
public FieldAccessNode(Tree tree, Node receiver)
tree - the tree from which to create a FieldAccessNodereceiver - the receiver for the resuling FieldAccessNodepublic FieldAccessNode(Tree tree, VariableElement element, Node receiver)
public VariableElement getElement()
public Node getReceiver()
public String getFieldName()
public Tree getTree()
NodeTree 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)
Nodepublic boolean isStatic()
public Collection<Node> getOperands()
NodegetOperands in class NodeNodes of this Node