find All Annotations
fun <A : Annotation> findAllAnnotations(element: KAnnotatedElement, annotationType: Class<A>, directOverrides: Boolean = true): List<A>(source)
Finds all annotations of type A from the annotated element.
The annotations are not in any specific order, this considers meta-annotations, but does not support superclasses via @Inherited.
@Repeatable is supported.
Parameters
direct Overrides
Whether a direct annotation should override meta-annotations of the same type
inline fun <A : Annotation> KAnnotatedElement.findAllAnnotations(directOverrides: Boolean = true): List<A>(source)
fun <A : Annotation> KAnnotatedElement.findAllAnnotations(annotationType: KClass<A>, directOverrides: Boolean = true): List<A>(source)
Finds all annotations of type A from the annotated element.
The annotations are not in any specific order, this considers meta-annotations, but does not support superclasses via @Inherited.
@Repeatable is supported.
Parameters
direct Overrides
Whether a direct annotation should override meta-annotations of the same type