org.apache.tools.ant.taskdefs
Class MacroDef
- Cloneable
Describe class MacroDef
here.
bindToOwner , execute , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , log , log , maybeConfigure , perform , reconfigure , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
addConfiguredAttribute
public void addConfiguredAttribute(MacroDef.Attribute attribute)
Add an attribute element.
attribute
- an attribute nested element.
addConfiguredElement
public void addConfiguredElement(MacroDef.TemplateElement element)
Add an element element.
element
- an element nested element.
addConfiguredText
public void addConfiguredText(MacroDef.Text text)
Add the text element.
text
- the nested text element to add
createSequential
public MacroDef.NestedSequential createSequential()
This is the sequential nested element of the macrodef.
- a sequential element to be configured.
execute
public void execute()
Create a new ant type based on the embedded tasks and types.
- execute in interface Task
getAttributes
public List getAttributes()
Gets this macro's attribute (and define?) list.
getBackTrace
public boolean getBackTrace()
getElements
public Map getElements()
Gets this macro's elements.
getNestedTask
public UnknownElement getNestedTask()
Convert the nested sequential to an unknown element
- the nested sequential as an unknown element.
isValidNameCharacter
public static boolean isValidNameCharacter(char c)
Check if a character is a valid character for an element or
attribute name.
c
- the character to check
- true if the character is a letter or digit or '.' or '-'
attribute name
sameDefinition
public boolean sameDefinition(Object obj)
Equality method for this definition
- true if the definitions are the same
setBackTrace
public void setBackTrace(boolean backTrace)
Set the backTrace attribute.
backTrace
- if true and the macro instance generates
an error, a backtrace of the location within
the macro and call to the macro will be output.
if false, only the location of the call to the
macro will be shown. Default is true.
setName
public void setName(String name)
Name of the definition
name
- the name of the definition
similar
public boolean similar(Object obj)
Similar method for this definition
- true if the definitions are similar