Enum JsonLexer.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<JsonLexer.Type>
    Enclosing class:
    JsonLexer

    public static enum JsonLexer.Type
    extends java.lang.Enum<JsonLexer.Type>
    Token types
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      COLON
      The lexer has encountered a colon (most likely between a name and a value)
      COMMA
      The lexer has encountered a comma (most likely between a name-value pairs in objects or values in arrays)
      END_ARRAY
      The lexer has encountered the end of an array
      END_OBJECT
      The lexer has encountered the end of an object
      FALSE
      The lexer has encountered a 'false' literal
      NULL
      The lexer has encountered a 'null' literal
      NUMBER
      The lexer has encountered a number value
      START_ARRAY
      The lexer has encountered the start of an array
      START_OBJECT
      The lexer has encountered the start of an object
      STRING
      The lexer has encountered a string value
      TRUE
      The lexer has encountered a 'true' literal
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static JsonLexer.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static JsonLexer.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • START_OBJECT

        public static final JsonLexer.Type START_OBJECT
        The lexer has encountered the start of an object
      • START_ARRAY

        public static final JsonLexer.Type START_ARRAY
        The lexer has encountered the start of an array
      • END_OBJECT

        public static final JsonLexer.Type END_OBJECT
        The lexer has encountered the end of an object
      • END_ARRAY

        public static final JsonLexer.Type END_ARRAY
        The lexer has encountered the end of an array
      • COLON

        public static final JsonLexer.Type COLON
        The lexer has encountered a colon (most likely between a name and a value)
      • COMMA

        public static final JsonLexer.Type COMMA
        The lexer has encountered a comma (most likely between a name-value pairs in objects or values in arrays)
      • STRING

        public static final JsonLexer.Type STRING
        The lexer has encountered a string value
      • NUMBER

        public static final JsonLexer.Type NUMBER
        The lexer has encountered a number value
      • TRUE

        public static final JsonLexer.Type TRUE
        The lexer has encountered a 'true' literal
      • FALSE

        public static final JsonLexer.Type FALSE
        The lexer has encountered a 'false' literal
      • NULL

        public static final JsonLexer.Type NULL
        The lexer has encountered a 'null' literal
    • Method Detail

      • values

        public static JsonLexer.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JsonLexer.Type c : JsonLexer.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JsonLexer.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null