Package-level declarations

Runtime API for /docs/reference/reflection.html

Types

Link copied to clipboard

Represents an annotated element and allows to obtain its annotations. See the Kotlin language documentation for more information.

Since Kotlin 1.0
Link copied to clipboard
actual interface KCallable<out R> : KAnnotatedElement
expect interface KCallable<out R>

Represents a callable entity, such as a function or a property.

Since Kotlin 1.0
Link copied to clipboard
expect interface KClass<T : Any> : KClassifier

Represents a class and provides introspection capabilities. Instances of this class are obtainable by the ::class syntax. See the Kotlin language documentation for more information.

Since Kotlin 1.0
Link copied to clipboard

Represents an entity which may contain declarations of any other entities, such as a class or a package.

Since Kotlin 1.0
Link copied to clipboard
actual interface KFunction<out R> : KCallable<R> , Function<R>
expect interface KFunction<out R> : KCallable<R> , Function<R>

Represents a function with introspection capabilities.

Since Kotlin 1.0
Link copied to clipboard
actual interface KMutableProperty<V> : KProperty<V>
expect interface KMutableProperty<V> : KProperty<V>

Represents a property declared as a var.

Since Kotlin 1.0
Link copied to clipboard

Represents a var-property without any kind of receiver.

Since Kotlin 1.0
Link copied to clipboard
actual interface KMutableProperty1<T, V> : KProperty1<T, V> , KMutableProperty<V>
expect interface KMutableProperty1<T, V> : KProperty1<T, V> , KMutableProperty<V>

Represents a var-property, operations on which take one receiver as a parameter.

Since Kotlin 1.0
Link copied to clipboard
actual interface KMutableProperty2<D, E, V> : KProperty2<D, E, V> , KMutableProperty<V>
expect interface KMutableProperty2<D, E, V> : KProperty2<D, E, V> , KMutableProperty<V>

Represents a var-property, operations on which take two receivers as parameters.

Since Kotlin 1.0
Link copied to clipboard

Represents a parameter passed to a function or a property getter/setter, including this and extension receiver parameters.

Since Kotlin 1.0
Link copied to clipboard
actual interface KProperty<out V> : KCallable<V>
expect interface KProperty<out V> : KCallable<V>

Represents a property, such as a named val or var declaration. Instances of this class are obtainable by the :: operator.

Since Kotlin 1.0
Link copied to clipboard
actual interface KProperty0<out V> : KProperty<V> , Function0<V>
expect interface KProperty0<out V> : KProperty<V> , Function0<V>

Represents a property without any kind of receiver. Such property is either originally declared in a receiverless context such as a package, or has the receiver bound to it.

Since Kotlin 1.0
Link copied to clipboard
actual interface KProperty1<T, out V> : KProperty<V> , Function1<T, V>
expect interface KProperty1<T, out V> : KProperty<V> , Function1<T, V>

Represents a property, operations on which take one receiver as a parameter.

Since Kotlin 1.0
Link copied to clipboard
actual interface KProperty2<D, E, out V> : KProperty<V> , Function2<D, E, V>
expect interface KProperty2<D, E, out V> : KProperty<V> , Function2<D, E, V>

Represents a property, operations on which take two receivers as parameters, such as an extension property declared in a class.

Since Kotlin 1.0
Link copied to clipboard
actual interface KType : KAnnotatedElement
expect interface KType

Represents a type. Type is usually either a class with optional type arguments, or a type parameter of some declaration, plus nullability.

Since Kotlin 1.0