MacroDef here.
| Modifier and Type | Class and Description |
|---|---|
| public static class | MacroDef.
An attribute for the MacroDef task. |
| private static class | MacroDef.
extends AntTypeDefinition, on create of the object, the template macro definition is given. |
| public static class | MacroDef.
The class corresponding to the sequential nested element. |
| public static class | MacroDef.
A nested element for the MacroDef task. |
| public static class | MacroDef.
A nested text element for the MacroDef task. |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private boolean | |
| private Map | |
| private boolean | |
| private String | |
| private MacroDef. | |
| private MacroDef. | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConfiguredAttribute(MacroDef.
an attribute nested element. attributeAdd an attribute element. |
| public void | addConfiguredElement(MacroDef.
an element nested element. elementAdd an element element. |
| public void | |
| public MacroDef. | Returns: a sequential element to be configured.This is the sequential nested element of the macrodef. |
| public void | execute()
Overrides org. |
| public List | |
| public boolean | |
| public Map | Returns: the map nested elements, keyed by element name, withTemplateElement values.Gets this macro's elements. |
| public UnknownElement | Returns: the nested sequential as an unknown element.Convert the nested sequential to an unknown element |
| public MacroDef. | |
| private static boolean | Returns: true if the name consists of valid name charactersthe string to check name)Check if a string is a valid name for an element or attribute. |
| public static boolean | Returns: true if the character is a letter or digit or '.' or '-' attribute namethe character to check c)Check if a character is a valid character for an element or attribute name. |
| public boolean | Returns: true if the definitions are the sameanother definition obj)Equality method for this definition |
| private boolean | Returns: aboolean valuean obj, boolean Object valueif true test for sameness, otherwise just similar same)same or similar equality method for macrodef, ignores project and runtime info. |
| public void | setBackTrace(boolean
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. backTrace)Set the backTrace attribute. |
| public void | |
| public boolean |
| attributes | back to summary |
|---|---|
| private List<MacroDef. | |
| backTrace | back to summary |
|---|---|
| private boolean backTrace | |
| elements | back to summary |
|---|---|
| private Map<String, MacroDef. | |
| hasImplicitElement | back to summary |
|---|---|
| private boolean hasImplicitElement | |
| name | back to summary |
|---|---|
| private String name | |
| nestedSequential | back to summary |
|---|---|
| private MacroDef. | |
| text | back to summary |
|---|---|
| private MacroDef. | |
| textName | back to summary |
|---|---|
| private String textName | |
| MacroDef | back to summary |
|---|---|
| public MacroDef() | |
| addConfiguredAttribute | back to summary |
|---|---|
| public void addConfiguredAttribute(MacroDef. Add an attribute element. | |
| addConfiguredElement | back to summary |
|---|---|
| public void addConfiguredElement(MacroDef. Add an element element.
| |
| addConfiguredText | back to summary |
|---|---|
| public void addConfiguredText(MacroDef. Add the text element. | |
| createSequential | back to summary |
|---|---|
| public MacroDef. This is the sequential nested element of the macrodef.
| |
| execute | back to summary |
|---|---|
| public void execute() Overrides org. Create a new ant type based on the embedded tasks and types.
| |
| getAttributes | back to summary |
|---|---|
| public List Gets this macro's attribute (and define?) list. | |
| getBackTrace | back to summary |
|---|---|
public boolean getBackTrace()
| |
| getElements | back to summary |
|---|---|
| public Map Gets this macro's elements.
| |
| getNestedTask | back to summary |
|---|---|
| public UnknownElement getNestedTask() Convert the nested sequential to an unknown element
| |
| getText | back to summary |
|---|---|
| public MacroDef. | |
| isValidName | back to summary |
|---|---|
| private static boolean isValidName(String name) Check if a string is a valid name for an element or attribute.
| |
| isValidNameCharacter | back to summary |
|---|---|
| public static boolean isValidNameCharacter(char c) Check if a character is a valid character for an element or attribute name.
| |
| sameDefinition | back to summary |
|---|---|
| public boolean sameDefinition(Object obj) Equality method for this definition
| |
| sameOrSimilar | back to summary |
|---|---|
| private boolean sameOrSimilar(Object obj, boolean same) same or similar equality method for macrodef, ignores project and runtime info.
| |
| setBackTrace | back to summary |
|---|---|
| public void setBackTrace(boolean backTrace) Set the backTrace attribute.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Name of the definition
| |
| similar | back to summary |
|---|---|
| public boolean similar(Object obj) Similar method for this definition
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: aboolean valuean obj)Object valueOverrides java. |
| public String | |
| public String | |
| public String | |
| public int | Returns: a hash code value for this object.Overrides java. |
| public boolean | Returns: true if expanding twice (the default), false for just onceDetermines whether |
| public void | setDefault(String
the default value defaultValue)The default value to use if the parameter is not used in the templated instance. |
| public void | |
| public void | setDoubleExpanding(boolean
true to expand twice, false for just once doubleExpanding)See |
| public void |
| defaultValue | back to summary |
|---|---|
| private String defaultValue | |
| description | back to summary |
|---|---|
| private String description | |
| doubleExpanding | back to summary |
|---|---|
| private boolean doubleExpanding | |
| name | back to summary |
|---|---|
| private String name | |
| Attribute | back to summary |
|---|---|
| public Attribute() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. equality method | |
| getDefault | back to summary |
|---|---|
public String getDefault()
| |
| getDescription | back to summary |
|---|---|
public String getDescription()
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDoubleExpanding | back to summary |
|---|---|
| public boolean isDoubleExpanding() Determines whether
| |
| setDefault | back to summary |
|---|---|
| public void setDefault(String defaultValue) The default value to use if the parameter is not used in the templated instance.
| |
| setDescription | back to summary |
|---|---|
public void setDescription(String desc)
| |
| setDoubleExpanding | back to summary |
|---|---|
| public void setDoubleExpanding(boolean doubleExpanding) See
| |
| setName | back to summary |
|---|---|
| public void setName(String name) The name of the attribute.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | Returns: true if the definitions are the sameanother definition other, Project the current project project)Overrides org. |
| public boolean | Returns: true if the definitions are the sameanother definition other, Project the current project project)Overrides org. |
| macroDef | back to summary |
|---|---|
| private MacroDef macroDef | |
| MyAntTypeDefinition | back to summary |
|---|---|
| public MyAntTypeDefinition(MacroDef macroDef) Creates a new
| |
| create | back to summary |
|---|---|
| public Object create(Project project) Overrides org. Create an instance of the definition. The instance may be wrapped in a proxy class. | |
| sameDefinition | back to summary |
|---|---|
| public boolean sameDefinition(AntTypeDefinition other, Project project) Overrides org. Equality method for this definition
| |
| similarDefinition | back to summary |
|---|---|
| public boolean similarDefinition(AntTypeDefinition other, Project project) Overrides org. Similar method for this definition
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTask(Task
an unknown element. task)Implements org. |
| public List | |
| public boolean | Returns: true if they are similar, false otherwisethe nested sequential to compare with. otherA compare function to compare this with another NestedSequential. |
| nested | back to summary |
|---|---|
| private List<Task> nested | |
| NestedSequential | back to summary |
|---|---|
| public NestedSequential() | |
| addTask | back to summary |
|---|---|
| public void addTask(Task task) Implements org. Add a task or type to the container. | |
| getNested | back to summary |
|---|---|
| public List | |
| similar | back to summary |
|---|---|
| public boolean similar(MacroDef. A compare function to compare this with another NestedSequential. It calls similar on the nested unknown elements.
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: aboolean valuean obj)Object valueOverrides java. |
| public String | Returns: the description of the element, ornull if
no description is available.Gets the description of this element. |
| public String | |
| public int | Returns: a hash code value for this object.Overrides java. |
| public boolean | |
| public boolean | |
| public void | setDescription(String
Description of the element. desc)Sets a textual description of this element, for build documentation purposes only. |
| public void | setImplicit(boolean
if true this element may be left out, default
is false. implicit)Sets whether this element is implicit. |
| public void | |
| public void | setOptional(boolean
if true this element may be left out, default
is false. optional)Sets whether this element is optional. |
| description | back to summary |
|---|---|
| private String description | |
| implicit | back to summary |
|---|---|
| private boolean implicit | |
| name | back to summary |
|---|---|
| private String name | |
| optional | back to summary |
|---|---|
| private boolean optional | |
| TemplateElement | back to summary |
|---|---|
| public TemplateElement() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. equality method. | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Gets the description of this element.
| |
| getName | back to summary |
|---|---|
| public String getName() Gets the name of this element.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isImplicit | back to summary |
|---|---|
| public boolean isImplicit() Gets whether this element is implicit.
| |
| isOptional | back to summary |
|---|---|
| public boolean isOptional() Gets whether this element is optional.
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String desc) Sets a textual description of this element, for build documentation purposes only.
| |
| setImplicit | back to summary |
|---|---|
| public void setImplicit(boolean implicit) Sets whether this element is implicit.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the name of this element.
| |
| setOptional | back to summary |
|---|---|
| public void setOptional(boolean optional) Sets whether this element is optional.
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private String | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: aboolean valuean obj)Object valueOverrides java. |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public boolean | |
| public int | Returns: a hash code value for this object.Overrides java. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setTrim(boolean
if true this String.trim() is called on
the contents of the text element. trim)The trim attribute of the text element. |
| defaultString | back to summary |
|---|---|
| private String defaultString | |
| description | back to summary |
|---|---|
| private String description | |
| name | back to summary |
|---|---|
| private String name | |
| optional | back to summary |
|---|---|
| private boolean optional | |
| trim | back to summary |
|---|---|
| private boolean trim | |
| Text | back to summary |
|---|---|
| public Text() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. equality method | |
| getDefault | back to summary |
|---|---|
public String getDefault()
| |
| getDescription | back to summary |
|---|---|
public String getDescription()
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| getOptional | back to summary |
|---|---|
public boolean getOptional()
| |
| getTrim | back to summary |
|---|---|
public boolean getTrim()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setDefault | back to summary |
|---|---|
public void setDefault(String defaultString)
| |
| setDescription | back to summary |
|---|---|
public void setDescription(String desc)
| |
| setName | back to summary |
|---|---|
| public void setName(String name) The name of the attribute.
| |
| setOptional | back to summary |
|---|---|
| public void setOptional(boolean optional) The optional attribute of the text element.
| |
| setTrim | back to summary |
|---|---|
| public void setTrim(boolean trim) The trim attribute of the text element.
| |