Enum JSONParserState
- java.lang.Object
-
- java.lang.Enum<JSONParserState>
-
- com.dynatrace.openkit.util.json.parser.JSONParserState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JSONParserState>
public enum JSONParserState extends java.lang.Enum<JSONParserState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENDERRORIN_ARRAY_DELIMITERIN_ARRAY_STARTIN_ARRAY_VALUEIN_OBJECT_COLONIN_OBJECT_DELIMITERIN_OBJECT_KEYIN_OBJECT_STARTIN_OBJECT_VALUEINIT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JSONParserStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JSONParserState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INIT
public static final JSONParserState INIT
-
IN_ARRAY_START
public static final JSONParserState IN_ARRAY_START
-
IN_ARRAY_VALUE
public static final JSONParserState IN_ARRAY_VALUE
-
IN_ARRAY_DELIMITER
public static final JSONParserState IN_ARRAY_DELIMITER
-
IN_OBJECT_START
public static final JSONParserState IN_OBJECT_START
-
IN_OBJECT_KEY
public static final JSONParserState IN_OBJECT_KEY
-
IN_OBJECT_COLON
public static final JSONParserState IN_OBJECT_COLON
-
IN_OBJECT_VALUE
public static final JSONParserState IN_OBJECT_VALUE
-
IN_OBJECT_DELIMITER
public static final JSONParserState IN_OBJECT_DELIMITER
-
END
public static final JSONParserState END
-
ERROR
public static final JSONParserState ERROR
-
-
Method Detail
-
values
public static JSONParserState[] 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 (JSONParserState c : JSONParserState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JSONParserState 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 namejava.lang.NullPointerException- if the argument is null
-
-