org.apache.tools.ant.types.optional.depend

Class DependScanner

public class DependScanner extends DirectoryScanner

DirectoryScanner for finding class dependencies.
Field Summary
static StringDEFAULT_ANALYZER_CLASS
The name of the analyzer to use by default.
Constructor Summary
DependScanner(DirectoryScanner parentScanner)
Create a DependScanner, using the given scanner to provide the basic set of files from which class files come.
Method Summary
voidaddBasedir(File baseDir)
voidaddDefaultExcludes()
String[]getExcludedDirectories()
{@inheritDoc }.
String[]getExcludedFiles()
{@inheritDoc }.
String[]getIncludedDirectories()
{@inheritDoc }.
intgetIncludedDirsCount()
{@inheritDoc }.
String[]getIncludedFiles()
Get the names of the class files on which baseClass depends.
intgetIncludedFilesCount()
{@inheritDoc }.
String[]getNotIncludedDirectories()
{@inheritDoc }.
String[]getNotIncludedFiles()
{@inheritDoc }.
voidscan()
Scans the base directory for files on which baseClass depends.
voidsetCaseSensitive(boolean isCaseSensitive)
{@inheritDoc }.
voidsetExcludes(String[] excludes)
{@inheritDoc }.
voidsetIncludes(String[] includes)
{@inheritDoc }.
voidsetRootClasses(Vector rootClasses)
Sets the root classes to be used to drive the scan.

Field Detail

DEFAULT_ANALYZER_CLASS

public static final String DEFAULT_ANALYZER_CLASS
The name of the analyzer to use by default.

Constructor Detail

DependScanner

public DependScanner(DirectoryScanner parentScanner)
Create a DependScanner, using the given scanner to provide the basic set of files from which class files come.

Parameters: parentScanner the DirectoryScanner which returns the files from which class files must come.

Method Detail

addBasedir

public void addBasedir(File baseDir)

addDefaultExcludes

public void addDefaultExcludes()

See Also: DirectoryScanner

getExcludedDirectories

public String[] getExcludedDirectories()
{@inheritDoc }.

getExcludedFiles

public String[] getExcludedFiles()
{@inheritDoc }.

getIncludedDirectories

public String[] getIncludedDirectories()
{@inheritDoc }.

getIncludedDirsCount

public int getIncludedDirsCount()
{@inheritDoc }.

getIncludedFiles

public String[] getIncludedFiles()
Get the names of the class files on which baseClass depends.

Returns: the names of the files.

getIncludedFilesCount

public int getIncludedFilesCount()
{@inheritDoc }.

getNotIncludedDirectories

public String[] getNotIncludedDirectories()
{@inheritDoc }.

getNotIncludedFiles

public String[] getNotIncludedFiles()
{@inheritDoc }.

scan

public void scan()
Scans the base directory for files on which baseClass depends.

Throws: IllegalStateException when basedir was set incorrectly.

setCaseSensitive

public void setCaseSensitive(boolean isCaseSensitive)
{@inheritDoc }.

setExcludes

public void setExcludes(String[] excludes)
{@inheritDoc }.

setIncludes

public void setIncludes(String[] includes)
{@inheritDoc }.

setRootClasses

public void setRootClasses(Vector rootClasses)
Sets the root classes to be used to drive the scan.

Parameters: rootClasses the rootClasses to be used for this scan.