java.lang.Object
org.glassfish.rmic.tools.java.IdentifierToken
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.
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifierToken(long where, Identifier id) IdentifierToken(long where, Identifier id, int modifiers) Use this constructor when the identifier is synthesized. -
Method Summary
Modifier and TypeMethodDescriptionintThe modifiers associated with the occurrence, if any.getName()The identifier itself (possibly qualified).longgetWhere()The source location of this identifier occurrence.static longgetWhere(IdentifierToken id, long defaultWhere) Return defaultWhere if id is null or id.where is missing (0).toString()
-
Constructor Details
-
IdentifierToken
-
IdentifierToken
Use this constructor when the identifier is synthesized. The location will be 0. -
IdentifierToken
-
-
Method Details
-
getWhere
public long getWhere()The source location of this identifier occurrence. -
getName
The identifier itself (possibly qualified). -
getModifiers
public int getModifiers()The modifiers associated with the occurrence, if any. -
toString
-
getWhere
Return defaultWhere if id is null or id.where is missing (0). Otherwise, return id.where.
-