scanAnnotations

Scans for all annotations of the specified type on the annotated element, including inherited annotations from parent classes and interfaces.

Return

a list of all matching annotations found on the element

Parameters

A

the type of annotation to scan for

annotationClass

the KClass representing the annotation type

Samples


Scans for all annotations of the specified reified type on the annotated element. This is a convenience method that uses reified generics to avoid specifying the class explicitly.

Return

a list of all matching annotations found on the element

Parameters

A

the type of annotation to scan for

Samples