hasAnnotation

open fun hasAnnotation(annotationType: Class<out Annotation>): Boolean(source)

Returns true if this element is annotated with annotationType.

The search is breadth-first and considers meta-annotations.