intarsys runtime library

de.intarsys.tools.number
Class NumberParser

java.lang.Object
  extended by de.intarsys.tools.number.NumberParser

public class NumberParser
extends Object

A parser able to read a definition of numbers.

The parser supports single numbers, enumeration of numbers and intervals.

 S ::= NumberString
 NumberString ::= ( Number | Interval) [ ";" (Number | Interval) ]*
 Interval ::= Number "-" Number
 Number ::= a valid number literal
 


Method Summary
 int getChar()
           
static NumberWrapper parse(String numberstring)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static NumberWrapper parse(String numberstring)
                           throws IOException
Throws:
IOException

getChar

public int getChar()
            throws IOException
Throws:
IOException

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.