Class AntAnalyzer
java.lang.Object
org.apache.tools.ant.util.depend.AbstractAnalyzer
org.apache.tools.ant.taskdefs.optional.depend.AntAnalyzer
- All Implemented Interfaces:
DependencyAnalyzer
An analyzer which uses the depend task's bytecode classes to analyze
dependencies
-
Field Summary
Fields inherited from class AbstractAnalyzer
MAX_LOOPSModifier and TypeFieldDescriptionstatic final intMaximum number of loops for looking for indirect dependencies. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddetermineDependencies(Vector<File> files, Vector<String> classes) Determine the dependencies of the configured root classes.protected booleanIndicate if this analyzer can determine dependent files.Methods inherited from class AbstractAnalyzer
addClassPath, addRootClass, addSourcePath, config, getClassContainer, getClassDependencies, getFileDependencies, getRootClasses, getSourceContainer, isClosureRequired, reset, setClosureModifier and TypeMethodDescriptionvoidaddClassPath(Path classPath) Add a classpath to the classpath being used by the analyzer.voidaddRootClass(String className) Add a root class.voidaddSourcePath(Path sourcePath) Add a source path to the source path used by this analyzer.voidConfigure an aspect of the analyzer.getClassContainer(String classname) Get the file that contains the class definitionGet the list of classes upon which root classes depend.Get the list of files in the file system upon which the root classes depend.protected Enumeration<String> Get an enumeration of the root classesgetSourceContainer(String classname) Get the file that contains the class source.protected booleanIndicate if the analyzer is required to follow indirect class relationships.voidreset()Reset the dependency list.voidsetClosure(boolean closure) Set the closure flag.
-
Constructor Details
-
AntAnalyzer
public AntAnalyzer()
-
-
Method Details
-
determineDependencies
Determine the dependencies of the configured root classes.- Specified by:
determineDependenciesin classAbstractAnalyzer- Parameters:
files- a vector to be populated with the files which contain the dependency classesclasses- a vector to be populated with the names of the dependency classes.
-
supportsFileDependencies
protected boolean supportsFileDependencies()Indicate if this analyzer can determine dependent files.- Specified by:
supportsFileDependenciesin classAbstractAnalyzer- Returns:
- true if the analyzer provides dependency file information.
-