The rightmost identifier is "identifier", The one to the left of it is "qualifier.identifier", etc.
You can construct one from a String with the name(...) method.
SimpleName
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | Name(TokenRange tokenRange, Name qualifier, String identifier)
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 String | Returns: the complete qualified name. Only the identifiers and the dots, so no comments or whitespace.
|
| public Name | |
| public String | |
| public NameMetaModel | |
| public Optional | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Name | |
| public boolean | |
| public Name | setIdentifier(final String identifier)
Implements com. |
| public Name |
| identifier | back to summary |
|---|---|
| private String identifier
| |
| qualifier | back to summary |
|---|---|
| private Name qualifier
| |
| Name | back to summary |
|---|---|
| public Name() | |
| Name | back to summary |
|---|---|
| public Name(final String identifier) | |
| Name | back to summary |
|---|---|
public Name(Name qualifier, final String identifier)
| |
| Name | back to summary |
|---|---|
| public Name(TokenRange tokenRange, Name qualifier, String identifier) 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.
| |
| asString | back to summary |
|---|---|
public String asString()
| |
| clone | back to summary |
|---|---|
| public Name 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
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Implements com.
| |
| getMetaModel | back to summary |
|---|---|
| public NameMetaModel getMetaModel() Overrides com.
| |
| getQualifier | back to summary |
|---|---|
public Optional
| |
| isInternal | back to summary |
|---|---|
| public boolean isInternal() An internal name is a name that constitutes a part of a larger Name instance. | |
| isTopLevel | back to summary |
|---|---|
| public boolean isTopLevel() A top level name is a name that is not contained in a larger Name instance. | |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| removeQualifier | back to summary |
|---|---|
public Name removeQualifier()
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setIdentifier | back to summary |
|---|---|
| public Name setIdentifier(final String identifier) Implements com.
| |
| setQualifier | back to summary |
|---|---|
public Name setQualifier(final Name qualifier)
| |