Package org.jparsec

Class Terminals.LongLiteral

java.lang.Object
org.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 Details

    • 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.
  • Constructor Details

    • LongLiteral

      private LongLiteral()