ImmutableKmConstructor

Immutable representation of KmConstructor.

Represents a constructor of a Kotlin class.

data class ImmutableKmConstructor : ImmutableKmWithFlags

Functions

component1
Link copied to clipboard
operator fun component1(): Flags
component2
Link copied to clipboard
operator fun component2(): List<ImmutableKmValueParameter>
component3
Link copied to clipboard
operator fun component3(): List<ImmutableKmVersionRequirement>
component4
Link copied to clipboard
operator fun component4(): JvmMethodSignature?
copy
Link copied to clipboard
fun copy(flags: Flags, valueParameters: List<ImmutableKmValueParameter>, versionRequirements: List<ImmutableKmVersionRequirement>, signature: JvmMethodSignature?): ImmutableKmConstructor
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(): KmConstructor
toString
Link copied to clipboard
open override fun toString(): String

Properties

flags
Link copied to clipboard

Constructor flags, consisting of Flag.HAS_ANNOTATIONS, visibility flag and Flag.Constructor flags.

open override val flags: Flags
signature
Link copied to clipboard

JVM signature of the constructor, or null if the JVM signature of this constructor is unknown.

Example: JvmMethodSignature("<init>", "(Ljava/lang/Object;)V").

val signature: JvmMethodSignature?
valueParameters
Link copied to clipboard

Value parameters of the constructor.

val valueParameters: List<ImmutableKmValueParameter>
versionRequirements
Link copied to clipboard

Version requirements on the constructor.

val versionRequirements: List<ImmutableKmVersionRequirement>

Extensions

isPrimary
Link copied to clipboard
val ImmutableKmConstructor.isPrimary: Boolean
isSecondary
Link copied to clipboard
val ImmutableKmConstructor.isSecondary: Boolean