public final class TargetDef
extends org.apache.tools.ant.types.DataType
Modifier and Type | Field and Description |
---|---|
private ArchEnum |
arch
architecture.
|
private CPUEnum |
cpu
cpu.
|
private java.lang.String |
ifCond
if property.
|
private OSFamilyEnum |
osFamily
OS Family.
|
private java.lang.String |
unlessCond
unless property.
|
Constructor and Description |
---|
TargetDef()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Bogus method required for documentation generation.
|
ArchEnum |
getArch()
Gets arch.
|
CPUEnum |
getCpu()
Gets cpu.
|
OSFamilyEnum |
getOsfamily()
Gets operating system family.
|
boolean |
isActive()
Returns true if the define's if and unless conditions (if any) are
satisfied.
|
void |
setArch(ArchEnum value)
Sets cpu architecture, compiler may use cpu specific instructions.
|
void |
setCpu(CPUEnum value)
Sets preferred cpu, but does not use cpu specific instructions.
|
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 |
setOsfamily(OSFamilyEnum value)
Sets operating system family.
|
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 |
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
private java.lang.String ifCond
private java.lang.String unlessCond
private CPUEnum cpu
private ArchEnum arch
private OSFamilyEnum osFamily
public void execute()
public boolean isActive()
public void setDescription(java.lang.String desc)
setDescription
in class org.apache.tools.ant.ProjectComponent
desc
- descriptionpublic void setId(java.lang.String id)
id
- idpublic void setIf(java.lang.String propName)
propName
- property namepublic void setRefid(org.apache.tools.ant.types.Reference r)
setRefid
in class org.apache.tools.ant.types.DataType
r
- id of referenced targetpublic void setUnless(java.lang.String propName)
propName
- name of propertypublic CPUEnum getCpu()
public ArchEnum getArch()
public OSFamilyEnum getOsfamily()
public void setCpu(CPUEnum value)
value
- new valuepublic void setArch(ArchEnum value)
value
- new valuepublic void setOsfamily(OSFamilyEnum value)
value
- new value