Package org.glassfish.rmic.tools.java
Class IdentifierToken
- java.lang.Object
-
- org.glassfish.rmic.tools.java.IdentifierToken
-
public class IdentifierToken extends java.lang.Object
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
Fields Modifier and Type Field Description (package private) Identifier
id
(package private) int
modifiers
(package private) long
where
-
Constructor Summary
Constructors Constructor Description IdentifierToken(long where, Identifier id)
IdentifierToken(long where, Identifier id, int modifiers)
IdentifierToken(Identifier id)
Use this constructor when the identifier is synthesized.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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).java.lang.String
toString()
-
-
-
Field Detail
-
where
long where
-
modifiers
int modifiers
-
id
Identifier id
-
-
Constructor Detail
-
IdentifierToken
public IdentifierToken(long where, Identifier id)
-
IdentifierToken
public IdentifierToken(Identifier id)
Use this constructor when the identifier is synthesized. The location will be 0.
-
IdentifierToken
public IdentifierToken(long where, Identifier id, int modifiers)
-
-
Method Detail
-
getWhere
public long getWhere()
The source location of this identifier occurrence.
-
getName
public Identifier getName()
The identifier itself (possibly qualified).
-
getModifiers
public int getModifiers()
The modifiers associated with the occurrence, if any.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getWhere
public static long getWhere(IdentifierToken id, long defaultWhere)
Return defaultWhere if id is null or id.where is missing (0). Otherwise, return id.where.
-
-