mockspresso-reflect / com.episode6.hackit.mockspresso.reflect / ReflectUtil

ReflectUtil

open class ReflectUtil

Java reflect utils

Constructors

<init>

ReflectUtil()

Java reflect utils

Functions

findQualifierAnnotation

open static fun findQualifierAnnotation(field: Field!): Annotation?
open static fun findQualifierAnnotation(annotations: Array<Annotation!>!, description: String!): Annotation?

getAllDeclaredFields

open static fun getAllDeclaredFields(clazz: Class<*>!): MutableList<Field!>!

getAllDeclaredMethods

open static fun getAllDeclaredMethods(clazz: Class<*>!): MutableList<Method!>!

isAnyAnnotationPresent

open static fun isAnyAnnotationPresent(field: Field!, annotations: MutableCollection<Class<out Annotation!>!>!): Boolean
open static fun isAnyAnnotationPresent(method: Method!, annotations: MutableCollection<Class<out Annotation!>!>!): Boolean