findAnnotationRecursive

fun <A : Annotation> findAnnotationRecursive(element: KAnnotatedElement, annotationType: Class<A>): A?(source)

Finds a single annotation of type A from the annotated element.

The search is breadth-first and considers meta-annotations, but does not support superclasses via @Inherited.


Finds a single annotation of type A from the annotated element.

The search is breadth-first and considers meta-annotations, but does not support superclasses via @Inherited.