jvmti_rs/wrapper/facade/
breakpoint_static.rs

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