at.dms.compiler
Class NumberParser

java.lang.Object
  extended by at.dms.compiler.NumberParser

public class NumberParser
extends Object

This class parse Strings to convert them to ordinal literal


Constructor Summary
NumberParser()
           
 
Method Summary
static long decodeDecLong(boolean negative, String text)
           
static int decodeHexInt(boolean negative, String text)
           
static long decodeHexLong(boolean negative, String text)
           
static int decodeInt(String text)
           
static long decodeLong(String text)
           
static int decodeOctInt(boolean negative, String text)
           
static long decodeOctLong(boolean negative, String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberParser

public NumberParser()
Method Detail

decodeLong

public static long decodeLong(String text)

decodeInt

public static int decodeInt(String text)

decodeDecLong

public static long decodeDecLong(boolean negative,
                                 String text)

decodeHexLong

public static long decodeHexLong(boolean negative,
                                 String text)

decodeOctLong

public static long decodeOctLong(boolean negative,
                                 String text)

decodeHexInt

public static int decodeHexInt(boolean negative,
                               String text)

decodeOctInt

public static int decodeOctInt(boolean negative,
                               String text)