Package org.apache.tools.ant.taskdefs
Class MacroDef.Attribute
java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.Attribute
- Enclosing class:
- MacroDef
An attribute for the MacroDef task.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanequality methodgetName()inthashCode()booleanDetermines whetherRuntimeConfigurable.maybeConfigure(Project, boolean)will reevaluate this property.voidsetDefault(String defaultValue) The default value to use if the parameter is not used in the templated instance.voidsetDescription(String desc) voidsetDoubleExpanding(boolean doubleExpanding) SeeisDoubleExpanding()for explanation.voidThe name of the attribute.
- 
Constructor Details- 
Attributepublic Attribute()
 
- 
- 
Method Details- 
setNameThe name of the attribute.- Parameters:
- name- the name of the attribute
 
- 
getName- Returns:
- the name of the attribute
 
- 
setDefaultThe default value to use if the parameter is not used in the templated instance.- Parameters:
- defaultValue- the default value
 
- 
getDefault- Returns:
- the default value, null if not set
 
- 
setDescription- Parameters:
- desc- Description of the element.
- Since:
- ant 1.6.1
 
- 
getDescription- Returns:
- the description of the element, or nullif no description is available.
- Since:
- ant 1.6.1
 
- 
setDoubleExpandingpublic void setDoubleExpanding(boolean doubleExpanding) SeeisDoubleExpanding()for explanation.- Parameters:
- doubleExpanding- true to expand twice, false for just once
- Since:
- Ant 1.8.3
 
- 
isDoubleExpandingpublic boolean isDoubleExpanding()Determines whetherRuntimeConfigurable.maybeConfigure(Project, boolean)will reevaluate this property. For compatibility reasons (#52621) it will, though for most applications (#42046) it should not.- Returns:
- true if expanding twice (the default), false for just once
- Since:
- Ant 1.8.3
 
- 
equalsequality method
- 
hashCodepublic int hashCode()
 
-