Meta Annotations
Explore key Kotlin meta-annotations, their usage, and a special syntax for annotating code elements.
We'll cover the following...
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 acceptsAnnotationTarget
enum
values, ...