Package com.tomtom.tools.android.api.reflection
Functions
Link copied to clipboard
inline fun <T> getReflective(instance: Any, methodClass: Class<*>, variable: String): T
Content copied to clipboard
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?
Content copied to clipboard
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?)
Content copied to clipboard
Sets variable to value as defined in methodClass on instance through JVM reflection.