KAnnotatedElement

Represents an annotated element and allows to obtain its annotations. See the Kotlin language documentation for more information.

Since Kotlin

1.0

Represents an annotated element and allows to obtain its annotations. See the Kotlin language documentation for more information.

Since Kotlin

1.3

Properties

Link copied to clipboard
abstract val annotations: List<Annotation>

Annotations which are present on this element.

Since Kotlin 1.0

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard

Returns an annotation of the given type on this element.

Since Kotlin 1.1
Link copied to clipboard

Returns all annotations of the given type on this element, including individually applied annotations as well as repeated annotations.

Since Kotlin 1.7
Link copied to clipboard

Returns true if this element is annotated with an annotation of type T.

Since Kotlin 1.4