Added in API level 1

Annotation

interface Annotation
java.lang.annotation.Annotation

The common interface extended by all annotation interfaces. Note that an interface that manually extends this one does not define an annotation interface. Also note that this interface does not itself define an annotation interface. More information about annotation interfaces can be found in section {@jls 9.6} of The Java Language Specification. The java.lang.reflect.AnnotatedElement interface discusses compatibility concerns when evolving an annotation interface from being non-repeatable to being repeatable.

Summary

Public methods
abstract Class<out Annotation!>!

Returns the annotation interface of this annotation.

Public methods

annotationType

Added in API level 1
abstract fun annotationType(): Class<out Annotation!>!

Returns the annotation interface of this annotation.

Return
Class<out Annotation!>! the annotation interface of this annotation