public class ClassfileSet extends FileSet
Modifier and Type | Class and Description |
---|---|
static class |
ClassfileSet.ClassRoot
Inner class used to contain info about root classes.
|
description, location, project
Modifier | Constructor and Description |
---|---|
|
ClassfileSet()
Default constructor.
|
protected |
ClassfileSet(ClassfileSet s)
Create a ClassfileSet from another ClassfileSet.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.Object |
clone()
Clone this data type.
|
protected void |
dieOnCircularReference(java.util.Stack<java.lang.Object> stk,
Project p)
Check to see whether any DataType we hold references to is
included in the Stack (which holds all DataType instances that
directly or indirectly reference this instance, including this
instance itself).
|
DirectoryScanner |
getDirectoryScanner(Project p)
Return the DirectoryScanner associated with this FileSet.
|
void |
setRootClass(java.lang.String rootClass)
Set the root class attribute.
|
isFilesystemOnly, iterator, size
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addReadable, addSelector, addSize, addType, addWritable, appendExcludes, appendIncludes, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDefaultexcludes, getDir, getDir, getDirectoryScanner, getErrorOnMissingDir, getMaxLevelsOfSymlinks, getRef, getSelectors, hasPatterns, hasSelectors, isCaseSensitive, isFollowSymlinks, mergeExcludes, mergeIncludes, mergePatterns, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setDir, setErrorOnMissingDir, setExcludes, setExcludesfile, setFile, setFollowSymlinks, setIncludes, setIncludesfile, setMaxLevelsOfSymlinks, setRefid, setupDirectoryScanner, setupDirectoryScanner, toString
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public ClassfileSet()
protected ClassfileSet(ClassfileSet s)
s
- the other classfileset.public void addRootFileset(FileSet rootFileSet)
rootFileSet
- a root file set to be used to search for dependent
classes.public void setRootClass(java.lang.String rootClass)
rootClass
- the name of the root class.public DirectoryScanner getDirectoryScanner(Project p)
getDirectoryScanner
in class AbstractFileSet
p
- the project used to resolve dirs, etc.public void addConfiguredRoot(ClassfileSet.ClassRoot root)
root
- the configured class root.public java.lang.Object clone()
protected void dieOnCircularReference(java.util.Stack<java.lang.Object> stk, Project p)
DataType
If one is included, throw a BuildException created by circularReference
.
This implementation is appropriate only for a DataType that cannot hold other DataTypes as children.
The general contract of this method is that it shouldn't do
anything if DataType.checked
is true and
set it to true on exit.
dieOnCircularReference
in class AbstractFileSet
stk
- the stack of references to check.p
- the project to use to dereference the references.