Package com.tomtom.tools.android.api.reflection

Functions

Link copied to clipboard
inline fun <T> getReflective(instance: Any, methodClass: Class<*>, variable: String): T

Gets variable as defined in methodClass on instance through JVM reflection.

Link copied to clipboard
fun invokeReflective(instance: Any, methodClass: Class<*>, method: String, vararg arguments: Any): Any?

Invokes method as defined in methodClass on instance with arguments through JVM reflection.

Link copied to clipboard
fun setReflective(instance: Any, methodClass: Class<*>, variable: String, value: Any?)

Sets variable to value as defined in methodClass on instance through JVM reflection.