|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdeveloper.java.locator.BaseClassLocator
oracle.jdeveloper.java.locator.URLClassLocator
oracle.jdeveloper.java.locator.DirURLClassLocator
public class DirURLClassLocator
The DirURLClassLocator is an implementation of the
URL-based ClassLocator which deals with root URLs that are not
Jar URLs.
| Field Summary |
|---|
| Fields inherited from class oracle.jdeveloper.java.locator.URLClassLocator |
|---|
_fileType, _rootURL, CLASS_SUFFIXES, CLASS_TYPE, SOURCE_SUFFIXES, SOURCE_TYPE |
| Fields inherited from class oracle.jdeveloper.java.locator.BaseClassLocator |
|---|
EMPTY_COLLECTION, EMPTY_LOCATOR, EMPTY_STRING_ARRAY |
| Constructor Summary | |
|---|---|
protected |
DirURLClassLocator(java.net.URL dirURL,
int classType)
Constructs a new DirURLClassLocator. |
| Method Summary | |
|---|---|
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 |
getAllClasses(java.util.Collection<java.lang.String> out,
ClassNameFilter filter)
Fetch all of the top-level classes that are known by this locator. |
protected void |
getAllClassesInterruptibly(java.util.Collection<java.lang.String> out,
ClassNameFilter filter)
Get all of the top-level classes that are known by this locator. |
protected void |
getAllPackages(java.util.Collection<java.lang.String> out,
PackageNameFilter filter)
Fetch all of the full packges that are known by this locator. |
protected 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. |
protected 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. |
java.net.URL |
getResourceURL(java.lang.String resourceName)
Fetch the URL for the Java resource file given the resource name. |
java.net.URL |
getURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name. |
| Methods inherited from class oracle.jdeveloper.java.locator.URLClassLocator |
|---|
getClassURL, getFileType, getRootURL, getSourceURL, isClassTypeLocator, isMatchingFileType, isMatchingFileType, isSourceTypeLocator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DirURLClassLocator(java.net.URL dirURL,
int classType)
DirURLClassLocator.
dirURL - the root URL we are working withclassType - the file type, either CLASS_TYPE or SOURCE_TYPE| Method Detail |
|---|
public void buildIndex()
public void buildIndexInterruptibly()
throws java.lang.InterruptedException
JavaClassLocator2
buildIndexInterruptibly in interface JavaClassLocator2buildIndexInterruptibly in class BaseClassLocatorjava.lang.InterruptedException - if the build is interrupted
protected 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
protected 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
protected void getAllClasses(java.util.Collection<java.lang.String> out,
ClassNameFilter filter)
getAllClasses in class BaseClassLocatorfilter - the class name filter to useout - the collection to add the fully-qualified class names
protected void getAllClassesInterruptibly(java.util.Collection<java.lang.String> out,
ClassNameFilter filter)
throws java.lang.InterruptedException
BaseClassLocator
getAllClassesInterruptibly in class BaseClassLocatorout - the collection where fully qualified class names are addedfilter - the class name filter to use
java.lang.InterruptedException - if the operation is interrupted
protected void getAllPackages(java.util.Collection<java.lang.String> out,
PackageNameFilter filter)
getAllPackages in class BaseClassLocatorout - the collection to add the full package namesfilter - the pckage name filter to usepublic java.net.URL getURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation,
i.e., java.util.Map.Entry.
public java.net.URL getResourceURL(java.lang.String resourceName)
resourceName - the full name of the resource including any file
extensions
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||