public interface DependencyAnalyzer
Modifier and Type | Method and Description |
---|---|
void |
addClassPath(Path classpath)
Add a classpath to the classpath being used by the analyzer.
|
void |
addRootClass(java.lang.String classname)
Add a root class.
|
void |
addSourcePath(Path sourcePath)
Add a source path to the source path used by this analyzer.
|
void |
config(java.lang.String name,
java.lang.Object info)
Configure an aspect of the analyzer.
|
java.io.File |
getClassContainer(java.lang.String classname)
Get the file that contains the class definition
|
java.util.Enumeration<java.lang.String> |
getClassDependencies()
Get the list of classes upon which root classes depend.
|
java.util.Enumeration<java.io.File> |
getFileDependencies()
Get the list of files in the file system upon which the root classes
depend.
|
java.io.File |
getSourceContainer(java.lang.String classname)
Get the file that contains the class source.
|
void |
reset()
Reset the dependency list.
|
void |
setClosure(boolean closure)
Set the closure flag.
|
void addSourcePath(Path sourcePath)
sourcePath
- The Path instance specifying the source path
elements.void addClassPath(Path classpath)
classpath
- the Path instance specifying the classpath elementsvoid addRootClass(java.lang.String classname)
classname
- the name of the class in Java dot notation.java.util.Enumeration<java.io.File> getFileDependencies()
java.util.Enumeration<java.lang.String> getClassDependencies()
void reset()
void config(java.lang.String name, java.lang.Object info)
name
- the name of the aspect being configuredinfo
- the configuration information.void setClosure(boolean closure)
closure
- true if dependencies should be traversed to determine
indirect dependencies.java.io.File getClassContainer(java.lang.String classname) throws java.io.IOException
classname
- the name of the required classjava.io.IOException
- if the files in the classpath cannot be read.java.io.File getSourceContainer(java.lang.String classname) throws java.io.IOException
classname
- the name of the required classjava.io.IOException
- if the files in the sourcepath cannot be read.