Package org.jparsec
Class Terminals.LongLiteral
java.lang.Object
org.jparsec.Terminals.LongLiteral
- Enclosing class:
Terminals
Entry point for parser and tokenizers of integral number literal represented as
Long
.-
Field Summary
FieldsModifier and TypeFieldDescriptionA tokenizer that parses a decimal integer number (valid patterns are:1, 10, 123
), and converts the string to aLong
value.A tokenizer that parses a hex integer number (valid patterns are:0x1, 0Xff, 0xFe1
etc.), and converts the string to aLong
value.A tokenizer that parses a octal integer number (valid patterns are:0, 07, 017, 0371
etc.), and converts the string to aLong
value.A tokenizer that parses decimal, hex, and octal numbers and converts the string to aLong
value. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PARSER
-
DEC_TOKENIZER
A tokenizer that parses a decimal integer number (valid patterns are:1, 10, 123
), and converts the string to aLong
value. -
OCT_TOKENIZER
A tokenizer that parses a octal integer number (valid patterns are:0, 07, 017, 0371
etc.), and converts the string to aLong
value.An octal number has to start with 0.
-
HEX_TOKENIZER
A tokenizer that parses a hex integer number (valid patterns are:0x1, 0Xff, 0xFe1
etc.), and converts the string to aLong
value.A hex number has to start with either 0x or 0X.
-
TOKENIZER
A tokenizer that parses decimal, hex, and octal numbers and converts the string to aLong
value.
-
-
Constructor Details
-
LongLiteral
private LongLiteral()
-