Class OptimizationEnum

java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
net.sf.antcontrib.cpptasks.OptimizationEnum

public final class OptimizationEnum extends org.apache.tools.ant.types.EnumeratedAttribute
Enumeration of optimization levels (experimental).
  • Field Summary

    Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute

    value
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets list of acceptable values.
    boolean
    Is no optimization performed.
    boolean
    Is size optimized.
    boolean
    Is speed optimized.

    Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute

    containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OptimizationEnum

      public OptimizationEnum()
      Constructor. Set by default to "speed"
      See Also:
  • Method Details

    • getValues

      public String[] getValues()
      Gets list of acceptable values.
      Specified by:
      getValues in class org.apache.tools.ant.types.EnumeratedAttribute
      See Also:
      • EnumeratedAttribute.getValues()
    • isSize

      public boolean isSize()
      Is size optimized.
      Returns:
      boolean true if size is optimized.
    • isSpeed

      public boolean isSpeed()
      Is speed optimized.
      Returns:
      boolean true if speed is optimized.
    • isNoOptimization

      public boolean isNoOptimization()
      Is no optimization performed.
      Returns:
      boolean true if no optimization is performed.