W3cubDocs

/Kotlin

Package kotlin.annotation

Library support for the Kotlin annotation facility.

Types

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

AnnotationRetention

Contains the list of possible annotation's retentions.

enum class AnnotationRetention
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

AnnotationTarget

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

enum class AnnotationTarget

Annotations

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

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.

annotation class MustBeDocumented
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

Repeatable

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

annotation class Repeatable
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

Retention

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

annotation class Retention
Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

Target

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

annotation class Target

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.annotation/index.html