ImmutableKmEffect

Immutable representation of KmEffect.

Represents an effect (a part of the contract of a Kotlin function).

Contracts are an internal feature of the standard Kotlin library, and their behavior and/or binary format may change in a subsequent release.

data class ImmutableKmEffect

Functions

component1
Link copied to clipboard
operator fun component1(): KmEffectType
component2
Link copied to clipboard
operator fun component2(): KmEffectInvocationKind?
component3
Link copied to clipboard
operator fun component3(): List<ImmutableKmEffectExpression>
component4
Link copied to clipboard
operator fun component4(): ImmutableKmEffectExpression?
copy
Link copied to clipboard
fun copy(type: KmEffectType, invocationKind: KmEffectInvocationKind?, constructorArguments: List<ImmutableKmEffectExpression>, conclusion: ImmutableKmEffectExpression?): ImmutableKmEffect
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(): KmEffect
toString
Link copied to clipboard
open override fun toString(): String

Properties

conclusion
Link copied to clipboard

Conclusion of the effect. If this value is set, the effect represents an implication with this value as the right-hand side.

val conclusion: ImmutableKmEffectExpression?
constructorArguments
Link copied to clipboard

Arguments of the effect constructor, i.e. the constant value for the KmEffectType.RETURNS_CONSTANT effect, or the parameter reference for the KmEffectType.CALLS effect.

val constructorArguments: List<ImmutableKmEffectExpression>
invocationKind
Link copied to clipboard

Optional number of invocations of the lambda parameter of this function, specified further in the effect expression.

val invocationKind: KmEffectInvocationKind?
type
Link copied to clipboard

Type of the effect

val type: KmEffectType