orbit-util / orbit.util.reflect / AnnotationUtils / isAnnotationInTree

isAnnotationInTree

fun <A : Annotation> isAnnotationInTree(clazz: Class<*>, annotation: Class<A>): Boolean

Searches the class, supertype and interfaces recursively for an annotation.

Parameters

clazz - The class to search on.

annotation - The annotation to search for.

Return
True if the annotation is found. otherwise false.