hasAnnotation

open fun hasAnnotation(qualifiedName: String): Boolean(source)

Has the type at least one annotation declared or inherited having the specified qualified name? By default, the subclasses do not inherit the annotation declared on the parent class. However, there is a way to propagate particular annotations throughout the class hierarchy using the @Inherited annotation.