Class JavaScanners


  • public class JavaScanners
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Parser<java.lang.String> DEC_INTEGER
      Scanner for a decimal number.
      static Pattern DEC_INTEGER_PATTERN
      A Pattern object that matches a decimal integer, which is either '0' or starts with a non-zero digit and is followed by 0 or more digits.
      static Parser<java.lang.String> OCT_INTEGER
      Scanner for a octal number.
      static Pattern OCT_INTEGER_PATTERN
      A Pattern object that matches an octal integer that starts with a 0 and is followed by 1 or more [0 - 7] characters.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private JavaScanners()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • OCT_INTEGER_PATTERN

        public static final Pattern OCT_INTEGER_PATTERN
        A Pattern object that matches an octal integer that starts with a 0 and is followed by 1 or more [0 - 7] characters. A Java octal is always at least two characters long.
      • DEC_INTEGER_PATTERN

        public static final Pattern DEC_INTEGER_PATTERN
        A Pattern object that matches a decimal integer, which is either '0' or starts with a non-zero digit and is followed by 0 or more digits.
      • DEC_INTEGER

        public static final Parser<java.lang.String> DEC_INTEGER
        Scanner for a decimal number. single character '0' is an integer literal
        See Also:
        Java Language Specification
      • OCT_INTEGER

        public static final Parser<java.lang.String> OCT_INTEGER
        Scanner for a octal number. 0 is the leading digit.
    • Constructor Detail

      • JavaScanners

        private JavaScanners()