struct VariantInfo
source · line 175public
public struct VariantInfo(val id: VariantRef, val owner: TypeRef, val name: String, val annotations: Array<AnnotationInfo>, val index: Long, val payload: VariantPayload, val constructor: ConstructorInfo)
Describes a payload enum variant, its declaration order, fields, annotations, and constructor.
field annotations
source · line 179public
val annotations: Array<AnnotationInfo>
field id
source · line 176public
val id: VariantRef
field name
source · line 178public
val name: String
field constructor
source · line 182public
val constructor: ConstructorInfo
field owner
source · line 177public
val owner: TypeRef
constructor constructor
source · line 175public
constructor(val id: VariantRef, val owner: TypeRef, val name: String, val annotations: Array<AnnotationInfo>, val index: Long, val payload: VariantPayload, val constructor: ConstructorInfo)
parameter name
source · line 178public
val name: String
parameter owner
source · line 177public
val owner: TypeRef
parameter id
source · line 176public
val id: VariantRef
parameter payload
source · line 181public
val payload: VariantPayload
parameter index
source · line 180public
val index: Long
parameter annotations
source · line 179public
val annotations: Array<AnnotationInfo>
parameter constructor
source · line 182public
val constructor: ConstructorInfo
field index
source · line 180public
val index: Long
field payload
source · line 181public
val payload: VariantPayload
function equals
source · line 175publiccompiler-derived
operator fun equals(other: VariantInfo): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: VariantRef, TypeRef, String, Array<AnnotationInfo>, Long, VariantPayload, ConstructorInfo.