person.name "name" is the name and "person" is the scope.
| Modifier and Type | Field and Description |
|---|---|
| private SimpleName | |
| private Expression | |
| private NodeList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | FieldAccessExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, SimpleName name)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public FieldAccessExpr | |
| public FieldAccessExpr | clone()
Creates and returns a copy of this object.
|
| public FieldAccessExprMetaModel | |
| public SimpleName | |
| public Expression | |
| public Optional | |
| public void | |
| public boolean | |
| public boolean | isInternal()
Indicate if this FieldAccessExpr is an element directly contained in a larger FieldAccessExpr. |
| public boolean | isTopLevel()
Indicate if this FieldAccessExpr is top level, i.e., it is not directly contained in a larger FieldAccessExpr. |
| public boolean | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public ResolvedValueDeclaration | Returns: aResolvedValueDeclaration representing the declaration of the accessed value.Implements com. |
| public FieldAccessExpr | setName(final SimpleName name)
Implements com. |
| public FieldAccessExpr | Returns: this, the FieldAccessExprthe scope, can not be null scope)Implements com. |
| public FieldAccessExpr | Returns: this, the FieldAccessExprthe type arguments, can be null typeArguments)Implements com. |
| public Optional |
| name | back to summary |
|---|---|
| private SimpleName name | |
| scope | back to summary |
|---|---|
| private Expression scope | |
| typeArguments | back to summary |
|---|---|
| private NodeList<Type> typeArguments
| |
| FieldAccessExpr | back to summary |
|---|---|
| public FieldAccessExpr() | |
| FieldAccessExpr | back to summary |
|---|---|
| public FieldAccessExpr(final Expression scope, final String name) | |
| FieldAccessExpr | back to summary |
|---|---|
public FieldAccessExpr(final Expression scope, final NodeList<Type> typeArguments, final SimpleName name)
| |
| FieldAccessExpr | back to summary |
|---|---|
| public FieldAccessExpr(TokenRange tokenRange, Expression scope, NodeList<Type> typeArguments, SimpleName name) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asFieldAccessExpr | back to summary |
|---|---|
| public FieldAccessExpr asFieldAccessExpr() Overrides com.
| |
| clone | back to summary |
|---|---|
| public FieldAccessExpr clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getMetaModel | back to summary |
|---|---|
| public FieldAccessExprMetaModel getMetaModel() Overrides com.
| |
| getName | back to summary |
|---|---|
| public SimpleName getName() Implements com.
| |
| getScope | back to summary |
|---|---|
| public Expression getScope() Implements com.
| |
| getTypeArguments | back to summary |
|---|---|
| public Optional Implements com.
| |
| ifFieldAccessExpr | back to summary |
|---|---|
| public void ifFieldAccessExpr(Consumer<FieldAccessExpr> action) Overrides com.
| |
| isFieldAccessExpr | back to summary |
|---|---|
| public boolean isFieldAccessExpr() Overrides com.
| |
| isInternal | back to summary |
|---|---|
| public boolean isInternal() Indicate if this FieldAccessExpr is an element directly contained in a larger FieldAccessExpr. | |
| isTopLevel | back to summary |
|---|---|
| public boolean isTopLevel() Indicate if this FieldAccessExpr is top level, i.e., it is not directly contained in a larger FieldAccessExpr. | |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| resolve | back to summary |
|---|---|
| public ResolvedValueDeclaration resolve() Implements com. Attempts to resolve the declaration corresponding to the accessed field. If successful, a
| |
| setName | back to summary |
|---|---|
| public FieldAccessExpr setName(final SimpleName name) Implements com.
| |
| setScope | back to summary |
|---|---|
| public FieldAccessExpr setScope(final Expression scope) Implements com. Sets the scope
| |
| setTypeArguments | back to summary |
|---|---|
| public FieldAccessExpr setTypeArguments(final NodeList<Type> typeArguments) Implements com. Sets the type arguments
| |
| toFieldAccessExpr | back to summary |
|---|---|
| public Optional Overrides com.
| |