find Annotation Recursive
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.
fun <A : Annotation> KAnnotatedElement.findAnnotationRecursive(annotationType: KClass<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.