public class DefineSet
extends org.apache.tools.ant.types.DataType
Constructor | Description |
---|---|
DefineSet() |
Modifier and Type | Method | Description |
---|---|---|
void |
addDefine(DefineArgument arg) |
Adds a define element.
|
void |
addUndefine(UndefineArgument arg) |
Adds an undefine element.
|
void |
execute() |
|
UndefineArgument[] |
getDefines() |
Returns the defines and undefines in this set.
|
boolean |
isActive() |
Returns true if the define's if and unless conditions (if any) are
satisfied.
|
void |
setDefine(CUtil.StringArrayBuilder defList) |
A comma-separated list of preprocessor macros to define.
|
void |
setDescription(java.lang.String desc) |
Sets a description of the current data type.
|
void |
setId(java.lang.String id) |
Sets an id that can be used to reference this element.
|
void |
setIf(java.lang.String propName) |
Sets the property name for the 'if' condition.
|
void |
setRefid(org.apache.tools.ant.types.Reference r) |
Specifies that this element should behave as if the content of the
element with the matching id attribute was inserted at this location.
|
void |
setUndefine(CUtil.StringArrayBuilder undefList) |
A comma-separated list of preprocessor macros to undefine.
|
void |
setUnless(java.lang.String propName) |
Set the property name for the 'unless' condition.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
public void addDefine(DefineArgument arg) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if referencepublic void addUndefine(UndefineArgument arg) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if referencepublic void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public UndefineArgument[] getDefines() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public final boolean isActive() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- throws build exception if name is not setpublic void setDefine(CUtil.StringArrayBuilder defList) throws org.apache.tools.ant.BuildException
defList
- comma-separated list of preprocessor macrosorg.apache.tools.ant.BuildException
- throw if defineset is a referencepublic void setDescription(java.lang.String desc)
setDescription
in class org.apache.tools.ant.ProjectComponent
public void setId(java.lang.String id)
id
- idpublic final void setIf(java.lang.String propName)
propName
- property namepublic void setRefid(org.apache.tools.ant.types.Reference r) throws org.apache.tools.ant.BuildException
setRefid
in class org.apache.tools.ant.types.DataType
org.apache.tools.ant.BuildException
public void setUndefine(CUtil.StringArrayBuilder undefList) throws org.apache.tools.ant.BuildException
undefList
- comma-separated list of preprocessor macrosorg.apache.tools.ant.BuildException
- throw if defineset is a referencepublic final void setUnless(java.lang.String propName)
propName
- name of propertyCopyright ? 2001-2017 Ant-Contrib project. All Rights Reserved.