ICustomValueFactory

A factory interface for creating CustomValues.

Functions

Link copied to clipboard
@NotNull
abstract fun createArray(@NotNull values: Array<@NotNull CustomValue>): @NotNull CustomValue
Creates a custom value of type ARRAY.
Link copied to clipboard
@NotNull
abstract fun createBoolean(value: Boolean): @NotNull CustomValue
Creates a custom value of type BOOLEAN.
Link copied to clipboard
@NotNull
abstract fun createNumber(@NotNull value: @NotNull Number): @NotNull CustomValue
Creates a custom value of type NUMBER.
Link copied to clipboard
@NotNull
abstract fun createObject(@NotNull obj: @NotNull Map<String, CustomValue>): @NotNull CustomValue
Creates a custom value of type OBJECT.
Link copied to clipboard
@NotNull
abstract fun createString(@NotNull value: @NotNull String): @NotNull CustomValue
Creates a custom value of type STRING.
Link copied to clipboard
@NotNull
abstract fun getNull(): @NotNull CustomValue
Gets the representation of NULL.