isAnnotationPresent

open fun isAnnotationPresent(annotationName: String): Boolean(source)

Check whether an annotation with this name is present on this element

Return

true if found, false if not

Parameters

annotationName

the name of the annotation


open fun isAnnotationPresent(annotationClass: Class<out Annotation>): Boolean(source)

Check whether an annotation with this class is present on this element

Return

true if found, false if not

Parameters

annotationClass

the class of the annotation