public class NumberParser
extends java.lang.Object
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
Modifier | Constructor and Description |
---|---|
protected |
NumberParser(java.lang.String numberstring) |
Modifier and Type | Method and Description |
---|---|
int |
getChar() |
static NumberWrapper |
parse(java.lang.String numberstring) |
public static NumberWrapper parse(java.lang.String numberstring) throws java.io.IOException
java.io.IOException
public int getChar() throws java.io.IOException
java.io.IOException