getReflective
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.
Note: Usage of reflection should always be considered a last resort, due to low maintainability, unpredictable implementation changes during platform version upgrades, and lack of strict type checking.