|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.java.provider.LocatorWrapper
public class LocatorWrapper
The LocatorWrapper
is a JavaClassLocator implementation
that simply wraps a BaseFileProvider instance.
Constructor Summary | |
---|---|
LocatorWrapper(BaseFileProvider provider)
Construct a JavaClassLocator wrapper for the given provider. |
Method Summary | |
---|---|
void |
buildIndex()
Instructs this class locator to start building its index for locating files. |
java.util.Collection |
getAllClasses()
Fetch all of the top-level classes that are known by this locator. |
java.util.Collection |
getAllClasses(ClassNameFilter filter)
Fetch all of the top-level classes that are known by this locator that satisfies the given filter. |
java.util.Collection |
getAllPackages()
Fetch all of the full packges that are known by this locator. |
java.util.Collection |
getAllPackages(PackageNameFilter filter)
Fetch all of the packages that are known by this locator that satisfies the given filter. |
java.util.Collection |
getClassesByName(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 |
getClassesByPrefix(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 |
getClassesInPackage(java.lang.String packagePrefix)
Fetch the top-level classes within the given package prefix. |
java.net.URL |
getClassURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name. |
java.util.Collection |
getPackages(java.lang.String packagePrefix)
Fetch 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.util.Collection<java.net.URL> |
getResourceURLs(java.lang.String resourceName)
Fetch all the URL's 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 |
getURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocatorWrapper(BaseFileProvider provider)
Method Detail |
---|
public void buildIndex()
buildIndex
in interface JavaClassLocator
public java.util.Collection getPackages(java.lang.String packagePrefix)
getPackages
in interface JavaClassLocator
packagePrefix
- the package prefix, i.e., "java.io"
public java.util.Collection getClassesInPackage(java.lang.String packagePrefix)
getClassesInPackage
in interface JavaClassLocator
packagePrefix
- the package prefix, i.e., "java.io"
public java.util.Collection getAllClasses()
getAllClasses
in interface JavaClassLocator
public java.util.Collection getAllClasses(ClassNameFilter filter)
getAllClasses
in interface JavaClassLocator
filter
- the class name filter to use for the search
public java.util.Collection getAllPackages()
getAllPackages
in interface JavaClassLocator
public java.util.Collection getAllPackages(PackageNameFilter filter)
getAllPackages
in interface JavaClassLocator
filter
- the package name filter to use for the search
public java.util.Collection getClassesByName(java.lang.String name, boolean matchCase)
getClassesByName
in interface JavaClassLocator
name
- the unqualified name of the top-level class to locatematchCase
- whether to use case-sensitivity for matching the
class name
public java.util.Collection getClassesByPrefix(java.lang.String prefix, boolean matchCase)
getClassesByPrefix
in interface JavaClassLocator
prefix
- the starting prefix of the class name to locatematchCase
- whether to use case-sensitivity for matching the
class name
public java.net.URL getURL(java.lang.String fqClassName)
getURL
in interface JavaClassLocator
fqClassName
- the fully-qualified class name in dotted notation,
i.e., java.util.List
public java.net.URL getSourceURL(java.lang.String fqClassName)
getSourceURL
in interface JavaClassLocator
fqClassName
- the fully-qualified class name in dotted notationpublic java.net.URL getClassURL(java.lang.String fqClassName)
getClassURL
in interface JavaClassLocator
getClassURL
in interface JavaResourceLocator
fqClassName
- the fully-qualified class name in dotted notation
public java.net.URL getResourceURL(java.lang.String resourceName)
getResourceURL
in interface JavaResourceLocator
resourceName
- the full name of the resource including any file
extensions
public java.util.Collection<java.net.URL> getResourceURLs(java.lang.String resourceName)
JavaResourceLocator
getResourceURLs
in interface JavaResourceLocator
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.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |