KmEffectType

Type of 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.

Entries

Link copied to clipboard

Represents returns(value) contract effect: a situation when a function returns normally with the specified return value. Return value is stored in the KmEffect.constructorArguments.

Link copied to clipboard

Represents callsInPlace contract effect: A situation when the referenced lambda is invoked in place (optionally) specified number of times.

Link copied to clipboard

Represents returnsNotNull contract effect: a situation when a function returns normally with any value that is not null.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.