Enum JsonLexer.Type

    • 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​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null