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
voidaddDefaultExcludes()
String[]getExcludedDirectories()
String[]getExcludedFiles()
String[]getIncludedDirectories()
intgetIncludedDirsCount()
String[]getIncludedFiles()
Get the names of the class files on which baseClass depends.
intgetIncludedFilesCount()
String[]getNotIncludedDirectories()
String[]getNotIncludedFiles()
voidscan()
Scans the base directory for files on which baseClass depends.
voidsetCaseSensitive(boolean isCaseSensitive)
voidsetExcludes(String[] excludes)
voidsetIncludes(String[] includes)
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

addDefaultExcludes

public void addDefaultExcludes()

See Also: DirectoryScanner

getExcludedDirectories

public String[] getExcludedDirectories()

See Also: DirectoryScanner

getExcludedFiles

public String[] getExcludedFiles()

See Also: DirectoryScanner

getIncludedDirectories

public String[] getIncludedDirectories()

See Also: DirectoryScanner

getIncludedDirsCount

public int getIncludedDirsCount()

See Also: DirectoryScanner

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()

See Also: DirectoryScanner

getNotIncludedDirectories

public String[] getNotIncludedDirectories()

See Also: DirectoryScanner

getNotIncludedFiles

public String[] getNotIncludedFiles()

See Also: DirectoryScanner

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)

See Also: DirectoryScanner

setExcludes

public void setExcludes(String[] excludes)

See Also: DirectoryScanner

setIncludes

public void setIncludes(String[] includes)

See Also: DirectoryScanner

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.

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.