invokeReflective

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.

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

, SecurityException