public abstract class AbstractClassPathProvider extends Object implements ClassPathProvider
ClassPathProvider
.Modifier and Type | Class and Description |
---|---|
static class |
AbstractClassPathProvider.ClassPathsChangeEvent
The event describing a change of project's
ClassPath set. |
static interface |
AbstractClassPathProvider.ClassPathsChangeListener
Event listener interface for being notified of changes in the set of
projects paths.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractClassPathProvider()
Initializes the
AbstractClassPathProvider . |
Modifier and Type | Method and Description |
---|---|
void |
addClassPathsChangeListener(AbstractClassPathProvider.ClassPathsChangeListener listener)
|
protected void |
fireClassPathsChange(Collection<? extends String> changedClassPathTypes)
Fires the project's
ClassPath s change. |
abstract ClassPath[] |
getProjectClassPaths(String type)
Returns
ClassPath s of given type owned by the project. |
abstract String[] |
getPropertyName(SourceGroup sg,
String type)
Returns the names of path properties storing the path type for given
SourceGroup . |
void |
removeClassPathsChangeListener(AbstractClassPathProvider.ClassPathsChangeListener listener)
Removes the
AbstractClassPathProvider.ClassPathsChangeListener . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findClassPath
protected AbstractClassPathProvider()
AbstractClassPathProvider
.@CheckForNull public abstract ClassPath[] getProjectClassPaths(@NonNull String type)
ClassPath
s of given type owned by the project.@CheckForNull public abstract String[] getPropertyName(@NonNull SourceGroup sg, @NonNull String type)
SourceGroup
.sg
- the SourceGroup
to return the properties fortype
- the ClassPath
typeSourceGroup
is unknown.public final void addClassPathsChangeListener(@NonNull AbstractClassPathProvider.ClassPathsChangeListener listener)
AbstractClassPathProvider.ClassPathsChangeListener
.
The AbstractClassPathProvider.ClassPathsChangeListener
is notified when a set of project ClassPath
s is changed.listener
- the listener to add.public final void removeClassPathsChangeListener(@NonNull AbstractClassPathProvider.ClassPathsChangeListener listener)
AbstractClassPathProvider.ClassPathsChangeListener
.listener
- the listener to remove.protected final void fireClassPathsChange(@NonNull Collection<? extends String> changedClassPathTypes)
ClassPath
s change.changedClassPathTypes
- the changed ClassPath
types