ImmutableKmPackage

Immutable representation of KmPackage.

Represents a Kotlin package fragment, including single file facades and multi-file class parts.

data class ImmutableKmPackage : ImmutableKmDeclarationContainer

Functions

component1
Link copied to clipboard
operator fun component1(): List<ImmutableKmFunction>
component2
Link copied to clipboard
operator fun component2(): List<ImmutableKmProperty>
component3
Link copied to clipboard
operator fun component3(): List<ImmutableKmTypeAlias>
component4
Link copied to clipboard
operator fun component4(): List<ImmutableKmProperty>
component5
Link copied to clipboard
operator fun component5(): String?
copy
Link copied to clipboard
fun copy(functions: List<ImmutableKmFunction>, properties: List<ImmutableKmProperty>, typeAliases: List<ImmutableKmTypeAlias>, localDelegatedProperties: List<ImmutableKmProperty>, moduleName: String?): ImmutableKmPackage
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(): KmPackage
toString
Link copied to clipboard
open override fun toString(): String

Properties

functions
Link copied to clipboard

Functions in the package fragment.

open override val functions: List<ImmutableKmFunction>
localDelegatedProperties
Link copied to clipboard

Metadata of local delegated properties used somewhere inside this package fragment (but not in any class). Note that for classes produced by the Kotlin compiler, such properties will have default accessors.

The order of local delegated properties in this list is important. The Kotlin compiler generates the corresponding property's index at the call site, so that reflection would be able to load the metadata of the property with that index at runtime. If an incorrect index is used, either the KProperty<*> object passed to delegate methods will point to the wrong property at runtime, or an exception will be thrown.

val localDelegatedProperties: List<ImmutableKmProperty>
moduleName
Link copied to clipboard

Name of the module where this class is declared.

val moduleName: String?
properties
Link copied to clipboard

Properties in the package fragment.

open override val properties: List<ImmutableKmProperty>
typeAliases
Link copied to clipboard

TypeAliases in the package fragment.

open override val typeAliases: List<ImmutableKmTypeAlias>