@AntTask(value="instance-of") public class InstanceOfTask extends TypeTask
Task
to get an instance of a specified Class.
<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>
FactoryTypeTask.BeanInfoFor, TypeTask.IsAssignableFrom, TypeTask.MembersOf, TypeTask.ResourcePathTo, TypeTask.SuperclassesOf| Modifier and Type | Field and Description |
|---|---|
protected Object |
instance |
description, location, project| Constructor and Description |
|---|
InstanceOfTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredArgument(TypedAttributeType argument) |
void |
execute()
Default implementation for
Task subclasses. |
List<TypedAttributeType> |
getArgumentList() |
void |
setArgument(String string) |
init, setClassname, setTypebindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAntTaskNamelog, log, log, log, log, log, log, log, log, log, logcreateClasspath, delegate, delegate, getClassForName, getClassLoader, setClasspathrefasModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, typepublic InstanceOfTask()
public void addConfiguredArgument(TypedAttributeType argument)
public List<TypedAttributeType> getArgumentList()
public void setArgument(String string)
public void execute() throws BuildException
AnnotatedAntTaskTask subclasses. Check attributes
annotated with AntTaskAttributeConstraint.
See AnnotatedAntTaskConfigurationChecker.execute in interface AnnotatedAntTaskexecute in class TypeTaskBuildException - If a
AntTaskAttributeConstraint.Checker
fails.Copyright © 2015–2021. All rights reserved.