Package org.apache.tools.ant.taskdefs
Class MacroDef.Attribute
java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.Attribute
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
equality methodgetName()
int
hashCode()
boolean
Determines whetherRuntimeConfigurable.maybeConfigure(Project, boolean)
will reevaluate this property.void
setDefault
(String defaultValue) The default value to use if the parameter is not used in the templated instance.void
setDescription
(String desc) void
setDoubleExpanding
(boolean doubleExpanding) SeeisDoubleExpanding()
for explanation.void
The name of the attribute.
-
Constructor Details
-
Attribute
public Attribute()
-
-
Method Details
-
setName
The name of the attribute.- Parameters:
name
- the name of the attribute
-
getName
- Returns:
- the name of the attribute
-
setDefault
The 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
null
if no description is available. - Since:
- ant 1.6.1
-
setDoubleExpanding
public void setDoubleExpanding(boolean doubleExpanding) SeeisDoubleExpanding()
for explanation.- Parameters:
doubleExpanding
- true to expand twice, false for just once- Since:
- Ant 1.8.3
-
isDoubleExpanding
public 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
-
equals
-
hashCode
-