ReflectionUtil

open class ReflectionUtil

Provides utility methods that can be used access and mutate objects using reflection.

Functions

Link copied to clipboard
open fun assertCallerAnnotation(annotationClass: Class<out Annotation>, message: String)
Ensures if the caller of the method calling this method is annotated with the specified annotation.
Link copied to clipboard
open fun setField(source: Any, fieldName: String, value: Any): Boolean