| java.lang.Object sun.tools.java.IdentifierToken
IdentifierToken | public class IdentifierToken (Code) | | Information about the occurrence of an identifier.
The parser produces these to represent name which cannot yet be
bound to field definitions.
WARNING: The contents of this source file are not part of any
supported API. Code that depends on them does so at its own risk:
they are subject to change or removal without notice.
See Also: |
Method Summary | |
public int | getModifiers() The modifiers associated with the occurrence, if any. | public Identifier | getName() The identifier itself (possibly qualified). | public long | getWhere() The source location of this identifier occurrence. | public static long | getWhere(IdentifierToken id, long defaultWhere) Return defaultWhere if id is null or id.where is missing (0). | public String | toString() |
IdentifierToken | public IdentifierToken(Identifier id)(Code) | | Use this constructor when the identifier is synthesized.
The location will be 0.
|
IdentifierToken | public IdentifierToken(long where, Identifier id, int modifiers)(Code) | | |
getModifiers | public int getModifiers()(Code) | | The modifiers associated with the occurrence, if any.
|
getName | public Identifier getName()(Code) | | The identifier itself (possibly qualified).
|
getWhere | public long getWhere()(Code) | | The source location of this identifier occurrence.
|
getWhere | public static long getWhere(IdentifierToken id, long defaultWhere)(Code) | | Return defaultWhere if id is null or id.where is missing (0).
Otherwise, return id.where.
|
|
|