| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.MacroInstance
MacroInstance | public class MacroInstance extends Task implements DynamicAttribute,TaskContainer(Code) | | The class to be placed in the ant type definition.
It is given a pointer to the template definition,
and makes a copy of the unknown element, substituting
the parameter values in attributes and text.
since: Ant 1.6 |
Inner Class :public static class Element implements TaskContainer | |
addTask | public void addTask(Task nestedTask)(Code) | | Add a unknownElement for the macro instances nested elements.
Parameters: nestedTask - a nested element. |
addText | public void addText(String text)(Code) | | Set the text contents for the macro.
Parameters: text - the text to be added to the macro. |
execute | public void execute()(Code) | | Execute the templates instance.
Copies the unknown element, substitutes the attributes,
and calls perform on the unknown element.
|
getMacroDef | public MacroDef getMacroDef()(Code) | | the macro definition object for this macro instance. |
setDynamicAttribute | public void setDynamicAttribute(String name, String value)(Code) | | A parameter name value pair as a xml attribute.
Parameters: name - the name of the attribute Parameters: value - the value of the attribute |
setMacroDef | public void setMacroDef(MacroDef macroDef)(Code) | | Called from MacroDef.MyAntTypeDefinition#create()
Parameters: macroDef - a MacroDef value |
|
|