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

Class ClassfileSet

public class ClassfileSet extends FileSet

A ClassfileSet is a FileSet that enlists all classes that depend on a certain set of root classes. ClassfileSet extends FileSet, its inherited properties defining the domain searched for dependent classes.
Nested Class Summary
static classClassfileSet.ClassRoot
Inner class used to contain info about root classes.
Constructor Summary
ClassfileSet()
Default constructor.
protected ClassfileSet(ClassfileSet s)
Create a ClassfileSet from another ClassfileSet.
Method Summary
voidaddConfiguredRoot(ClassfileSet.ClassRoot root)
Add a nested root class definition to this class file set.
voidaddRootFileset(FileSet rootFileSet)
Add a fileset to which contains a collection of root classes used to drive the search from classes.
Objectclone()
Clone this data type.
protected voiddieOnCircularReference(Stack stk, Project p)
DirectoryScannergetDirectoryScanner(Project p)
Return the DirectoryScanner associated with this FileSet.
voidsetRootClass(String rootClass)
Set the root class attribute.

Constructor Detail

ClassfileSet

public ClassfileSet()
Default constructor.

ClassfileSet

protected ClassfileSet(ClassfileSet s)
Create a ClassfileSet from another ClassfileSet.

Parameters: s the other classfileset.

Method Detail

addConfiguredRoot

public void addConfiguredRoot(ClassfileSet.ClassRoot root)
Add a nested root class definition to this class file set.

Parameters: root the configured class root.

addRootFileset

public void addRootFileset(FileSet rootFileSet)
Add a fileset to which contains a collection of root classes used to drive the search from classes.

Parameters: rootFileSet a root file set to be used to search for dependent classes.

clone

public Object clone()
Clone this data type.

Returns: a clone of the class file set.

dieOnCircularReference

protected void dieOnCircularReference(Stack stk, Project p)

getDirectoryScanner

public DirectoryScanner getDirectoryScanner(Project p)
Return the DirectoryScanner associated with this FileSet.

Parameters: p the project used to resolve dirs, etc.

Returns: a dependency scanner.

setRootClass

public void setRootClass(String rootClass)
Set the root class attribute.

Parameters: rootClass the name of the root class.