Class NumberParser


  • public class NumberParser
    extends java.lang.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
     
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NumberParser​(java.lang.String numberstring)  
    • Constructor Detail

      • NumberParser

        protected NumberParser​(java.lang.String numberstring)
    • Method Detail

      • parse

        public static NumberWrapper parse​(java.lang.String numberstring)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getChar

        public int getChar()
                    throws java.io.IOException
        Throws:
        java.io.IOException