| Modifier and Type | Field and Description |
|---|---|
| private static final BigDecimal | |
| private static final BigDecimal | |
| private static final BigInteger | |
| private static final BigInteger | |
| private static final BigDecimal | |
| private static final BigDecimal | |
| private static final BigInteger | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | |
| public static boolean | isNumericTypeSpecifier(char c, boolean isDecimal)
Returns true if the specified character is a valid type specifier for a numeric value. |
| public static boolean | |
| public static Number | Returns: instantiated Number objectliteral text to parse text)Builds a Number from the given decimal descriptor. |
| public static Number | Returns: instantiated Number objectliteral text to parse text)Builds a Number from the given integer descriptor. |
| public static Number | Returns: instantiated Number objectat node for error reporting in the parser reportNode, String literal text to parse text)
Deprecated
Builds a Number from the given integer descriptor.
|
| MAX_DOUBLE | back to summary |
|---|---|
| private static final BigDecimal MAX_DOUBLE | |
| MAX_FLOAT | back to summary |
|---|---|
| private static final BigDecimal MAX_FLOAT | |
| MAX_INTEGER | back to summary |
|---|---|
| private static final BigInteger MAX_INTEGER | |
| MAX_LONG | back to summary |
|---|---|
| private static final BigInteger MAX_LONG | |
| MIN_DOUBLE | back to summary |
|---|---|
| private static final BigDecimal MIN_DOUBLE | |
| MIN_FLOAT | back to summary |
|---|---|
| private static final BigDecimal MIN_FLOAT | |
| MIN_INTEGER | back to summary |
|---|---|
| private static final BigInteger MIN_INTEGER | |
| MIN_LONG | back to summary |
|---|---|
| private static final BigInteger MIN_LONG | |
| Numbers | back to summary |
|---|---|
| public Numbers() | |
| isDigit | back to summary |
|---|---|
| public static boolean isDigit(char c) Returns true if the specified character is a base-10 digit. | |
| isHexDigit | back to summary |
|---|---|
| public static boolean isHexDigit(char c) Returns true if the specified character is a base-16 digit. | |
| isNumericTypeSpecifier | back to summary |
|---|---|
| public static boolean isNumericTypeSpecifier(char c, boolean isDecimal) Returns true if the specified character is a valid type specifier for a numeric value. | |
| isOctalDigit | back to summary |
|---|---|
| public static boolean isOctalDigit(char c) Returns true if the specific character is a base-8 digit. | |
| parseDecimal | back to summary |
|---|---|
| public static Number parseDecimal(String text) Builds a Number from the given decimal descriptor. Uses BigDecimal, unless, Double or Float is requested.
| |
| parseInteger | back to summary |
|---|---|
| public static Number parseInteger(String text) Builds a Number from the given integer descriptor. Creates the narrowest type possible, or a specific type, if specified.
| |
| parseInteger | back to summary |
|---|---|
| public static Number parseInteger(AST reportNode, String text)
Deprecated
Builds a Number from the given integer descriptor. Creates the narrowest type possible, or a specific type, if specified.
| |