Package uk.blankaspect.common.json
Enum Class JsonText.Token
- All Implemented Interfaces:
Serializable
,Comparable<JsonText.Token>
,Constable
- Enclosing class:
JsonText
This is an enumeration of the tokens that may be associated with elements of JSON text.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe start or end delimiter of a JSON array.A JSON Boolean value.The separator between adjacent elements of a JSON array or adjacent members of a JSON object.A line-feed character (U+000A).A JSON null value.A JSON number value.The start or end delimiter of a JSON object.The name of a member of a JSON object.The separator between the name and value of a member of a JSON object.A sequence of space characters (U+0020).A JSON string value. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonText.Token
Returns the enum constant of this class with the specified name.static JsonText.Token[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL_VALUE
A JSON null value. -
BOOLEAN_VALUE
A JSON Boolean value. -
NUMBER_VALUE
A JSON number value. -
STRING_VALUE
A JSON string value. -
ARRAY_DELIMITER
The start or end delimiter of a JSON array. -
OBJECT_MEMBER_NAME
The name of a member of a JSON object. -
OBJECT_NAME_VALUE_SEPARATOR
The separator between the name and value of a member of a JSON object. -
OBJECT_DELIMITER
The start or end delimiter of a JSON object. -
ITEM_SEPARATOR
The separator between adjacent elements of a JSON array or adjacent members of a JSON object. -
SPACE
A sequence of space characters (U+0020). -
NEW_LINE
A line-feed character (U+000A).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-