Package-level declarations

Library support for the Kotlin annotation facility.

Library support for the Kotlin annotation facility.

Types

Link copied to clipboard

Contains the list of possible annotation's retentions.

Since Kotlin 1.0

Contains the list of possible annotation's retentions.

Since Kotlin 1.3
Link copied to clipboard

Contains the list of code elements which are the possible annotation targets

Since Kotlin 1.0

Contains the list of code elements which are the possible annotation targets

Since Kotlin 1.3
Link copied to clipboard
annotation class MustBeDocumented

This meta-annotation determines that an annotation is a part of public API and therefore should be included in the generated documentation for the element to which the annotation is applied.

Since Kotlin 1.0
annotation class MustBeDocumented

This meta-annotation determines that an annotation is a part of public API and therefore should be included in the generated documentation for the element to which the annotation is applied.

Since Kotlin 1.3
Link copied to clipboard
annotation class Repeatable

This meta-annotation determines that an annotation is applicable twice or more on a single code element

Since Kotlin 1.0
annotation class Repeatable

This meta-annotation determines that an annotation is applicable twice or more on a single code element

Since Kotlin 1.3
Link copied to clipboard
annotation class Retention(val value: AnnotationRetention = AnnotationRetention.RUNTIME)

This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true.

Since Kotlin 1.0
annotation class Retention(val value: AnnotationRetention = AnnotationRetention.RUNTIME)

This meta-annotation determines whether an annotation is stored in binary output and visible for reflection. By default, both are true.

Since Kotlin 1.3
Link copied to clipboard
annotation class Target(val allowedTargets: AnnotationTarget)

This meta-annotation indicates the kinds of code elements which are possible targets of an annotation.

Since Kotlin 1.0
annotation class Target(val allowedTargets: AnnotationTarget)

This meta-annotation indicates the kinds of code elements which are possible targets of an annotation.

Since Kotlin 1.3