org.apache.tools.ant.types

Class FlexInteger

public class FlexInteger extends Object

Helper class which can be used for Ant task attribute setter methods to allow the build file to specify an integer in either decimal, octal, or hexadecimal format.

See Also: java.lang.Integer#decode(String)

Constructor Summary
FlexInteger(String value)
Constructor used by Ant's introspection mechanism for attribute population
Method Summary
intintValue()
Returns the decimal integer value
StringtoString()
Overridden method to return the decimal value for display

Constructor Detail

FlexInteger

public FlexInteger(String value)
Constructor used by Ant's introspection mechanism for attribute population

Parameters: value the value to decode

Method Detail

intValue

public int intValue()
Returns the decimal integer value

Returns: the integer value

toString

public String toString()
Overridden method to return the decimal value for display

Returns: a string version of the integer