setObjectUntilSuperclass

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

Set the field object by the name in the object.

Parameters

obj

object

fieldName

field name

untilSuperClass

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

Throws

if the field is not found