MutableConstructorReference

Represents a declared constructor for a particular class.

This representation is mutable, to allow changing properties of the constructor.

Properties

Link copied to clipboard
open override var annotations: List<AnnotationInstance>

The set of annotations applied to this member definition.

Link copied to clipboard
val constructorMetadata: KmConstructor?
Link copied to clipboard
open override var modifiers: Set<Modifier>

The set of modifiers applied to the member definition.

Link copied to clipboard
open override val name: String

The member name.

Link copied to clipboard
open override val parameters: List<MutableParameter>

The MutableParameter arguments that this constructor must be invoked with.

Link copied to clipboard
open override val signature: Signature

The JVM constructor signature.

Link copied to clipboard
open override val type: ClassReference

The type that is instantiated by this constructor.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Removes bytecode stored to describe this constructor's implementation.

Link copied to clipboard
fun setParameter(index: Int, parameter: NewParameter)

Replaces an individual parameter argument.

Link copied to clipboard
fun setParameters(vararg parameters: NewParameter)
fun setParameters(parameters: List<NewParameter>)

Updates the list of all parameter arguments that this constructor must be invoked with.

Link copied to clipboard
open override fun toString(): String