[][src]Macro uni_jnihelpers::get_java_static_method

macro_rules! get_java_static_method {
    ($env:expr, $class:expr, $method_name:expr, $method_signature:expr) => { ... };
}

At the point of instantiaction the macros creates global cache to access java static method by name.

let method: jni::sys::jmethodID = get_java_static_method!(
    jni_env,
    class_ref,  // jni::objects::JClass
    "methodName",
    "(Lmethod;Lsignature;)V"
)?;