public abstract class Identifier extends Object
This is either a full dotted identifier or a partial identifier.
| Modifier and Type | Class and Description |
|---|---|
static class |
Identifier.Type
What flavor of identifier this is.
|
| Constructor and Description |
|---|
Identifier() |
| Modifier and Type | Method and Description |
|---|---|
static Identifier |
create(String identifier,
SourceLocation location)
Creates a new identifier.
|
Identifier |
extractPartAfterLastDot()
Gets the part after the last dot in a dotted identifier.
|
abstract String |
identifier() |
abstract SourceLocation |
location() |
String |
toString() |
Identifier.Type |
type() |
public static Identifier create(String identifier, SourceLocation location)
.foo or a full
name (e.g. foo or foo.bar.bar.quux.public abstract String identifier()
public abstract SourceLocation location()
@Memoized public Identifier.Type type()
public Identifier extractPartAfterLastDot()
Important: The input must be a dotted identifier. This is not checked.