jvmti_rs/wrapper/facade/
method_jni.rs

1use crate::{errors::*, objects::*, Transform, JVMTIFacadeEnv};
2use jni::strings::JNIString;
3
4impl<'a> JVMTIFacadeEnv<'a> {
5    pub fn get_method_id<K, M, V>(&self, class: K, name: M, sig: V) -> Result<JMethodID>
6        where
7            K: Transform<'a, JClass<'a>>,
8            M: Into<JNIString>,
9            V: Into<JNIString> {
10        self.jvmti_rust().get_method_id(self.jni_rust(), class, name, sig)
11    }
12
13    pub fn get_static_method_id<K, M, V>(&self, class: K, name: M, sig: V) -> Result<JStaticMethodID>
14        where
15            K: Transform<'a, JClass<'a>>,
16            M: Into<JNIString>,
17            V: Into<JNIString> {
18        self.jvmti_rust().get_static_method_id(self.jni_rust(), class, name, sig)
19    }
20}