scanAnnotation
Scans for the first annotation of the specified type on the annotated element. Returns null if no matching annotation is found.
Return
the first matching annotation, or null if none found
Parameters
annotationClass
the KClass representing the annotation type
Type Parameters
A
the type of annotation to scan for
Samples
Scans for the first annotation 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
the first matching annotation, or null if none found
Type Parameters
A
the type of annotation to scan for