public class DebugClassLocator extends BaseClassLocator
DebugClassLocator is a decorator of the JavaClassLocator API to provide debug/verbose output for tracing the calls to a JavaClassLocator.EMPTY_COLLECTION, EMPTY_LOCATOR, EMPTY_STRING_ARRAY| Modifier | Constructor and Description | 
|---|---|
protected | 
DebugClassLocator(BaseClassLocator locator)
Constructs a new  
DebugClassLocator for the given class locator. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
buildIndex()
Instructs this class locator to start building its index for locating files. 
 | 
void | 
buildIndexInterruptibly()
Instructs this class locator to start building its index for locating files. 
 | 
protected void | 
dumpCollection(java.util.Collection collection)
Utility routine to dump the contents of the given collection. 
 | 
void | 
getAllClasses(java.util.Collection<java.lang.String> out, ClassNameFilter filter)
Fetch all of the top-level classes that are known by this locator. 
 | 
void | 
getAllClassesInterruptibly(java.util.Collection<java.lang.String> out, ClassNameFilter filter)
Get all of the top-level classes that are known by this locator. 
 | 
void | 
getAllPackages(java.util.Collection<java.lang.String> out, PackageNameFilter filter)
Fetch all of the full packges that are known by this locator. 
 | 
void | 
getAllPackagesInterruptibly(java.util.Collection<java.lang.String> out, PackageNameFilter filter)
Get all of the full packges that are known by this locator. 
 | 
void | 
getClassesInPackage(java.lang.String packagePrefix, java.util.Collection<java.lang.String> out)
Fetch the list of top-level classes within the given package, adding them to the out collection provided. 
 | 
void | 
getClassesInPackageInterruptibly(java.lang.String packagePrefix, java.util.Collection<java.lang.String> out)
Get the list of top-level classes within the package. 
 | 
java.net.URL | 
getClassURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name. 
 | 
java.net.URL | 
getClassURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name. 
 | 
void | 
getPackages(java.lang.String packagePrefix, java.util.Collection<java.lang.String> out)
Fetch the list of subpackages within the given package, adding them to the out collection provided. 
 | 
void | 
getPackagesInterruptibly(java.lang.String packagePrefix, java.util.Collection<java.lang.String> out)
Get the list of subpackages within the given package. 
 | 
java.net.URL | 
getResourceURL(java.lang.String resourceName)
Fetch the URL for the Java resource file given the resource name. 
 | 
java.net.URL | 
getSourceURL(java.lang.String fqClassName)
Fetch the URL for the SourceFile for the given fully-qualified Java class name. 
 | 
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 | 
getURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile 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. 
 | 
addToCollection, buildFQName, checkInterrupt, ensureValid, getAllClasses, getAllClasses, getAllClassesInterruptibly, getAllClassesInterruptibly, getAllPackages, getAllPackages, getAllPackagesInterruptibly, getAllPackagesInterruptibly, getChildLocators, getClassesByName, getClassesByNameInterruptibly, getClassesByPrefix, getClassesByPrefixInterruptibly, getClassesDirectly, getClassesInPackage, getClassesInPackageInterruptibly, getClasspathTreeNode, getNameCascades, getNameParts, getPackages, getPackagesInterruptibly, getResourcesDirectly, getResourceURLs, getSourceLocator, getStringArray, visitClasspathTree, visitClasspathTree, visitJavaTypes, visitJavaTypes, visitResources, visitResourcesprotected DebugClassLocator(BaseClassLocator locator)
DebugClassLocator for the given class locator.locator - the locator to wrappublic void buildIndex()
public void buildIndexInterruptibly()
                             throws java.lang.InterruptedException
JavaClassLocator2buildIndexInterruptibly in interface JavaClassLocator2buildIndexInterruptibly in class BaseClassLocatorjava.lang.InterruptedException - if the build is interruptedprotected void dumpCollection(java.util.Collection collection)
collection - the collection to dump
public void getPackages(java.lang.String packagePrefix,
               java.util.Collection<java.lang.String> out)
getPackages in class BaseClassLocatorpackagePrefix - the package prefix, i.e., "java.io"out - the collection to add the packages
public void getPackagesInterruptibly(java.lang.String packagePrefix,
                            java.util.Collection<java.lang.String> out)
                              throws java.lang.InterruptedException
BaseClassLocatorgetPackagesInterruptibly in class BaseClassLocatorpackagePrefix - the package prefixout - the collection where packages are addedjava.lang.InterruptedException - if the operation is interrupted
public void getClassesInPackage(java.lang.String packagePrefix,
                       java.util.Collection<java.lang.String> out)
getClassesInPackage in class BaseClassLocatorpackagePrefix - the package prefix, i.e., "java.io"out - the collection to add the class names
public void getClassesInPackageInterruptibly(java.lang.String packagePrefix,
                                    java.util.Collection<java.lang.String> out)
                                      throws java.lang.InterruptedException
BaseClassLocatorgetClassesInPackageInterruptibly in class BaseClassLocatorpackagePrefix - the package prefixout - the collection where packages are addedjava.lang.InterruptedException - if the operation is interrupted
public void getAllClasses(java.util.Collection<java.lang.String> out,
                 ClassNameFilter filter)
getAllClasses in class BaseClassLocatorout - the collection to add the fully-qualified class namesfilter - the class name filter to use
public void getAllClassesInterruptibly(java.util.Collection<java.lang.String> out,
                              ClassNameFilter filter)
                                throws java.lang.InterruptedException
BaseClassLocatorgetAllClassesInterruptibly in class BaseClassLocatorout - the collection where fully qualified class names are addedfilter - the class name filter to usejava.lang.InterruptedException - if the operation is interrupted
public void getAllPackages(java.util.Collection<java.lang.String> out,
                  PackageNameFilter filter)
getAllPackages in class BaseClassLocatorout - the collection to add the full package namesfilter - the package name filter to use
public void getAllPackagesInterruptibly(java.util.Collection<java.lang.String> out,
                               PackageNameFilter filter)
                                 throws java.lang.InterruptedException
BaseClassLocatorgetAllPackagesInterruptibly in class BaseClassLocatorout - the collection where package names are addedfilter - the package name filter to usejava.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation, i.e., java.util.List
public java.net.URL getURLInterruptibly(java.lang.String fqClassName)
                                 throws java.lang.InterruptedException
JavaClassLocator2getURLInterruptibly in interface JavaClassLocator2getURLInterruptibly in class BaseClassLocatorfqClassName - the fully-qualified class name in dotted notation, i.e., java.util.Listjava.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getSourceURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation
public java.net.URL getSourceURLInterruptibly(java.lang.String fqClassName)
                                       throws java.lang.InterruptedException
JavaClassLocator2getSourceURLInterruptibly in interface JavaClassLocator2getSourceURLInterruptibly in class BaseClassLocatorfqClassName - the fully-qualified class name in dotted notationjava.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getClassURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation
public java.net.URL getClassURLInterruptibly(java.lang.String fqClassName)
                                      throws java.lang.InterruptedException
JavaClassLocator2getClassURLInterruptibly in interface JavaClassLocator2getClassURLInterruptibly in class BaseClassLocatorfqClassName - the fully-qualified class name in dotted notationjava.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getResourceURL(java.lang.String resourceName)
resourceName - the full name of the resource including any file extensions