find All Annotations
fun <A : Annotation> findAllAnnotations(element: KAnnotatedElement, annotationType: Class<A>, rootOverride: Boolean = true): List<A>(source)
Finds all annotations of type A from the annotated element.
The search is breadth-first and considers meta-annotations, but does not support superclasses via @Inherited.
@Repeatable is supported.
Parameters
root Override
Whether a direct annotation on this element overrides all meta-annotations
inline fun <A : Annotation> KAnnotatedElement.findAllAnnotations(rootOverride: Boolean = true): List<A>(source)
fun <A : Annotation> KAnnotatedElement.findAllAnnotations(annotationType: KClass<A>, rootOverride: Boolean = true): List<A>(source)
Finds all annotations of type A from the annotated element.
The search is breadth-first and considers meta-annotations, but does not support superclasses via @Inherited.
@Repeatable is supported.
Parameters
root Override
Whether a direct annotation on this element overrides all meta-annotations