|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MacroInstance
public class MacroInstance
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.
| Nested Class Summary | |
|---|---|
static class |
MacroInstance.Element
Embedded element in macro instance |
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
MacroInstance()
|
|
| Method Summary | |
|---|---|
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() |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, 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 |
| Constructor Detail |
|---|
public MacroInstance()
| Method Detail |
|---|
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 DynamicAttributename - the name of the attributevalue - the value of the attribute
public java.lang.Object createDynamicElement(java.lang.String name)
throws BuildException
name - not used
BuildException - alwayspublic void addTask(Task nestedTask)
addTask in interface TaskContainernestedTask - a nested element.public void addText(java.lang.String text)
text - the text to be added to the macro.public void execute()
execute in class Task
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||