|
org.netbeans.modules.java.source 0.80.1 17 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.java.source.ClasspathInfo
public final class ClasspathInfo
Class which contains info about classpath
Nested Class Summary | |
---|---|
static class |
ClasspathInfo.PathKind
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener listener)
Registers ChangeListener which will be notified about the changes in the classpath. |
static ClasspathInfo |
create(ClassPath bootPath,
ClassPath classPath,
ClassPath sourcePath)
|
static ClasspathInfo |
create(Document doc)
Creates a new instance of the ClasspathInfo for given Document. |
static ClasspathInfo |
create(File file)
Creates new interface to the compiler |
static ClasspathInfo |
create(FileObject fo)
Creates new interface to the compiler |
boolean |
equals(Object obj)
|
ClassIndex |
getClassIndex()
|
ClassPath |
getClassPath(ClasspathInfo.PathKind pathKind)
|
int |
hashCode()
|
void |
removeChangeListener(ChangeListener listener)
Removes ChangeListener from the list of listeners. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
@NullUnknown public static ClasspathInfo create(@NonNull File file)
file
- for which the CompilerInterface should be created
@NullUnknown public static ClasspathInfo create(@NonNull Document doc)
It uses the Document.StreamDescriptionProperty
to obtain the
DataObject
for the Document
and creates a ClasspathInfo
for the primary file of the DataObject
doc
- a document for which the ClasspathInfo
should be created
ClasspathInfo
or null when the document source cannot be
found.@NonNull public static ClasspathInfo create(@NonNull FileObject fo)
fo
- for which the CompilerInterface should be created@NonNull public static ClasspathInfo create(@NonNull ClassPath bootPath, @NonNull ClassPath classPath, @NullAllowed ClassPath sourcePath)
public void addChangeListener(@NonNull ChangeListener listener)
listener
- The listener to register.public void removeChangeListener(@NonNull ChangeListener listener)
listener
- The listener to remove.public ClassPath getClassPath(@NonNull ClasspathInfo.PathKind pathKind)
@NonNull public ClassIndex getClassIndex()
|
org.netbeans.modules.java.source 0.80.1 17 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |