|
org.openide.src 1.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.src.Identifier
public final class Identifier
Represents one identifier.
Nested Class Summary | |
---|---|
static interface |
Identifier.Resolver
The interface allows lazy resolving of an Identifier to a fully qualified name. |
Field Summary | |
---|---|
static int |
NOT_YET_RESOLVED
The identifier was not yet resolved, it was constructed without context information or with unsuitable context. |
static int |
RESOLVED
The identifier was resolved, the full name is filled in. |
static int |
UNRESOLVED
The identifier cannot be resolved. |
Method Summary | |
---|---|
boolean |
compareTo(Identifier id,
boolean source)
Compare the specified Identifier with this Identifier for equality. |
static Identifier |
create(Identifier.Resolver resolver,
String name)
Create an Identifier |
static Identifier |
create(String name)
Create an identifier with the same source name and fully qualified name. |
static Identifier |
create(String fullName,
String sourceName)
Create an identifier. |
static Identifier |
create(String full,
String sourceName,
int status)
|
boolean |
equals(Object o)
Compare the specified object with this Identifier for equality. |
String |
getFullName()
Get the qualified name with the package prefix (if any). |
String |
getName()
Get the simple name within a package. |
String |
getQualifier()
Get the package prefix. |
int |
getResolutionStatus()
Returns the resolution status of the identifier. |
String |
getSourceName()
Get the identifier for the code generation. |
int |
hashCode()
|
boolean |
isQualified()
Test whether this identifier is qualified by package. |
String |
toString()
This function was changed to match the behaviour of Type.toString that
returns text representation suitable for the source file. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NOT_YET_RESOLVED
public static final int RESOLVED
public static final int UNRESOLVED
Method Detail |
---|
public static Identifier create(String name)
name
- the fully qualified name to create the identifier from
public static Identifier create(String fullName, String sourceName)
fullName
- fully qualified namesourceName
- name for code generation
public static Identifier create(String full, String sourceName, int status)
public static Identifier create(Identifier.Resolver resolver, String name)
resolver
- a Resolvername
- the name of the identifier to createpublic String getName()
public String getSourceName()
public String getQualifier()
public boolean isQualified()
true
if sopublic String getFullName()
public int getResolutionStatus()
public String toString()
Type.toString
that
returns text representation suitable for the source file.
public boolean compareTo(Identifier id, boolean source)
id
- Identifier to be compared with thissource
- Determine if the source name should be also compared.
If false
only fully qualified name is compared.
true
if the specified object equals to
specified Identifier otherwise false
.public boolean equals(Object o)
o
- Object to be compared with this
true
if the specified object is Identifier
with the same fully qualified name,
otherwise false
.public int hashCode()
|
org.openide.src 1.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |