public class MacroInstance extends Task implements DynamicAttribute, TaskContainer
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MacroInstance.ElementEmbedded element in macro instance | 
| Constructor and Description | 
|---|
| MacroInstance() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addTask(Task nestedTask)Add a unknownElement for the macro instances nested elements. | 
| void | addText(String text)Set the text contents for the macro. | 
| void | execute()Execute the templates instance. | 
| MacroDef | getMacroDef() | 
| void | setDynamicAttribute(String name,
                   String value)A parameter name value pair as a xml attribute. | 
| void | setMacroDef(MacroDef macroDef)Called from MacroDef.MyAntTypeDefinition#create() | 
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void addTask(Task nestedTask)
addTask in interface TaskContainernestedTask - a nested element.public void addText(String text)
text - the text to be added to the macro.public void execute()
public MacroDef getMacroDef()
public void setDynamicAttribute(String name, String value)
setDynamicAttribute in interface DynamicAttributename - the name of the attributevalue - the value of the attributepublic void setMacroDef(MacroDef macroDef)
macroDef - a MacroDef value