public enum JSONEventType extends Enum<JSONEventType>
Enum Constant and Description |
---|
BOOLEAN
JSON true or false
|
COMMENT
Single line or Multi line comment.
|
END_ARRAY
Ends JSON array.
|
END_OBJECT
Ends JSON object.
|
NAME
JSON object name.
|
NULL
JSON null
|
NUMBER
JSON number.
|
START_ARRAY
Starts JSON array.
|
START_OBJECT
Starts JSON object.
|
STRING
JSON string.
|
WHITESPACE
White spaces
|
Modifier and Type | Method and Description |
---|---|
static JSONEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSONEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONEventType START_OBJECT
public static final JSONEventType END_OBJECT
public static final JSONEventType START_ARRAY
public static final JSONEventType END_ARRAY
public static final JSONEventType NAME
public static final JSONEventType STRING
public static final JSONEventType NUMBER
public static final JSONEventType BOOLEAN
public static final JSONEventType NULL
public static final JSONEventType WHITESPACE
public static final JSONEventType COMMENT
public static JSONEventType[] values()
for (JSONEventType c : JSONEventType.values()) System.out.println(c);
public static JSONEventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.