|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.java.locator.BaseClassLocator oracle.jdeveloper.java.locator.URLClassLocator oracle.jdeveloper.java.locator.JarURLClassLocator
public class JarURLClassLocator
Locates classes in JAR files.
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 |
JarURLClassLocator(java.net.URL jarURL,
int classType)
Constructs a new JarURLClassLocator . |
Method Summary | |
---|---|
void |
buildIndex()
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 |
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. |
static long |
getLastBuiltTime()
|
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 JarURLClassLocator(java.net.URL jarURL, int classType)
JarURLClassLocator
.
jarURL
- the root URL we are working withclassType
- the file type, either CLASS_TYPE or SOURCE_TYPEMethod Detail |
---|
public static long getLastBuiltTime()
public void buildIndex()
protected void getPackages(java.lang.String packagePrefix, java.util.Collection<java.lang.String> out)
getPackages
in class BaseClassLocator
packagePrefix
- the package prefix, i.e., "java.io"out
- the collection to add the packagesprotected void getClassesInPackage(java.lang.String packagePrefix, java.util.Collection<java.lang.String> out)
getClassesInPackage
in class BaseClassLocator
packagePrefix
- the package prefix, i.e., "java.io"out
- the collection to add the class namesprotected void getAllClasses(java.util.Collection<java.lang.String> out, ClassNameFilter filter)
getAllClasses
in class BaseClassLocator
out
- the collection to add the fully-qualified class namesfilter
- the class name filter to useprotected void getAllPackages(java.util.Collection<java.lang.String> out, PackageNameFilter filter)
getAllPackages
in class BaseClassLocator
out
- 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.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |