public final class ClasspathInfo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClasspathInfo.Builder
Builder for
ClasspathInfo . |
static class |
ClasspathInfo.PathKind |
static interface |
ClasspathInfo.Provider
Interface for
Task s that want to provide ClasspathInfo . |
Modifier and Type | Method and Description |
---|---|
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() |
@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 createdClasspathInfo
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()