r##"#[no_mangle] pub extern "C" fn Java_org_example_Foo_init(env: *mut JNIEnv, _: jclass, a0: jint) -> jlong { let mut a0: i32 = a0; let this: Foo = Foo::new(a0); let this: Box = Box::new(this); let this: *mut Foo = Box::into_raw(this); this as jlong }"##; r##"#[no_mangle] pub extern "C" fn Java_org_example_Foo_do_1f( env: *mut JNIEnv, _: jclass, this: jlong, a0: jint, a1: jint, ) -> jint { let mut a0: i32 = a0; let mut a1: i32 = a1; let this: &Foo = unsafe { jlong_to_pointer::(this).as_mut().unwrap() }; let mut ret: i32 = Foo::f(this, a0, a1); let mut ret: jint = ret; ret }"##; r##"#[no_mangle] pub extern "C" fn Java_org_example_Boo_init( env: *mut JNIEnv, _: jclass, a0: jint, a1: jlong, ) -> jlong { let mut a0: i32 = a0; let mut a1: usize = >::try_from(a1) .expect("invalid jlong, in jlong => usize conversion"); let this: Result = Boo::new(a0, a1); let mut this: jlong = match this { Ok(x) => { let ret: jlong = ::box_object(x); ret } Err(msg) => { jni_throw_exception(env, &msg); return ::jni_invalid_value(); } }; this as jlong }"##; r##"#[no_mangle] pub extern "C" fn Java_org_example_Boo_do_1factory_1method(env: *mut JNIEnv, _: jclass) -> jlong { let mut ret: Result = Boo::factory_method(); let mut ret: jlong = match ret { Ok(x) => { let ret: jlong = ::box_object(x); ret } Err(msg) => { jni_throw_exception(env, &msg); return ::jni_invalid_value(); } }; ret }"##; r##"#[no_mangle] pub extern "C" fn Java_org_example_Boo_do_1boo_1as_1arg( env: *mut JNIEnv, _: jclass, this: jlong, a0: jlong, ) -> jint { let a0: *mut Boo = unsafe { jlong_to_pointer::(a0).as_mut().unwrap() }; let a0: Box = unsafe { Box::from_raw(a0) }; let a0: Boo = *a0; let this: &Boo = unsafe { jlong_to_pointer::(this).as_mut().unwrap() }; let mut ret: i32 = Boo::boo_as_arg(this, a0); let mut ret: jint = ret; ret }"##; r##"#[no_mangle] pub extern "C" fn Java_org_example_Boo_do_1get_1one_1foo( env: *mut JNIEnv, _: jclass, this: jlong, ) -> jlong { let this: &Boo = unsafe { jlong_to_pointer::(this).as_mut().unwrap() }; let mut ret: Foo = Boo::get_one_foo(this); let ret: jlong = ::box_object(ret); ret }"##;