...

/

Meta Annotations

Meta Annotations

Explore key Kotlin meta-annotations, their usage, and a special syntax for annotating code elements.

Annotations that are used to annotate other annotations are known as meta-annotations. There are four key meta-annotations from Kotlin stdlib:

  • Target: It indicates the kinds of code elements that are possible targets of an annotation. As arguments, it accepts AnnotationTarget enum values, ...