public interface JavaClassLocator2 extends JavaClassLocator
JavaClassLocator
interface to provide additional
functionality. In particular, provides support for interruption.Modifier and Type | Method and Description |
---|---|
void |
buildIndexInterruptibly()
Instructs this class locator to start building its index for locating
files.
|
java.util.Collection<java.lang.String> |
getAllClassesInterruptibly()
Fetch all of the top-level classes that are known by this locator.
|
java.util.Collection<java.lang.String> |
getAllClassesInterruptibly(ClassNameFilter filter)
Fetch all of the top-level classes that are known by this locator that
satisfies the given filter.
|
java.util.Collection<java.lang.String> |
getAllPackagesInterruptibly()
Fetch all of the full packges that are known by this locator.
|
java.util.Collection<java.lang.String> |
getAllPackagesInterruptibly(PackageNameFilter filter)
Fetch all of the packages that are known by this locator that satisfies
the given filter.
|
java.util.Collection<java.lang.String> |
getClassesByNameInterruptibly(java.lang.String name,
boolean matchCase)
Fetch all of the top-level classes that are known by this locator with
the given class name.
|
java.util.Collection<java.lang.String> |
getClassesByPrefixInterruptibly(java.lang.String prefix,
boolean matchCase)
Fetch all of the top-level classes that are known by this locator whose
given class name starts with the specified prefix.
|
java.util.Collection<java.lang.String> |
getClassesInPackageInterruptibly(java.lang.String packagePrefix)
Fetch the top-level classes within the given package prefix.
|
java.net.URL |
getClassURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class
name.
|
java.util.Collection<java.lang.String> |
getPackagesInterruptibly(java.lang.String packagePrefix)
Fetch the list of subpackages within the given package.
|
java.net.URL |
getSourceURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the SourceFile for the given fully-qualified Java
class name.
|
java.net.URL |
getURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class
name.
|
buildIndex, getAllClasses, getAllClasses, getAllPackages, getAllPackages, getClassesByName, getClassesByPrefix, getClassesInPackage, getClassURL, getPackages, getSourceURL, getURL
void buildIndexInterruptibly() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the build is interruptedjava.util.Collection<java.lang.String> getPackagesInterruptibly(java.lang.String packagePrefix) throws java.lang.InterruptedException
packagePrefix
- the package prefix, i.e., "java.io"java.lang.InterruptedException
- if the operation is interruptedjava.util.Collection<java.lang.String> getClassesInPackageInterruptibly(java.lang.String packagePrefix) throws java.lang.InterruptedException
packagePrefix
- the package prefix, i.e., "java.io"java.lang.InterruptedException
- if the operation is interruptedjava.util.Collection<java.lang.String> getAllClassesInterruptibly() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the operation is interruptedjava.util.Collection<java.lang.String> getAllClassesInterruptibly(ClassNameFilter filter) throws java.lang.InterruptedException
filter
- the class name filter to use for the searchjava.lang.InterruptedException
- if the operation is interruptedjava.util.Collection<java.lang.String> getAllPackagesInterruptibly() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the operation is interruptedjava.util.Collection<java.lang.String> getAllPackagesInterruptibly(PackageNameFilter filter) throws java.lang.InterruptedException
filter
- the package name filter to use for the searchjava.lang.InterruptedException
- if the operation is interruptedjava.util.Collection<java.lang.String> getClassesByNameInterruptibly(java.lang.String name, boolean matchCase) throws java.lang.InterruptedException
name
- the unqualified name of the top-level class to locatematchCase
- whether to use case-sensitivity for matching the
class namejava.lang.InterruptedException
- if the operation is interruptedjava.util.Collection<java.lang.String> getClassesByPrefixInterruptibly(java.lang.String prefix, boolean matchCase) throws java.lang.InterruptedException
prefix
- the starting prefix of the class name to locatematchCase
- whether to use case-sensitivity for matching the
class namejava.lang.InterruptedException
- if the operation is interruptedjava.net.URL getURLInterruptibly(java.lang.String fqClassName) throws java.lang.InterruptedException
fqClassName
- the fully-qualified class name in dotted notation,
i.e., java.util.Listjava.lang.InterruptedException
- if the operation is interruptedjava.net.URL getSourceURLInterruptibly(java.lang.String fqClassName) throws java.lang.InterruptedException
fqClassName
- the fully-qualified class name in dotted notationjava.lang.InterruptedException
- if the operation is interruptedjava.net.URL getClassURLInterruptibly(java.lang.String fqClassName) throws java.lang.InterruptedException
fqClassName
- the fully-qualified class name in dotted notationjava.lang.InterruptedException
- if the operation is interrupted