org.codehaus.jparsec
Class Terminals.LongLiteral

java.lang.Object
  extended by org.codehaus.jparsec.Terminals.LongLiteral
Enclosing class:
Terminals

public static final class Terminals.LongLiteral
extends Object

Entry point for parser and tokenizers of integral number literal represented as Long.


Field Summary
static Parser<Long> DEC_TOKENIZER
          A tokenizer that parses a decimal integer number (valid patterns are: 1, 10, 123), and converts the string to a Long value.
static Parser<Long> HEX_TOKENIZER
          A tokenizer that parses a hex integer number (valid patterns are: 0x1, 0Xff, 0xFe1 etc.), and converts the string to a Long value.
static Parser<Long> OCT_TOKENIZER
          A tokenizer that parses a octal integer number (valid patterns are: 0, 07, 017, 0371 etc.), and converts the string to a Long value.
static Parser<Long> PARSER
          Parser that recognizes Long tokens.
static Parser<Long> TOKENIZER
          A tokenizer that parses decimal, hex, and octal numbers and converts the string to a Long value.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARSER

public static final Parser<Long> PARSER
Parser that recognizes Long tokens.


DEC_TOKENIZER

public static final Parser<Long> DEC_TOKENIZER
A tokenizer that parses a decimal integer number (valid patterns are: 1, 10, 123), and converts the string to a Long value.


OCT_TOKENIZER

public static final Parser<Long> OCT_TOKENIZER
A tokenizer that parses a octal integer number (valid patterns are: 0, 07, 017, 0371 etc.), and converts the string to a Long value.

An octal number has to start with 0.


HEX_TOKENIZER

public static final Parser<Long> HEX_TOKENIZER
A tokenizer that parses a hex integer number (valid patterns are: 0x1, 0Xff, 0xFe1 etc.), and converts the string to a Long value.

A hex number has to start with either 0x or 0X.


TOKENIZER

public static final Parser<Long> TOKENIZER
A tokenizer that parses decimal, hex, and octal numbers and converts the string to a Long value.



Copyright © 2014. All rights reserved.