| Modifier and Type | Field and Description |
|---|---|
| private Vector | classDependencies
the list of java classes the root classes depend upon |
| private Path | classPath
The classpath containing dirs and jars of class files |
| private boolean | closure
true if indirect dependencies should be gathered |
| private boolean | determined
true if dependencies have been determined |
| private Vector | fileDependencies
the list of File objects that the root classes depend upon |
| public static final int | MAX_LOOPS
Maximum number of loops for looking for indirect dependencies. |
| private final Vector | rootClasses
The list of root classes |
| private Path | sourcePath
The source path for the source files |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addClassPath(Path
the Path instance specifying the classpath elements classPath)Implements org. |
| public void | addRootClass(String
the name of the class in Java dot notation. className)Implements org. |
| public void | addSourcePath(Path
The Path instance specifying the source path
elements. sourcePath)Implements org. |
| public void | config(String
the name of the aspect being configured name, Object the configuration info. info)Implements org. |
| protected abstract void | determineDependencies(Vector<File>
a vector into which Files upon which the root classes
depend should be placed. files, Vector<String> a vector of Strings into which the names of classes
upon which the root classes depend should be placed. classes)Determine the dependencies of the current set of root classes |
| public File | Returns: the file instance, zip or class, containing the class or null if the class could not be found.the name of the required class classname)Implements org. |
| public Enumeration | Returns: an enumeration of Strings, each being the name of a Java class in dot notation.Implements org. |
| public Enumeration | Returns: an enumeration of File instances.Implements org. |
| private File | Returns: the file instance, zip or class, containing the class or null if the class could not be found.the name of the required resource. resourceLocation, String[] the paths which will be searched for the resource. paths)Get the file that contains the resource |
| protected Enumeration | Returns: an enumeration of Strings, each of which is a class name for a root class.Get an enumeration of the root classes |
| public File | Returns: the file instance, zip or java, containing the source or null if the source for the class could not be found.the name of the required class classname)Implements org. |
| protected boolean | Returns: true if indirect relationships should be followed.Indicate if the analyzer is required to follow indirect class relationships. |
| public void | reset()
Implements org. |
| public void | setClosure(boolean
true if dependencies should be traversed to determine
indirect dependencies. closure)Implements org. |
| protected abstract boolean | Returns: true if file dependencies are supported.Indicate if the particular subclass supports file dependency information. |
| classDependencies | back to summary |
|---|---|
| private Vector<String> classDependencies the list of java classes the root classes depend upon | |
| classPath | back to summary |
|---|---|
| private Path classPath The classpath containing dirs and jars of class files | |
| closure | back to summary |
|---|---|
| private boolean closure true if indirect dependencies should be gathered | |
| determined | back to summary |
|---|---|
| private boolean determined true if dependencies have been determined | |
| fileDependencies | back to summary |
|---|---|
| private Vector<File> fileDependencies the list of File objects that the root classes depend upon | |
| MAX_LOOPS | back to summary |
|---|---|
| public static final int MAX_LOOPS Maximum number of loops for looking for indirect dependencies. | |
| rootClasses | back to summary |
|---|---|
| private final Vector<String> rootClasses The list of root classes | |
| sourcePath | back to summary |
|---|---|
| private Path sourcePath The source path for the source files | |
| AbstractAnalyzer | back to summary |
|---|---|
| protected AbstractAnalyzer() Setup the analyzer | |
| addClassPath | back to summary |
|---|---|
| public void addClassPath(Path classPath) Implements org. Add a classpath to the classpath being used by the analyzer. The classpath contains the binary classfiles for the classes being analyzed The elements may either be the directories or jar files.Not all analyzers will use this information. | |
| addRootClass | back to summary |
|---|---|
| public void addRootClass(String className) Implements org. Add a root class. The root classes are used to drive the determination of dependency information. The analyzer will start at the root classes and add dependencies from there. | |
| addSourcePath | back to summary |
|---|---|
| public void addSourcePath(Path sourcePath) Implements org. Add a source path to the source path used by this analyzer. The elements in the given path contain the source files for the classes being analyzed. Not all analyzers will use this information. | |
| config | back to summary |
|---|---|
| public void config(String name, Object info) Implements org. Configure an aspect of the analyzer. The set of aspects that are supported is specific to each analyzer instance. | |
| determineDependencies | back to summary |
|---|---|
| protected abstract void determineDependencies(Vector<File> files, Vector<String> classes) Determine the dependencies of the current set of root classes | |
| getClassContainer | back to summary |
|---|---|
| public File getClassContainer(String classname) throws IOException Implements org. Get the file that contains the class definition
| |
| getClassDependencies | back to summary |
|---|---|
| public Enumeration Implements org. Get the list of classes upon which root classes depend. This is a list of Java classnames in dot notation.
| |
| getFileDependencies | back to summary |
|---|---|
| public Enumeration Implements org. Get the list of files in the file system upon which the root classes depend. The files will be either the classfiles or jar files upon which the root classes depend.
| |
| getResourceContainer | back to summary |
|---|---|
| private File getResourceContainer(String resourceLocation, String[] paths) throws IOException Get the file that contains the resource
| |
| getRootClasses | back to summary |
|---|---|
| protected Enumeration Get an enumeration of the root classes
| |
| getSourceContainer | back to summary |
|---|---|
| public File getSourceContainer(String classname) throws IOException Implements org. Get the file that contains the class source.
| |
| isClosureRequired | back to summary |
|---|---|
| protected boolean isClosureRequired() Indicate if the analyzer is required to follow indirect class relationships.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Reset the dependency list. This will reset the determined dependencies and the also list of root classes.
| |
| setClosure | back to summary |
|---|---|
| public void setClosure(boolean closure) Implements org. Set the closure flag. If this flag is true the analyzer will traverse all class relationships until it has collected the entire set of direct and indirect dependencies
| |
| supportsFileDependencies | back to summary |
|---|---|
| protected abstract boolean supportsFileDependencies() Indicate if the particular subclass supports file dependency information.
| |