| 
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.locator.BaseClassLocator
oracle.jdeveloper.java.locator.ProjectClassLocator
public class ProjectClassLocator
The ProjectClassLocator is an implementation of the
 JavaClassLocator to locate classes for a Project instance.
| Field Summary | |
|---|---|
protected static boolean | 
ALL_LIBRARIES
Constant indicating all libraries  | 
protected static boolean | 
EXPORTED_LIBRARIES
Constant indicating we want only exported libraries.  | 
| Fields inherited from class oracle.jdeveloper.java.locator.BaseClassLocator | 
|---|
EMPTY_COLLECTION, EMPTY_LOCATOR, EMPTY_STRING_ARRAY | 
| Constructor Summary | |
|---|---|
protected  | 
ProjectClassLocator(Project project)
Constructs a new ProjectClassLocator for the given
 library. | 
| Method Summary | |
|---|---|
 void | 
buildIndex()
Instructs this class locator to start building its index for locating files.  | 
protected  URLPath | 
getAddedClassPathFor(Project project)
Utility routine to fetch the added classpath for the given project.  | 
protected  void | 
getAllClasses(java.util.Collection out,
              ClassNameFilter filter)
Fetch all of the top-level classes that are known by this locator.  | 
protected  void | 
getAllPackages(java.util.Collection 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 out)
Fetch the list of top-level classes within the given package, adding them to the out collection provided.  | 
 java.net.URL | 
getClassURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name.  | 
static java.util.Collection | 
getDependentsFor(Project project)
Utility routine to fetch the dependents for the given project.  | 
protected  Library | 
getJDKFor(Project project)
Utility routine to fetch the JDK for the given project.  | 
protected  Library[] | 
getLibrariesFor(Project project,
                boolean exportsOnly)
Utility routine to fetch the libraries for the given project.  | 
protected  URLPath | 
getModuleConfigClassPathFor(Project project)
Utility routine to fetch the module config classpath for the given project.  | 
 java.net.URL | 
getNonProjectSourceURL(java.lang.String fqClassName)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
protected  java.net.URL | 
getOutputURLFor(Project project)
Utility routine to fetch the output URL for the given project.  | 
protected  void | 
getPackages(java.lang.String packagePrefix,
            java.util.Collection out)
Fetch the list of subpackages within the given package, adding them to the out collection provided.  | 
 java.net.URL | 
getProjectSourceURL(java.lang.String fqClassName,
                    boolean includeDependencies)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getResourceURL(java.lang.String resourceName)
Fetch the URL for the Java resource file given the resource name.  | 
static URLPath | 
getSourcePathFor(Project project)
Utility routine to fetch the source path for the given project.  | 
 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.  | 
protected  void | 
processDependenciesRecurse(Project project,
                           java.util.List traversedList,
                           java.util.List libraryList,
                           URLPath sourcePath,
                           URLPath classPath,
                           boolean exportsOnly)
Utility routine which recursively processes a project's dependencies.  | 
| Methods inherited from class oracle.jdeveloper.java.locator.BaseClassLocator | 
|---|
addToCollection, buildFQName, ensureValid, getAllClasses, getAllClasses, getAllPackages, getAllPackages, getClassesByName, getClassesByPrefix, getClassesInPackage, getNameCascades, getNameParts, getPackages, getResourceURLs, getStringArray | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final boolean EXPORTED_LIBRARIES
protected static final boolean ALL_LIBRARIES
| Constructor Detail | 
|---|
protected ProjectClassLocator(Project project)
ProjectClassLocator for the given
 library.
project - the project to locate classes for| Method Detail | 
|---|
protected void processDependenciesRecurse(Project project,
                                          java.util.List traversedList,
                                          java.util.List libraryList,
                                          URLPath sourcePath,
                                          URLPath classPath,
                                          boolean exportsOnly)
project - the project to process the paths and dependencies oftraversedList - the list of projects that have already 
        been traversedlibraryList - the list of libraries that are part of the project
        or any of its dependentssourcePath - the sourcepath of the project or any of its dependentsclassPath - the classpath of the project or any of its dependentsexportsOnly - whether to include only exported libraries
        (vs. all libraries)public static java.util.Collection getDependentsFor(Project project)
project - the projects to fetch the dependents for
protected URLPath getAddedClassPathFor(Project project)
project - the project to get the added classpath for
protected URLPath getModuleConfigClassPathFor(Project project)
project - the project to get the module config classpath for
protected java.net.URL getOutputURLFor(Project project)
project - the project to fetch the output url for
public static URLPath getSourcePathFor(Project project)
project - the project to fetch the source path for
protected Library getJDKFor(Project project)
project - the project to fetch the JDK for
protected Library[] getLibrariesFor(Project project,
                                    boolean exportsOnly)
project - the project to fetch the libraries forexportsOnly - whether to include only exports, vs. all libraries
public void buildIndex()
protected void getPackages(java.lang.String packagePrefix,
                           java.util.Collection 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 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 out,
                             ClassNameFilter filter)
getAllClasses in class BaseClassLocatorout - the collection to add the fully-qualified class namesfilter - the class name filter to use
protected void getAllPackages(java.util.Collection 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.List
public java.net.URL getProjectSourceURL(java.lang.String fqClassName,
                                        boolean includeDependencies)
fqClassName - the fully-qualified class name in dotted notationincludeDependencies - include the projects depended on by this
        current projectpublic java.net.URL getNonProjectSourceURL(java.lang.String fqClassName)
public java.net.URL getSourceURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notationpublic java.net.URL getClassURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation
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.1.0) E13403-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||