AnnotatedElement

An element which has annotations.

Inheritors

Properties

Link copied to clipboard

All annotations on this element with their source information.

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

All annotations on this element, including inherited ones.

Link copied to clipboard

Annotations declared directly on this element.

Functions

Link copied to clipboard
inline fun <T> AnnotatedElement.annotation(): T?

Get the first annotation of type T, or null if none is found.

Link copied to clipboard

Get all annotations of type T.