Package org.glassfish.rmic.tools.java
Class IdentifierToken
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.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Identifier
(package private) int
(package private) long
-
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 TypeMethodDescriptionint
The modifiers associated with the occurrence, if any.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).toString()
-
Field Details
-
where
long where -
modifiers
int modifiers -
id
Identifier id
-
-
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.
-