ObjectHelper

The scoped helper for Any to quick do reflect things

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getObjectOrNull(fieldName: String): Any?
Link copied to clipboard
fun <T> getObjectOrNullAs(fieldName: String): T?
Link copied to clipboard
fun getObjectOrNullUntilSuperclass(fieldName: String, untilSuperClass: Class<*>.() -> Boolean? = null): Any?
Link copied to clipboard
fun <T> getObjectOrNullUntilSuperclassAs(fieldName: String, untilSuperClass: Class<*>.() -> Boolean? = null): T?
Link copied to clipboard
fun invokeMethod(methodName: String, returnType: Class<*>? = null, paramTypes: ParamTypes, params: Params): Any?
Link copied to clipboard
fun invokeMethodBestMatch(methodName: String, returnType: Class<*>? = null, vararg params: Any?): Any?
Link copied to clipboard
fun setObject(fieldName: String, value: Any?)
Link copied to clipboard
fun setObjectUntilSuperclass(fieldName: String, value: Any?, untilSuperClass: Class<*>.() -> Boolean? = null)