A2uiJsonToken


enum A2uiJsonToken : Enum


Identifies the type of the next JSON token.

Summary

Enum Values

BEGIN_ARRAY

Indicates the start of a JSON array.

BEGIN_OBJECT

Indicates the start of a JSON object.

BOOLEAN

Indicates a JSON boolean value.

END_ARRAY

Indicates the end of a JSON array.

END_DOCUMENT

Indicates the end of the JSON document.

END_OBJECT

Indicates the end of a JSON object.

NAME

Indicates a JSON property name.

NULL

Indicates a JSON null literal.

NUMBER

Indicates a JSON numeric value.

STRING

Indicates a JSON string value.

Public functions

A2uiJsonToken
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<A2uiJsonToken>

Returns an array containing the constants of this enum type, in the order they're declared.

Public properties

EnumEntries<A2uiJsonToken>

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Enum Values

BEGIN_ARRAY

val A2uiJsonToken.BEGIN_ARRAYA2uiJsonToken

Indicates the start of a JSON array.

BEGIN_OBJECT

val A2uiJsonToken.BEGIN_OBJECTA2uiJsonToken

Indicates the start of a JSON object.

BOOLEAN

val A2uiJsonToken.BOOLEANA2uiJsonToken

Indicates a JSON boolean value.

END_ARRAY

val A2uiJsonToken.END_ARRAYA2uiJsonToken

Indicates the end of a JSON array.

END_DOCUMENT

val A2uiJsonToken.END_DOCUMENTA2uiJsonToken

Indicates the end of the JSON document.

END_OBJECT

val A2uiJsonToken.END_OBJECTA2uiJsonToken

Indicates the end of a JSON object.

NAME

val A2uiJsonToken.NAMEA2uiJsonToken

Indicates a JSON property name.

NULL

val A2uiJsonToken.NULLA2uiJsonToken

Indicates a JSON null literal.

NUMBER

val A2uiJsonToken.NUMBERA2uiJsonToken

Indicates a JSON numeric value.

STRING

val A2uiJsonToken.STRINGA2uiJsonToken

Indicates a JSON string value.

Public functions

valueOf

Added in 1.0.0-alpha01
fun valueOf(value: String): A2uiJsonToken

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.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 1.0.0-alpha01
fun values(): Array<A2uiJsonToken>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using entries property as a more efficient alternative returning an immutable list of enum entries.

Public properties

entries

val entriesEnumEntries<A2uiJsonToken>

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.