Skip to content

KaBuiltinTypes

Constructors

KaBuiltinTypes

constructor()

Properties

annotationType

abstract override val annotationType: KaType

The Annotation type.

any

abstract override val any: KaType

The Any class type.

boolean

abstract override val boolean: KaType

The Boolean class type.

byte

abstract override val byte: KaType

The Byte class type.

char

abstract override val char: KaType

The Char class type.

double

abstract override val double: KaType

The Double class type.

float

abstract override val float: KaType

The Float class type.

int

abstract override val int: KaType

The Int class type.

long

abstract override val long: KaType

The Long class type.

nothing

abstract override val nothing: KaType

The Nothing class type.

nullableAny

abstract override val nullableAny: KaType

The Any? type.

nullableNothing

abstract override val nullableNothing: KaType

The Nothing? type.

short

abstract override val short: KaType

The Short class type.

string

abstract override val string: KaType

The String class type.

throwable

abstract override val throwable: KaType

The Throwable class type.

token

abstract val token: KaLifetimeToken

The KaLifetimeToken which determines the lifetime of the lifetime owner.

unit

abstract override val unit: KaType

The Unit class type.

Functions

assertIsValidAndAccessible

isValid

Whether the lifetime owner is still valid, i.e. we are still in the scope of the lifetime owner's regular lifetime.

withValidityAssertion

inline fun <R> KaLifetimeOwner.withValidityAssertion(action: () -> R): R

Executes action only if the KaLifetimeOwner is still valid and accessible. Otherwise, throws a validity exception based on the concrete violation.