Package-level declarations

Runtime API for /docs/reference/reflection.html

Runtime API for /docs/reference/reflection.html

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS])
annotation class AssociatedObjectKey

Makes the annotated annotation class an associated object key.

Since Kotlin 1.1
Link copied to clipboard

The experimental marker for associated objects API.

Since Kotlin 1.1
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

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

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

Visibility is an aspect of a Kotlin declaration regulating where that declaration is accessible in the source code. Visibility can be changed with one of the following modifiers: public, protected, internal, private.

Since Kotlin 1.1

Functions

Link copied to clipboard
inline fun <T : Annotation> KClass<*>.findAssociatedObject(): Any?

If T is an @AssociatedObjectKey-annotated annotation class and this class is annotated with @T (S::class), returns object S.

Since Kotlin 1.1