orbit-util / orbit.util.reflect / AnnotationUtils

AnnotationUtils

object AnnotationUtils

Functions

findAnnotationInTree

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

fun <A : Annotation> findAnnotationInTree(clazz: Class<*>, annotation: Class<A>): A?

isAnnotationInTree

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

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