org.xerial.json
Enum JSONEvent
java.lang.Object
java.lang.Enum<JSONEvent>
org.xerial.json.JSONEvent
- All Implemented Interfaces:
- Serializable, Comparable<JSONEvent>
public enum JSONEvent
- extends Enum<JSONEvent>
|
Method Summary |
static JSONEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JSONEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
EndJSON
public static final JSONEvent EndJSON
StartObject
public static final JSONEvent StartObject
EndObject
public static final JSONEvent EndObject
StartArray
public static final JSONEvent StartArray
EndArray
public static final JSONEvent EndArray
String
public static final JSONEvent String
Integer
public static final JSONEvent Integer
Double
public static final JSONEvent Double
Boolean
public static final JSONEvent Boolean
Null
public static final JSONEvent Null
values
public static JSONEvent[] 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 (JSONEvent c : JSONEvent.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JSONEvent 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

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.