|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.jmlspecs.ant.tasks.AbstractFileSetTask
An abstract class for creating Tasks that work with Ant filesets. It provides an inner class FileSetVisitor to conveniently apply a certain action on all the files in all the FileSets of an AbstractFileSetTask.
The FileSetVisitor is typically used as follows in a subclass
new FileSetVisitor() {
public void visit(File file) {
//action code
}
}.visit();
This task works with Ant filesets in order to keep things simple!
Class Specifications |
private invariant !this._filesets.contains(null); private invariant ( \forall java.lang.Object o; this._filesets.contains(o); o instanceof org.apache.tools.ant.types.FileSet); |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Nested Class Summary | |
class |
AbstractFileSetTask.FileSetVisitor
|
Model Field Summary |
Model fields inherited from class java.lang.Object |
_getClass, objectState, theString |
Ghost Field Summary |
Ghost fields inherited from class java.lang.Object |
objectTimesFinalized, owner |
Field Summary | |
private HashSet |
_filesets
|
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
AbstractFileSetTask()
|
Model Method Summary |
Model methods inherited from class java.lang.Object |
hashValue |
Method Summary | |
void |
addFileset(org.apache.tools.ant.types.FileSet fileset)
Adds a set of files (nested fileset attribute). |
Set |
getFileSets()
Return the filesets of the AbstractFileSetTask |
Methods inherited from class org.apache.tools.ant.Task |
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private HashSet _filesets
Constructor Detail |
public AbstractFileSetTask()
Method Detail |
public void addFileset(org.apache.tools.ant.types.FileSet fileset)
fileset
- The fileset to be added.public Set getFileSets()
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |