|
Groovy 1.7.2 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.syntax.Numbers
public class Numbers extends Object
Helper class for processing Groovy numeric literals.
Method Summary | |
---|---|
static boolean
|
isDigit(char c)
Returns true if the specified character is a base-10 digit. |
static boolean
|
isHexDigit(char c)
Returns true if the specified character is a base-16 digit. |
static boolean
|
isNumericTypeSpecifier(char c, boolean isDecimal)
Returns true if the specified character is a valid type specifier for a numeric value. |
static boolean
|
isOctalDigit(char c)
Returns true if the specific character is a base-8 digit. |
static Number
|
parseDecimal(String text)
Builds a Number from the given decimal descriptor. |
static Number
|
parseInteger(String text)
Builds a Number from the given integer descriptor. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Method Detail |
---|
public static boolean isDigit(char c)
public static boolean isHexDigit(char c)
public static boolean isNumericTypeSpecifier(char c, boolean isDecimal)
public static boolean isOctalDigit(char c)
public static Number parseDecimal(String text)
public static Number parseInteger(String text)
Copyright © 2003-2010 The Codehaus. All rights reserved.