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

SealedSubClass

data class SealedSubClass : SubClass

Constructors

<init>

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

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>

parent

val parent: Class

representatives

val representatives: ArrayList<out SubClass>

sourceFolder

Source folder, the type belongs to

val sourceFolder: String

Extension Functions

fullName

fun Identifier.fullName(): String

generic

fun Type.generic(): Type

genericIn

fun Type.genericIn(type: VaryingType): Type

notGeneric

fun Type.notGeneric(): Type

vary

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