getReflective

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

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.

Throws