JML

org.multijava.util.compiler
Class NumberParser

java.lang.Object
  extended byorg.multijava.util.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)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.