annotation annotation

The annotation annotation marks a class as being an annotation type, or a function as being an annotation constructor.


The annotation is applied to the annotation type class definition:

final annotation class Example() 
        satisfies OptionalAnnotation<Example, ClassDecaration>

Or to the annotation constructor function definition:

annotation class Example example() 
    => Example()


When applied to a class, the final annotation is also required and the class must satisfy Annotation

See also