setReflective

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

Sets variable to value 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