public class IdentifierToken extends Object
| Constructor and Description |
|---|
IdentifierToken(Identifier id)
Use this constructor when the identifier is synthesized.
|
IdentifierToken(long where,
Identifier id) |
IdentifierToken(long where,
Identifier id,
int modifiers) |
| Modifier and Type | Method and Description |
|---|---|
int |
getModifiers()
The modifiers associated with the occurrence, if any.
|
Identifier |
getName()
The identifier itself (possibly qualified).
|
long |
getWhere()
The source location of this identifier occurrence.
|
static long |
getWhere(IdentifierToken id,
long defaultWhere)
Return defaultWhere if id is null or id.where is missing (0).
|
String |
toString() |
public IdentifierToken(long where,
Identifier id)
public IdentifierToken(Identifier id)
public IdentifierToken(long where,
Identifier id,
int modifiers)
public long getWhere()
public Identifier getName()
public int getModifiers()
public static long getWhere(IdentifierToken id, long defaultWhere)
Copyright © 2020. All Rights Reserved.