toReflectedMethod
context(env: JniEnv)
fun JMethodID.toReflectedMethod(cls: JClass, isStatic: Boolean): JObject?(source)
fun JMethodID.toReflectedMethod(cls: JClass, isStatic: Boolean): JObject?(source)
Converts a method ID derived from cls to a java.lang.reflect.Method or java.lang.reflect.Constructor object. isStatic must be set to true if the method ID refers to a static field.
Return
Returns an instance of the java.lang.reflect.Method or java.lang.reflect.Constructor which corresponds to the given methodId, or null if the operation fails.
Since
JDK/JRE 1.2
See also
Throws
if fails.