getAnnotation

open override fun <A : Annotation> getAnnotation(annotationClass: Class<A>): A?

Retrieves an annotation from the function's accessor using reflection.

Return

the annotation instance if present, null otherwise

Parameters

annotationClass

the class of the annotation to retrieve