setStaticObjectUntilSuperclass

fun setStaticObjectUntilSuperclass(clazz: Class<*>, fieldName: String, value: Any?, untilSuperClass: Class<*>.() -> Boolean? = null)

Set the static object

Parameters

clazz

class

fieldName

field name

value

field value

untilSuperClass

until super class(true = break, false = continue), or null if find in all superclasses

Throws

if the field is not found