jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-net-ParseException"))]
__jni_bindgen! {
    /// public class [ParseException](https://developer.android.com/reference/android/net/ParseException.html)
    ///
    /// Required feature: "android-net-ParseException"
    public class ParseException ("android/net/ParseException") extends crate::java::lang::RuntimeException {

        /// **get** public [response](https://developer.android.com/reference/android/net/ParseException.html#response)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn response<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/ParseException\0", "response\0", "Ljava/lang/String;\0");
                env.get_object_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [response](https://developer.android.com/reference/android/net/ParseException.html#response)
        ///
        /// Required feature: "java-lang-String"
        #[cfg(any(feature = "all", feature = "java-lang-String"))]
        pub fn set_response<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/net/ParseException\0", "response\0", "Ljava/lang/String;\0");
                env.set_object_field(self.0.object, __jni_field, value)
            }
        }
    }
}