hasAnnotation

kotlin-stdlib / kotlin.reflect.full / hasAnnotation
 

Platform and version requirements: JVM (1.4) 

fun <reified T : Annotation> KAnnotatedElement.hasAnnotation(): Boolean 
 Returns true if this element is annotated with an annotation of type T. 


    
{'path': 'public/docs/kotlin~1.6/api/latest/jvm/stdlib/kotlin.reflect.full/has-annotation.html', 'source': 'DevDocs.IO'}