java.lang.Cloneable
, DynamicAttribute
, TaskContainer
public class MacroInstance extends Task implements DynamicAttribute, TaskContainer
Modifier and Type | Class | Description |
---|---|---|
static class |
MacroInstance.Element |
Embedded element in macro instance
|
description, location, project
Constructor | Description |
---|---|
MacroInstance() |
Modifier and Type | Method | Description |
---|---|---|
void |
addTask(Task nestedTask) |
Add a unknownElement for the macro instances nested elements.
|
void |
addText(java.lang.String text) |
Set the text contents for the macro.
|
java.lang.Object |
createDynamicElement(java.lang.String name) |
Deprecated.
since 1.6.x.
|
void |
execute() |
Execute the templates instance.
|
MacroDef |
getMacroDef() |
|
void |
setDynamicAttribute(java.lang.String name,
java.lang.String value) |
A parameter name value pair as a xml attribute.
|
void |
setMacroDef(MacroDef macroDef) |
Called from MacroDef.MyAntTypeDefinition#create()
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setMacroDef(MacroDef macroDef)
macroDef
- a MacroDef
valuepublic MacroDef getMacroDef()
public void setDynamicAttribute(java.lang.String name, java.lang.String value)
setDynamicAttribute
in interface DynamicAttribute
name
- the name of the attributevalue
- the value of the attribute@Deprecated public java.lang.Object createDynamicElement(java.lang.String name) throws BuildException
name
- not usedBuildException
- alwayspublic void addTask(Task nestedTask)
addTask
in interface TaskContainer
nestedTask
- a nested element.public void addText(java.lang.String text)
text
- the text to be added to the macro.