EnumDefinition

@Serializable
data class EnumDefinition(val type: String, val kind: Int, val name: String? = null, val required: Boolean? = false, val comment: String? = null, val constants: List<String>? = null) : IGenericDefinition, WithComment

Represents an enumeration definition in a Wrap ABI.

Constructors

Link copied to clipboard
constructor(type: String, kind: Int, name: String? = null, required: Boolean? = false, comment: String? = null, constants: List<String>? = null)

Properties

Link copied to clipboard
open override val comment: String? = null

An optional comment for the enumeration definition.

Link copied to clipboard
val constants: List<String>? = null

The list of constant values defined by the enumeration.

Link copied to clipboard
open override val kind: Int

The kind of the enumeration definition.

Link copied to clipboard
open override val name: String? = null

The name of the enumeration definition, if any.

Link copied to clipboard
open override val required: Boolean? = false

A flag indicating if the enumeration definition is required.

Link copied to clipboard
open override val type: String

The type of the enumeration definition.