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

Class ClassfileSet

Implemented Interfaces:
Cloneable, SelectorContainer

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 class
ClassfileSet.ClassRoot
Inner class used to contain info about root classes.

Field Summary

Fields inherited from class org.apache.tools.ant.types.DataType

checked, description, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Constructor Summary

ClassfileSet()
Default constructor.
ClassfileSet(ClassfileSet s)
Create a ClassfileSet from another ClassfileSet.

Method Summary

void
addConfiguredRoot(ClassfileSet.ClassRoot root)
Add a nested root class definition to this class file set.
void
addRootFileset(FileSet rootFileSet)
Add a fileset to which contains a collection of root classes used to drive the search from classes.
Object
clone()
Clone this data type.
DirectoryScanner
getDirectoryScanner(Project p)
Return the DirectoryScanner associated with this FileSet.
void
setRootClass(String rootClass)
Set the root class attribute.

Methods inherited from class org.apache.tools.ant.types.FileSet

clone

Methods inherited from class org.apache.tools.ant.types.AbstractFileSet

add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, clone, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDataTypeName, getDefaultexcludes, getDir, getDirectoryScanner, getRef, getSelectors, hasPatterns, hasSelectors, isFollowSymlinks, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setRefid, setupDirectoryScanner, toString

Methods inherited from class org.apache.tools.ant.types.DataType

checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Constructor Details

ClassfileSet

public ClassfileSet()
Default constructor.

ClassfileSet

protected ClassfileSet(ClassfileSet s)
Create a ClassfileSet from another ClassfileSet.
Parameters:
s - the other classfileset.

Method Details

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.
Overrides:
clone in interface FileSet
Returns:
a clone of the class file set.

getDirectoryScanner

public DirectoryScanner getDirectoryScanner(Project p)
Return the DirectoryScanner associated with this FileSet.
Overrides:
getDirectoryScanner in interface AbstractFileSet
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.

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.