Class TargetDef

  • All Implemented Interfaces:
    java.lang.Cloneable

    public final class TargetDef
    extends org.apache.tools.ant.types.DataType
    Information on the execution platforms for the generated code. (Non-functional prototype)
    • Field Summary

      Fields 
      Modifier and Type Field 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.
      • Fields inherited from class org.apache.tools.ant.types.DataType

        checked, ref
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      TargetDef()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class org.apache.tools.ant.types.DataType

        checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes, toString
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        getDescription, getLocation, getProject, log, log, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ifCond

        private java.lang.String ifCond
        if property.
      • unlessCond

        private java.lang.String unlessCond
        unless property.
      • arch

        private ArchEnum arch
        architecture.
    • Constructor Detail

      • TargetDef

        public TargetDef()
        Constructor.
    • Method Detail

      • execute

        public void execute()
        Bogus method required for documentation generation.
      • isActive

        public boolean isActive()
        Returns true if the define's if and unless conditions (if any) are satisfied.
        Returns:
        true if active
      • setDescription

        public void setDescription​(java.lang.String desc)
        Sets a description of the current data type.
        Overrides:
        setDescription in class org.apache.tools.ant.ProjectComponent
        Parameters:
        desc - description
      • setId

        public void setId​(java.lang.String id)
        Sets an id that can be used to reference this element.
        Parameters:
        id - id
      • setIf

        public void setIf​(java.lang.String propName)
        Sets the property name for the 'if' condition. The define will be ignored unless the property is defined. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") will throw an exception when evaluated.
        Parameters:
        propName - property name
      • setRefid

        public 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. If specified, no other attributes should be specified.
        Overrides:
        setRefid in class org.apache.tools.ant.types.DataType
        Parameters:
        r - id of referenced target
      • setUnless

        public void setUnless​(java.lang.String propName)
        Set the property name for the 'unless' condition. If named property is set, the define will be ignored. The value of the property is insignificant, but values that would imply misinterpretation ("false", "no") of the behavior will throw an exception when evaluated.
        Parameters:
        propName - name of property
      • getCpu

        public CPUEnum getCpu()
        Gets cpu.
        Returns:
        cpu, may be null.
      • getArch

        public ArchEnum getArch()
        Gets arch.
        Returns:
        arch, may be null.
      • getOsfamily

        public OSFamilyEnum getOsfamily()
        Gets operating system family.
        Returns:
        os family, may be null.
      • setCpu

        public void setCpu​(CPUEnum value)
        Sets preferred cpu, but does not use cpu specific instructions.
        Parameters:
        value - new value
      • setArch

        public void setArch​(ArchEnum value)
        Sets cpu architecture, compiler may use cpu specific instructions.
        Parameters:
        value - new value
      • setOsfamily

        public void setOsfamily​(OSFamilyEnum value)
        Sets operating system family.
        Parameters:
        value - new value