ImmutableKmClass

Immutable representation of KmClass.

Represents a Kotlin class.

Functions

toMutable
Link copied to clipboard
fun toMutable(): KmClass

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
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
isValue
Link copied to clipboard
val ImmutableKmClass.isValue: Boolean