getStaticObjectOrNullUntilSuperclass

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

Get the static object

Return

field object or null

Parameters

clazz

class

fieldName

field name

untilSuperClass

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

Throws

if the field is not found