|
DependencyAnalyzer (Apache Ant API)
org.apache.tools.ant.util.depend
|
Method Summary | |
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 |
getClassDependencies()
Get the list of classes upon which root classes depend. |
java.util.Enumeration |
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. |
Method Detail |
public void addSourcePath(Path sourcePath)
sourcePath
- The Path instance specifying the source path
elements.public void addClassPath(Path classpath)
classpath
- the Path instance specifying the classpath elementspublic void addRootClass(java.lang.String classname)
classname
- the name of the class in Java dot notation.public java.util.Enumeration getFileDependencies()
public java.util.Enumeration getClassDependencies()
public void reset()
public void config(java.lang.String name, java.lang.Object info)
name
- the name of the aspect being configuredinfo
- the configuration information.public void setClosure(boolean closure)
closure
- true if dependencies should be traversed to determine
indirect dependencies.public java.io.File getClassContainer(java.lang.String classname) throws java.io.IOException
classname
- the name of the required class
java.io.IOException
- if the files in the classpath cannot be read.public java.io.File getSourceContainer(java.lang.String classname) throws java.io.IOException
classname
- the name of the required class
java.io.IOException
- if the files in the sourcepath cannot be read.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |