Modifier and Type | Field and Description |
---|---|
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
|
static Parser<Long> |
TOKENIZER
A tokenizer that parses decimal, hex, and octal numbers and converts the string to a
Long value. |
public static final Parser<Long> DEC_TOKENIZER
1, 10, 123
),
and converts the string to a Long
value.public static final Parser<Long> OCT_TOKENIZER
0, 07, 017, 0371
etc.), and converts the string to a Long
value.
An octal number has to start with 0.
public static final Parser<Long> HEX_TOKENIZER
0x1, 0Xff, 0xFe1
etc.), and converts the string to a Long
value.
A hex number has to start with either 0x or 0X.
Copyright © 2013–2016 jparsec. All rights reserved.