kotlin-algebraic-types-plugin / org.drx.plugin.algebraictypes.extension.optics.try1 / SealedClass

SealedClass

data class SealedClass : Class

Constructors

<init>

SealedClass(name: String, packageName: String, sourceFolder: String, parameters: ArrayList<Parameter>, dependencies: ArrayList<Type>, isGeneric: IsGeneric, isSerializable: IsSerializable, comment: ArrayList<String>, representatives: ArrayList<SubClass>)

Properties

comment

val comment: ArrayList<String>

dependencies

Dependencies of the type

val dependencies: ArrayList<Type>

isGeneric

The type is generic?

val isGeneric: IsGeneric

isSerializable

The type is serializable?

val isSerializable: IsSerializable

name

Type name

val name: String

packageName

Package, the type belongs to

val packageName: String

parameters

Constructor

val parameters: ArrayList<Parameter>

representatives

val representatives: ArrayList<SubClass>

sourceFolder

Source folder, the type belongs to

val sourceFolder: String

Extension Functions

dataRepresentative

fun SealedClass.dataRepresentative(representative: DataSubClassConfiguration.() -> Unit): Unit

fullName

fun Identifier.fullName(): String

generic

fun Type.generic(): Type

genericIn

fun Type.genericIn(type: VaryingType): Type

notGeneric

fun Type.notGeneric(): Type

sealedRepresentative

DSLfun SealedClass.sealedRepresentative(representative: SealedSubClassConfiguration.() -> Unit): Unit

vary

fun Type.vary(variance: TypeVariance = TypeVariance.No): VaryingType