Package org.jparsec.examples.java.parser
Class JavaScanners
- java.lang.Object
-
- org.jparsec.examples.java.parser.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
APattern
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
APattern
object that matches an octal integer that starts with a0
and is followed by 1 or more[0 - 7]
characters.
-
Constructor Summary
Constructors Modifier Constructor Description private
JavaScanners()
-
-
-
Field Detail
-
OCT_INTEGER_PATTERN
public static final Pattern OCT_INTEGER_PATTERN
APattern
object that matches an octal integer that starts with a0
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
APattern
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.
-
-