Note: information on this page refers to Ceylon 1.1, not to the current release.

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