Interface JNICalls.JNIMethod
- Enclosing class:
JNICalls
public static interface JNICalls.JNIMethod
Represents a JNI method.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JNICalls.JNIMethodfindMethod(JNI.JNIEnv env, JNI.JClass clazz, boolean staticMethod, boolean required, String methodName, String methodSignature) Finds aJNICalls.JNIMethodin givenclazzwith given name and signature.static JNICalls.JNIMethodfindMethod(JNI.JNIEnv env, JNI.JClass clazz, boolean staticMethod, String methodName, String methodSignature) Finds aJNICalls.JNIMethodin the givenclazzwith the given name and signature.Returns a method display name used for logging.Returns a method JNIJNI.JMethodID.
-
Method Details
-
getJMethodID
JNI.JMethodID getJMethodID()Returns a method JNIJNI.JMethodID. -
getDisplayName
String getDisplayName()Returns a method display name used for logging. -
findMethod
static JNICalls.JNIMethod findMethod(JNI.JNIEnv env, JNI.JClass clazz, boolean staticMethod, String methodName, String methodSignature) Finds aJNICalls.JNIMethodin the givenclazzwith the given name and signature. If such a method does not exist throwsJNIExceptionWrapperwrapping aNoSuchMethodError. -
findMethod
static JNICalls.JNIMethod findMethod(JNI.JNIEnv env, JNI.JClass clazz, boolean staticMethod, boolean required, String methodName, String methodSignature) Finds aJNICalls.JNIMethodin givenclazzwith given name and signature. If such a method does not exist andrequiredistrue, it throwsJNIExceptionWrapperwrapping aNoSuchMethodError. Ifrequiredisfalseit clears the pending JNI exception and returns aC NULL pointer.
-