ImmutableKmClass

Immutable representation of KmClass.

Represents a Kotlin class.

Functions

component1
Link copied to clipboard
operator fun component1(): Flags
component10
Link copied to clipboard
operator fun component10(): List<String>
component11
Link copied to clipboard
operator fun component11(): List<String>
component12
Link copied to clipboard
operator fun component12(): List<ClassName>
component13
Link copied to clipboard
operator fun component13(): List<ImmutableKmVersionRequirement>
component14
Link copied to clipboard
operator fun component14(): List<ImmutableKmProperty>
component15
Link copied to clipboard
operator fun component15(): String?
component16
Link copied to clipboard
operator fun component16(): String?
component2
Link copied to clipboard
operator fun component2(): ClassName
component3
Link copied to clipboard
operator fun component3(): List<ImmutableKmTypeParameter>
component4
Link copied to clipboard
operator fun component4(): List<ImmutableKmType>
component5
Link copied to clipboard
operator fun component5(): List<ImmutableKmFunction>
component6
Link copied to clipboard
operator fun component6(): List<ImmutableKmProperty>
component7
Link copied to clipboard
operator fun component7(): List<ImmutableKmTypeAlias>
component8
Link copied to clipboard
operator fun component8(): List<ImmutableKmConstructor>
component9
Link copied to clipboard
operator fun component9(): String?
copy
Link copied to clipboard
fun copy(flags: Flags, name: ClassName, typeParameters: List<ImmutableKmTypeParameter>, supertypes: List<ImmutableKmType>, functions: List<ImmutableKmFunction>, properties: List<ImmutableKmProperty>, typeAliases: List<ImmutableKmTypeAlias>, constructors: List<ImmutableKmConstructor>, companionObject: String?, nestedClasses: List<String>, enumEntries: List<String>, sealedSubclasses: List<ClassName>, versionRequirements: List<ImmutableKmVersionRequirement>, localDelegatedProperties: List<ImmutableKmProperty>, moduleName: String?, anonymousObjectOriginName: String?): ImmutableKmClass
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toMutable
Link copied to clipboard
fun toMutable(): KmClass
toString
Link copied to clipboard
open override fun toString(): String

Properties

anonymousObjectOriginName
Link copied to clipboard
val anonymousObjectOriginName: String?
JVM internal name of the original class this anonymous object is copied from.
companionObject
Link copied to clipboard
val companionObject: String?
Name of the companion object of this class, if it has one.
constructors
Link copied to clipboard
val constructors: List<ImmutableKmConstructor>
Constructors of the class.
enumEntries
Link copied to clipboard
val enumEntries: List<String>
Names of enum entries, if this class is an enum class.
flags
Link copied to clipboard
open override val flags: Flags
Class flags, consisting of Flag.HAS_ANNOTATIONS, visibility flag, modality flag and Flag.Class flags.
functions
Link copied to clipboard
open override val functions: List<ImmutableKmFunction>
Functions in the class.
localDelegatedProperties
Link copied to clipboard
val localDelegatedProperties: List<ImmutableKmProperty>
Metadata of local delegated properties used somewhere inside this class (but not in a nested class).
moduleName
Link copied to clipboard
val moduleName: String?
Name of the module where this class is declared.
name
Link copied to clipboard
val name: ClassName
Name of the class.
nestedClasses
Link copied to clipboard
val nestedClasses: List<String>
Names of nested classes of this class.
properties
Link copied to clipboard
open override val properties: List<ImmutableKmProperty>
Properties in the class.
sealedSubclasses
Link copied to clipboard
val sealedSubclasses: List<ClassName>
Names of direct subclasses of this class, if this class is sealed.
supertypes
Link copied to clipboard
val supertypes: List<ImmutableKmType>
Supertypes of the class.
typeAliases
Link copied to clipboard
open override val typeAliases: List<ImmutableKmTypeAlias>
Type aliases in the class.
typeParameters
Link copied to clipboard
val typeParameters: List<ImmutableKmTypeParameter>
Type parameters of the class.
versionRequirements
Link copied to clipboard
val versionRequirements: List<ImmutableKmVersionRequirement>
Version requirements on this class.

Extensions

isAnnotation
Link copied to clipboard
val ImmutableKmClass.isAnnotation: Boolean
isClass
Link copied to clipboard
val ImmutableKmClass.isClass: Boolean
isCompanionObject
Link copied to clipboard
val ImmutableKmClass.isCompanionObject: Boolean
isData
Link copied to clipboard
val ImmutableKmClass.isData: Boolean
isEnum
Link copied to clipboard
val ImmutableKmClass.isEnum: Boolean
isEnumEntry
Link copied to clipboard
val ImmutableKmClass.isEnumEntry: Boolean
isExpect
Link copied to clipboard
val ImmutableKmClass.isExpect: Boolean
isExternal
Link copied to clipboard
val ImmutableKmClass.isExternal: Boolean
isFun
Link copied to clipboard
val ImmutableKmClass.isFun: Boolean
isInline
Link copied to clipboard
val ImmutableKmClass.isInline: Boolean
isInner
Link copied to clipboard
val ImmutableKmClass.isInner: Boolean
isInterface
Link copied to clipboard
val ImmutableKmClass.isInterface: Boolean
isObject
Link copied to clipboard
val ImmutableKmClass.isObject: Boolean