Package ball.util.ant.taskdefs
Class TypeTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- ball.util.ant.taskdefs.TypeTask
-
- All Implemented Interfaces:
JavaLangReflectMethods
,AnnotatedAntTask
,AntTaskLogMethods
,AntTaskMixIn
,ClasspathDelegateAntTask
,Cloneable
- Direct Known Subclasses:
InstanceOfTask
,TypeTask.BeanInfoFor
,TypeTask.IsAssignableFrom
,TypeTask.MembersOf
,TypeTask.ResourcePathTo
,TypeTask.SuperclassesOf
public abstract class TypeTask extends Task implements AnnotatedAntTask, ClasspathDelegateAntTask, JavaLangReflectMethods
Abstract AntTask
to specify a type (Class
).<TypeTask classname="String" classpathref="Reference" description="String" taskname="String" type="String"> <classpath .../> </TypeTask>
- Author:
- Allen D. Ball
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeTask.BeanInfoFor
static class
TypeTask.IsAssignableFrom
static class
TypeTask.MembersOf
static class
TypeTask.ResourcePathTo
static class
TypeTask.SuperclassesOf
-
Field Summary
-
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
-
Constructor Summary
Constructors Constructor Description TypeTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Default implementation forTask
subclasses.void
init()
Default implementation forTask
subclasses.void
setClassname(String string)
void
setType(String string)
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ball.util.ant.taskdefs.AnnotatedAntTask
getAntTaskName
-
Methods inherited from interface ball.util.ant.taskdefs.AntTaskLogMethods
log, log, log, log, log, log, log, log, log, log, log
-
Methods inherited from interface ball.util.ant.taskdefs.ClasspathDelegateAntTask
createClasspath, delegate, delegate, getClassForName, getClassLoader, setClasspathref
-
Methods inherited from interface ball.lang.reflect.JavaLangReflectMethods
asModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, type
-
-
-
-
Constructor Detail
-
TypeTask
public TypeTask()
-
-
Method Detail
-
setClassname
public void setClassname(String string)
Description copied from interface:ClasspathDelegateAntTask
- Specified by:
setClassname
in interfaceClasspathDelegateAntTask
- Parameters:
string
- The class name (String
).
-
init
public void init() throws BuildException
Description copied from interface:ClasspathDelegateAntTask
Default implementation forTask
subclasses.- Specified by:
init
in interfaceClasspathDelegateAntTask
- Overrides:
init
in classTask
- Throws:
BuildException
-
execute
public void execute() throws BuildException
Description copied from interface:AnnotatedAntTask
Default implementation forTask
subclasses. Check attributes annotated withAntTaskAttributeConstraint
. SeeAnnotatedAntTaskConfigurationChecker
.- Specified by:
execute
in interfaceAnnotatedAntTask
- Overrides:
execute
in classTask
- Throws:
BuildException
- If aAntTaskAttributeConstraint.Checker
fails.
-
-