toReflectedField

context(env: JniEnv)
fun JFieldID.toReflectedField(cls: JClass, isStatic: Boolean): JObject?(source)

Converts a field ID derived from cls to a java.lang.reflect.Field object. isStatic must be set to true if fieldID refers to a static field.

Return

an instance of the java.lang.reflect.Field which corresponds to the given fieldID, or null if the operation fails.

Since

JDK/JRE 1.2

See also

Throws