Package oracle.dbtools.plugin.api.json
Enum Class JSONToken.Type
- All Implemented Interfaces:
Serializable,Comparable<JSONToken.Type>,Constable
- Enclosing interface:
- JSONToken
Enumerates the different kinds of tokens that occur in a JSON stream
- Author:
- cdivilly
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAtrueorfalsevalue.The end of an array, denoted by the]character.The end of an object, denoted by the}character.A null value, represented by thenulltoken.A numeric value, starts with a digit, contains only digits or the period character and is not quoted.The name of a property, can be any string, the value is quoted and escaped.The start of an array denoted by the[character.The start of an object denoted by the{character.A textual value, can be any string, the value is quoted and escaped. -
Method Summary
Modifier and TypeMethodDescriptionstatic JSONToken.TypeReturns the enum constant of this class with the specified name.static JSONToken.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN_VALUE
Atrueorfalsevalue. -
END_ARRAY
The end of an array, denoted by the]character. -
END_OBJECT
The end of an object, denoted by the}character. -
NULL_VALUE
A null value, represented by thenulltoken. -
NUMERIC_VALUE
A numeric value, starts with a digit, contains only digits or the period character and is not quoted. -
PROPERTY_NAME
The name of a property, can be any string, the value is quoted and escaped. It is followed by the:character. -
START_ARRAY
The start of an array denoted by the[character. -
START_OBJECT
The start of an object denoted by the{character. -
STRING_VALUE
A textual value, can be any string, the value is quoted and escaped.
-
-
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
-