org.codehaus.jparsec.examples.java.parser
Class JavaScanners

java.lang.Object
  extended by org.codehaus.jparsec.examples.java.parser.JavaScanners

public class JavaScanners
extends Object


Field Summary
static Parser<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<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.
 
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<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<String> OCT_INTEGER
Scanner for a octal number. 0 is the leading digit.



Copyright © 2014. All rights reserved.