Package kotlin.annotation

Library support for the Kotlin annotation facility.

Types

AnnotationRetention
Link copied to clipboard
enum AnnotationRetention : Enum<AnnotationRetention>
enum AnnotationRetention : Enum<AnnotationRetention>
enum AnnotationRetention : Enum<AnnotationRetention>
enum AnnotationRetention : Enum<AnnotationRetention>

Contains the list of possible annotation's retentions.

AnnotationTarget
Link copied to clipboard
enum AnnotationTarget : Enum<AnnotationTarget>
enum AnnotationTarget : Enum<AnnotationTarget>
enum AnnotationTarget : Enum<AnnotationTarget>
enum AnnotationTarget : Enum<AnnotationTarget>

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

MustBeDocumented
Link copied to clipboard
annotation class MustBeDocumented
annotation class MustBeDocumented
annotation class MustBeDocumented
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.

Repeatable
Link copied to clipboard
annotation class Repeatable
annotation class Repeatable
annotation class Repeatable
annotation class Repeatable

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

Retention
Link copied to clipboard
annotation class Retention(value: AnnotationRetention)
annotation class Retention(value: AnnotationRetention)
annotation class Retention(value: AnnotationRetention)
annotation class Retention(value: AnnotationRetention)

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

Target
Link copied to clipboard
annotation class Target(allowedTargets: AnnotationTarget)
annotation class Target(allowedTargets: AnnotationTarget)
annotation class Target(allowedTargets: AnnotationTarget)
annotation class Target(allowedTargets: AnnotationTarget)

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