Package ball.util.ant.taskdefs
Class InstanceOfTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- ball.util.ant.taskdefs.TypeTask
-
- ball.util.ant.taskdefs.InstanceOfTask
-
- All Implemented Interfaces:
JavaLangReflectMethods,AnnotatedAntTask,AntTaskLogMethods,AntTaskMixIn,ClasspathDelegateAntTask,Cloneable
- Direct Known Subclasses:
CombinationsTask,PermutationsTask
@AntTask("instance-of") public class InstanceOfTask extends TypeTask
AntTaskto get an instance of a specifiedClass.<instance-of argument="String" classname="String" classpathref="Reference" description="String" taskname="String" type="String"> <classpath .../> <argument if="String" name="String" type="String" unless="String">... text ...</argument> </instance-of>
- Author:
- Allen D. Ball
- See Also:
Factory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ball.util.ant.taskdefs.TypeTask
TypeTask.BeanInfoFor, TypeTask.IsAssignableFrom, TypeTask.MembersOf, TypeTask.ResourcePathTo, TypeTask.SuperclassesOf
-
-
Constructor Summary
Constructors Constructor Description InstanceOfTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredArgument(TypedAttributeType argument)voidexecute()Default implementation forTasksubclasses.List<TypedAttributeType>getArgumentList()voidsetArgument(String string)-
Methods inherited from class ball.util.ant.taskdefs.TypeTask
init, setClassname, setType
-
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
-
InstanceOfTask
public InstanceOfTask()
-
-
Method Detail
-
addConfiguredArgument
public void addConfiguredArgument(TypedAttributeType argument)
-
getArgumentList
public List<TypedAttributeType> getArgumentList()
-
setArgument
public void setArgument(String string)
-
execute
public void execute() throws BuildException
Description copied from interface:AnnotatedAntTaskDefault implementation forTasksubclasses. Check attributes annotated withAntTaskAttributeConstraint. SeeAnnotatedAntTaskConfigurationChecker.- Specified by:
executein interfaceAnnotatedAntTask- Overrides:
executein classTypeTask- Throws:
BuildException- If aAntTaskAttributeConstraint.Checkerfails.
-
-