1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public enum [TextStyle](https://developer.android.com/reference/java/time/format/TextStyle.html) /// /// Required feature: java-time-format-TextStyle #[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))] public enum TextStyle extends crate::java::lang::Enum { // // Not emitting: Returning arrays of objects not yet supported // /// [values](https://developer.android.com/reference/java/time/format/TextStyle.html#values()) // /// // /// Required features: "java-time-format-TextStyle" // #[cfg(any(feature = "all", all(feature = "java-time-format-TextStyle")))] // pub fn values<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/time/format/TextStyle")) }> { // // class.path == "java/time/format/TextStyle", java.flags == PUBLIC | STATIC, .name == "values", .descriptor == "()[Ljava/time/format/TextStyle;" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/time/format/TextStyle\0", "values\0", "()[Ljava/time/format/TextStyle;\0"); // __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [valueOf](https://developer.android.com/reference/java/time/format/TextStyle.html#valueOf(java,%2520lang,%2520String)) /// /// Required features: "java-lang-String", "java-time-format-TextStyle" #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-time-format-TextStyle")))] pub fn value_of<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>>> { // class.path == "java/time/format/TextStyle", java.flags == PUBLIC | STATIC, .name == "valueOf", .descriptor == "(Ljava/lang/String;)Ljava/time/format/TextStyle;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/time/format/TextStyle\0", "valueOf\0", "(Ljava/lang/String;)Ljava/time/format/TextStyle;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// <init> // /// // /// Required features: "java-lang-String" // #[cfg(any(feature = "all", all(feature = "java-lang-String")))] // fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>> { // // class.path == "java/time/format/TextStyle", java.flags == PRIVATE, .name == "<init>", .descriptor == "(Ljava/lang/String;I)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)]; // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/time/format/TextStyle\0", "<init>\0", "(Ljava/lang/String;I)V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [isStandalone](https://developer.android.com/reference/java/time/format/TextStyle.html#isStandalone()) pub fn is_standalone<'env>(&'env self) -> __jni_bindgen::Result<bool> { // class.path == "java/time/format/TextStyle", java.flags == PUBLIC, .name == "isStandalone", .descriptor == "()Z" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/time/format/TextStyle\0", "isStandalone\0", "()Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [asStandalone](https://developer.android.com/reference/java/time/format/TextStyle.html#asStandalone()) /// /// Required features: "java-time-format-TextStyle" #[cfg(any(feature = "all", all(feature = "java-time-format-TextStyle")))] pub fn as_standalone<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>>> { // class.path == "java/time/format/TextStyle", java.flags == PUBLIC, .name == "asStandalone", .descriptor == "()Ljava/time/format/TextStyle;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/time/format/TextStyle\0", "asStandalone\0", "()Ljava/time/format/TextStyle;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [asNormal](https://developer.android.com/reference/java/time/format/TextStyle.html#asNormal()) /// /// Required features: "java-time-format-TextStyle" #[cfg(any(feature = "all", all(feature = "java-time-format-TextStyle")))] pub fn as_normal<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::time::format::TextStyle>>> { // class.path == "java/time/format/TextStyle", java.flags == PUBLIC, .name == "asNormal", .descriptor == "()Ljava/time/format/TextStyle;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/time/format/TextStyle\0", "asNormal\0", "()Ljava/time/format/TextStyle;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Failed to mangle method name // // Not emitting: Non-public method // // Not emitting: Static class constructor - never needs to be called by Rust. // /// <clinit> // fn <clinit><'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> { // // class.path == "java/time/format/TextStyle", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/time/format/TextStyle\0", "<clinit>\0", "()V\0"); // __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [FULL](https://developer.android.com/reference/java/time/format/TextStyle.html#FULL) // /// // /// Required feature: java-time-format-TextStyle // #[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))] // pub fn full<'env>(env: &'env __jni_bindgen::Env) -> java/time/format/TextStyle { // unsafe { // let (class, field) = env.require_class_static_field("java/time/format/TextStyle\0", "FULL\0", "Ljava/time/format/TextStyle;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [FULL_STANDALONE](https://developer.android.com/reference/java/time/format/TextStyle.html#FULL_STANDALONE) // /// // /// Required feature: java-time-format-TextStyle // #[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))] // pub fn full_standalone<'env>(env: &'env __jni_bindgen::Env) -> java/time/format/TextStyle { // unsafe { // let (class, field) = env.require_class_static_field("java/time/format/TextStyle\0", "FULL_STANDALONE\0", "Ljava/time/format/TextStyle;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [SHORT](https://developer.android.com/reference/java/time/format/TextStyle.html#SHORT) // /// // /// Required feature: java-time-format-TextStyle // #[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))] // pub fn short<'env>(env: &'env __jni_bindgen::Env) -> java/time/format/TextStyle { // unsafe { // let (class, field) = env.require_class_static_field("java/time/format/TextStyle\0", "SHORT\0", "Ljava/time/format/TextStyle;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [SHORT_STANDALONE](https://developer.android.com/reference/java/time/format/TextStyle.html#SHORT_STANDALONE) // /// // /// Required feature: java-time-format-TextStyle // #[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))] // pub fn short_standalone<'env>(env: &'env __jni_bindgen::Env) -> java/time/format/TextStyle { // unsafe { // let (class, field) = env.require_class_static_field("java/time/format/TextStyle\0", "SHORT_STANDALONE\0", "Ljava/time/format/TextStyle;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [NARROW](https://developer.android.com/reference/java/time/format/TextStyle.html#NARROW) // /// // /// Required feature: java-time-format-TextStyle // #[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))] // pub fn narrow<'env>(env: &'env __jni_bindgen::Env) -> java/time/format/TextStyle { // unsafe { // let (class, field) = env.require_class_static_field("java/time/format/TextStyle\0", "NARROW\0", "Ljava/time/format/TextStyle;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [NARROW_STANDALONE](https://developer.android.com/reference/java/time/format/TextStyle.html#NARROW_STANDALONE) // /// // /// Required feature: java-time-format-TextStyle // #[cfg(any(feature = "all", feature = "java-time-format-TextStyle"))] // pub fn narrow_standalone<'env>(env: &'env __jni_bindgen::Env) -> java/time/format/TextStyle { // unsafe { // let (class, field) = env.require_class_static_field("java/time/format/TextStyle\0", "NARROW_STANDALONE\0", "Ljava/time/format/TextStyle;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Non-public method // // Not emitting: Haven't yet implemented array field types // // Not emitting: Failed to mangle field name(s) // pub fn get_"$VALUES"<'env>(env: &'env __jni_bindgen::Env) -> ??? { ... } } }