Modifier and Type | Field and Description |
---|---|
private Vector | |
public static final String | DEFAULT_ANALYZER_CLASS
The name of the analyzer to use by default. |
private Vector | included
The names of the classes to include in the fileset. |
private DirectoryScanner | parentScanner
The parent scanner which gives the basic set of files. |
private Vector | rootClasses
The root classes to drive the search for dependent classes. |
Access | Constructor and Description |
---|---|
public | DependScanner(DirectoryScanner
the DirectoryScanner which returns the files from
which class files must come. parentScanner)Create a DependScanner, using the given scanner to provide the basic set of files from which class files come. |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | addDefaultExcludes()
Overrides org. Implements org. |
public String[] | getExcludedDirectories()
Overrides org. Implements org. |
public String[] | getExcludedFiles()
Overrides org. Implements org. |
public String[] | getIncludedDirectories()
Overrides org. Implements org. |
public int | getIncludedDirsCount()
Overrides org. |
public String[] | Returns: the names of the files.Overrides org. Implements org. |
public synchronized int | getIncludedFilesCount()
Overrides org. |
public String[] | getNotIncludedDirectories()
Overrides org. Implements org. |
public String[] | getNotIncludedFiles()
Overrides org. Implements org. |
public synchronized void | scan()
Overrides org. Implements org. |
public void | setCaseSensitive(boolean
whether or not the file system should be
regarded as a case sensitive one. isCaseSensitive)Overrides org. Implements org. |
public void | setExcludes(String[]
A list of exclude patterns.
May be excludes)null , indicating that no files
should be excluded. If a non-null list is
given, all elements must be non-null .Overrides org. Implements org. |
public void | setIncludes(String[]
A list of include patterns.
May be includes)null , indicating that all files
should be included. If a non-null
list is given, all elements must be
non-null .Overrides org. Implements org. |
public synchronized void | setRootClasses(Vector<String>
the rootClasses to be used for this scan. rootClasses)Sets the root classes to be used to drive the scan. |
additionalBaseDirs | back to summary |
---|---|
private Vector<File> additionalBaseDirs |
DEFAULT_ANALYZER_CLASS | back to summary |
---|---|
public static final String DEFAULT_ANALYZER_CLASS The name of the analyzer to use by default. |
included | back to summary |
---|---|
private Vector<String> included The names of the classes to include in the fileset. |
parentScanner | back to summary |
---|---|
private DirectoryScanner parentScanner The parent scanner which gives the basic set of files. Only files which are in this set and which can be reached from a root class will end up being included in the result set. |
rootClasses | back to summary |
---|---|
private Vector<String> rootClasses The root classes to drive the search for dependent classes. |
DependScanner | back to summary |
---|---|
public DependScanner(DirectoryScanner parentScanner) Create a DependScanner, using the given scanner to provide the basic set of files from which class files come.
|
addBasedir | back to summary |
---|---|
public void addBasedir(File baseDir) |
addDefaultExcludes | back to summary |
---|---|
public void addDefaultExcludes() Overrides org. Implements org. Doc from org. Add default exclusions to the current exclusions set.
|
getExcludedDirectories | back to summary |
---|---|
public String[] getExcludedDirectories() Overrides org. Implements org. Doc from org. Return the names of the directories which matched at least one of the include patterns and at least one of the exclude patterns. The names are relative to the base directory. This involves performing a slow scan if one has not already been completed. |
getExcludedFiles | back to summary |
---|---|
public String[] getExcludedFiles() Overrides org. Implements org. Doc from org. Return the names of the files which matched at least one of the include patterns and at least one of the exclude patterns. The names are relative to the base directory. This involves performing a slow scan if one has not already been completed. |
getIncludedDirectories | back to summary |
---|---|
public String[] getIncludedDirectories() Overrides org. Implements org. Doc from org. Return the names of the directories which matched at least one of the include patterns and none of the exclude patterns. The names are relative to the base directory. |
getIncludedDirsCount | back to summary |
---|---|
public int getIncludedDirsCount() Overrides org. Doc from org. Return the count of included directories. |
getIncludedFiles | back to summary |
---|---|
public String[] getIncludedFiles() Overrides org. Implements org. Get the names of the class files on which baseClass depends. |
getIncludedFilesCount | back to summary |
---|---|
public synchronized int getIncludedFilesCount() Overrides org. Doc from org. Return the count of included files..
|
getNotIncludedDirectories | back to summary |
---|---|
public String[] getNotIncludedDirectories() Overrides org. Implements org. Doc from org. Return the names of the directories which matched none of the include patterns. The names are relative to the base directory. This involves performing a slow scan if one has not already been completed. |
getNotIncludedFiles | back to summary |
---|---|
public String[] getNotIncludedFiles() Overrides org. Implements org. Doc from org. Return the names of the files which matched none of the include patterns. The names are relative to the base directory. This involves performing a slow scan if one has not already been completed. |
scan | back to summary |
---|---|
public synchronized void scan() throws IllegalStateException Overrides org. Implements org. Scans the base directory for files on which baseClass depends.
|
setCaseSensitive | back to summary |
---|---|
public void setCaseSensitive(boolean isCaseSensitive) Overrides org. Implements org. Doc from org. Set whether or not include and exclude patterns are matched in a case sensitive way. |
setExcludes | back to summary |
---|---|
public void setExcludes(String[] excludes) Overrides org. Implements org. Doc from org. Set the list of exclude patterns to use. All '/' and '\' characters
are replaced by When a pattern ends with a '/' or '\', "**" is appended. |
setIncludes | back to summary |
---|---|
public void setIncludes(String[] includes) Overrides org. Implements org. Doc from org. Set the list of include patterns to use. All '/' and '\' characters
are replaced by When a pattern ends with a '/' or '\', "**" is appended. |
setRootClasses | back to summary |
---|---|
public synchronized void setRootClasses(Vector<String> rootClasses) Sets the root classes to be used to drive the scan. |