| Modifier and Type | Method and Description |
|---|---|
| public void | addClassPath(Path
the Path instance specifying the classpath elements classpath)Add a classpath to the classpath being used by the analyzer. |
| public void | |
| public void | addSourcePath(Path
The Path instance specifying the source path
elements. sourcePath)Add a source path to the source path used by this analyzer. |
| public void | |
| 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)Get the file that contains the class definition |
| public Enumeration | Returns: an enumeration of Strings, each being the name of a Java class in dot notation.Get the list of classes upon which root classes depend. |
| public Enumeration | Returns: an enumeration of File instances.Get the list of files in the file system upon which the root classes depend. |
| 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)Get the file that contains the class source. |
| public void | |
| public void | setClosure(boolean
true if dependencies should be traversed to determine
indirect dependencies. closure)Set the closure flag. |
| addClassPath | back to summary |
|---|---|
| public void addClassPath(Path classpath) 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) 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) 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) Configure an aspect of the analyzer. The set of aspects that are supported is specific to each analyzer instance. | |
| getClassContainer | back to summary |
|---|---|
| public File getClassContainer(String classname) throws IOException Get the file that contains the class definition
| |
| getClassDependencies | back to summary |
|---|---|
| public Enumeration 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 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.
| |
| getSourceContainer | back to summary |
|---|---|
| public File getSourceContainer(String classname) throws IOException Get the file that contains the class source.
| |
| reset | back to summary |
|---|---|
| public void reset() 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) 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
| |