Package org.jparsec

Class TokenizerMaps


  • final class TokenizerMaps
    extends java.lang.Object
    Common Function implementations that maps from String.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.util.function.Function<java.lang.String,​java.lang.Long> DEC_AS_LONG
      A Function that interprets the recognized character range as a decimal integer and tokenizes to a Long.
      (package private) static java.util.function.Function<java.lang.String,​Tokens.Fragment> DECIMAL_FRAGMENT
      A Function that returns a Tokens.Fragment tagged as Tokens.Tag.DECIMAL.
      (package private) static java.util.function.Function<java.lang.String,​java.lang.String> DOUBLE_QUOTE_STRING
      A Function that recognizes a string literal quoted by double quote character (") and tokenizes to a String.
      (package private) static java.util.function.Function<java.lang.String,​java.lang.Long> HEX_AS_LONG
      A Function that interprets the recognized character range as a hexadecimal integer and tokenizes to a Long.
      (package private) static java.util.function.Function<java.lang.String,​Tokens.Fragment> IDENTIFIER_FRAGMENT
      A Function that returns a Tokens.Fragment tagged as Tokens.Tag.IDENTIFIER.
      (package private) static java.util.function.Function<java.lang.String,​Tokens.Fragment> INTEGER_FRAGMENT
      A Function that returns a Tokens.Fragment tagged as Tokens.Tag.INTEGER.
      (package private) static java.util.function.Function<java.lang.String,​java.lang.Long> OCT_AS_LONG
      A Function that interprets the recognized character range as a octal integer and tokenizes to a Long.
      (package private) static java.util.function.Function<java.lang.String,​Tokens.Fragment> RESERVED_FRAGMENT
      A Function that returns a Tokens.Fragment tagged as Tokens.Tag.RESERVED.
      (package private) static java.util.function.Function<java.lang.String,​Tokens.ScientificNotation> SCIENTIFIC_NOTATION
      A Function that recognizes a scientific notation and tokenizes to a Tokens.ScientificNotation.
      (package private) static java.util.function.Function<java.lang.String,​java.lang.Character> SINGLE_QUOTE_CHAR
      A Function that recognizes a character literal quoted by single quote characte (' and tokenizes to a Character.
      (package private) static java.util.function.Function<java.lang.String,​java.lang.String> SINGLE_QUOTE_STRING
      A Function that tokenizes a SQL style string literal quoted by single quote character (') and tokenizes to a String.
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenizerMaps()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.util.function.Function<java.lang.String,​Tokens.Fragment> fragment​(java.lang.Object tag)
      Returns a map that tokenizes the recognized character range to a Tokens.Fragment object tagged with tag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DOUBLE_QUOTE_STRING

        static final java.util.function.Function<java.lang.String,​java.lang.String> DOUBLE_QUOTE_STRING
        A Function that recognizes a string literal quoted by double quote character (") and tokenizes to a String. The backslash character (\) is interpreted as escape.
      • SINGLE_QUOTE_STRING

        static final java.util.function.Function<java.lang.String,​java.lang.String> SINGLE_QUOTE_STRING
        A Function that tokenizes a SQL style string literal quoted by single quote character (') and tokenizes to a String. Two adjacent single quote characters ('') are escaped as one single quote character.
      • SINGLE_QUOTE_CHAR

        static final java.util.function.Function<java.lang.String,​java.lang.Character> SINGLE_QUOTE_CHAR
        A Function that recognizes a character literal quoted by single quote characte (' and tokenizes to a Character. The backslash character (\) is interpreted as escape.
      • DEC_AS_LONG

        static final java.util.function.Function<java.lang.String,​java.lang.Long> DEC_AS_LONG
        A Function that interprets the recognized character range as a decimal integer and tokenizes to a Long.
      • OCT_AS_LONG

        static final java.util.function.Function<java.lang.String,​java.lang.Long> OCT_AS_LONG
        A Function that interprets the recognized character range as a octal integer and tokenizes to a Long.
      • HEX_AS_LONG

        static final java.util.function.Function<java.lang.String,​java.lang.Long> HEX_AS_LONG
        A Function that interprets the recognized character range as a hexadecimal integer and tokenizes to a Long.
    • Constructor Detail

      • TokenizerMaps

        TokenizerMaps()
    • Method Detail

      • fragment

        static java.util.function.Function<java.lang.String,​Tokens.Fragment> fragment​(java.lang.Object tag)
        Returns a map that tokenizes the recognized character range to a Tokens.Fragment object tagged with tag.