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 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public final class [Pattern](https://developer.android.com/reference/java/util/regex/Pattern.html) /// /// Required feature: java-util-regex-Pattern #[cfg(any(feature = "all", feature = "java-util-regex-Pattern"))] public final class Pattern extends crate::java::lang::Object, implements crate::java::io::Serializable { // // 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::util::regex::Pattern>> { // // class.path == "java/util/regex/Pattern", java.flags == (empty), .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/util/regex/Pattern\0", "<init>\0", "(Ljava/lang/String;I)V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [compile](https://developer.android.com/reference/java/util/regex/Pattern.html#compile(java,%2520lang,%2520String)) /// /// Required features: "java-lang-String", "java-util-regex-Pattern" #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-regex-Pattern")))] pub fn compile_string<'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::util::regex::Pattern>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC | STATIC, .name == "compile", .descriptor == "(Ljava/lang/String;)Ljava/util/regex/Pattern;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/regex/Pattern\0", "compile\0", "(Ljava/lang/String;)Ljava/util/regex/Pattern;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [compile](https://developer.android.com/reference/java/util/regex/Pattern.html#compile(java,%2520lang,%2520String,%2520int)) /// /// Required features: "java-lang-String", "java-util-regex-Pattern" #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-util-regex-Pattern")))] pub fn compile_string_int<'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::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::regex::Pattern>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC | STATIC, .name == "compile", .descriptor == "(Ljava/lang/String;I)Ljava/util/regex/Pattern;" 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_static_method("java/util/regex/Pattern\0", "compile\0", "(Ljava/lang/String;I)Ljava/util/regex/Pattern;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [pattern](https://developer.android.com/reference/java/util/regex/Pattern.html#pattern()) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn pattern<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "pattern", .descriptor == "()Ljava/lang/String;" 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/util/regex/Pattern\0", "pattern\0", "()Ljava/lang/String;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [toString](https://developer.android.com/reference/java/util/regex/Pattern.html#toString()) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn to_string<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;" 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/util/regex/Pattern\0", "toString\0", "()Ljava/lang/String;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [matcher](https://developer.android.com/reference/java/util/regex/Pattern.html#matcher(java,%2520lang,%2520CharSequence)) /// /// Required features: "java-lang-CharSequence", "java-util-regex-Matcher" #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence", feature = "java-util-regex-Matcher")))] pub fn matcher<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::regex::Matcher>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "matcher", .descriptor == "(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/regex/Pattern\0", "matcher\0", "(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [flags](https://developer.android.com/reference/java/util/regex/Pattern.html#flags()) pub fn flags<'env>(&'env self) -> __jni_bindgen::Result<i32> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "flags", .descriptor == "()I" 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/util/regex/Pattern\0", "flags\0", "()I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [matches](https://developer.android.com/reference/java/util/regex/Pattern.html#matches(java,%2520lang,%2520String,%2520java,%2520lang,%2520CharSequence)) /// /// Required features: "java-lang-CharSequence", "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence", feature = "java-lang-String")))] pub fn matches<'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: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<bool> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC | STATIC, .name == "matches", .descriptor == "(Ljava/lang/String;Ljava/lang/CharSequence;)Z" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/regex/Pattern\0", "matches\0", "(Ljava/lang/String;Ljava/lang/CharSequence;)Z\0"); __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Returning arrays of objects not yet supported // /// [split](https://developer.android.com/reference/java/util/regex/Pattern.html#split(java,%2520lang,%2520CharSequence,%2520int)) // /// // /// Required features: "java-lang-CharSequence", "java-lang-String" // #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence", feature = "java-lang-String")))] // pub fn split_char_sequence_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg1: i32) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/lang/String")) }> { // // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "split", .descriptor == "(Ljava/lang/CharSequence;I)[Ljava/lang/String;" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/regex/Pattern\0", "split\0", "(Ljava/lang/CharSequence;I)[Ljava/lang/String;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Returning arrays of objects not yet supported // /// [split](https://developer.android.com/reference/java/util/regex/Pattern.html#split(java,%2520lang,%2520CharSequence)) // /// // /// Required features: "java-lang-CharSequence", "java-lang-String" // #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence", feature = "java-lang-String")))] // pub fn split_char_sequence<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/lang/String")) }> { // // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "split", .descriptor == "(Ljava/lang/CharSequence;)[Ljava/lang/String;" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/regex/Pattern\0", "split\0", "(Ljava/lang/CharSequence;)[Ljava/lang/String;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [quote](https://developer.android.com/reference/java/util/regex/Pattern.html#quote(java,%2520lang,%2520String)) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn quote<'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::lang::String>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC | STATIC, .name == "quote", .descriptor == "(Ljava/lang/String;)Ljava/lang/String;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/util/regex/Pattern\0", "quote\0", "(Ljava/lang/String;)Ljava/lang/String;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [asPredicate](https://developer.android.com/reference/java/util/regex/Pattern.html#asPredicate()) /// /// Required features: "java-util-function-Predicate" #[cfg(any(feature = "all", all(feature = "java-util-function-Predicate")))] pub fn as_predicate<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::function::Predicate>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "asPredicate", .descriptor == "()Ljava/util/function/Predicate;" 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/util/regex/Pattern\0", "asPredicate\0", "()Ljava/util/function/Predicate;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [splitAsStream](https://developer.android.com/reference/java/util/regex/Pattern.html#splitAsStream(java,%2520lang,%2520CharSequence)) /// /// Required features: "java-lang-CharSequence", "java-util-stream-Stream" #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence", feature = "java-util-stream-Stream")))] pub fn split_as_stream<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::stream::Stream>>> { // class.path == "java/util/regex/Pattern", java.flags == PUBLIC, .name == "splitAsStream", .descriptor == "(Ljava/lang/CharSequence;)Ljava/util/stream/Stream;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("java/util/regex/Pattern\0", "splitAsStream\0", "(Ljava/lang/CharSequence;)Ljava/util/stream/Stream;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// public static final [CANON_EQ](https://developer.android.com/reference/java/util/regex/Pattern.html#CANON_EQ) pub const CANON_EQ : i32 = 128; /// public static final [CASE_INSENSITIVE](https://developer.android.com/reference/java/util/regex/Pattern.html#CASE_INSENSITIVE) pub const CASE_INSENSITIVE : i32 = 2; /// public static final [COMMENTS](https://developer.android.com/reference/java/util/regex/Pattern.html#COMMENTS) pub const COMMENTS : i32 = 4; /// public static final [DOTALL](https://developer.android.com/reference/java/util/regex/Pattern.html#DOTALL) pub const DOTALL : i32 = 32; /// public static final [LITERAL](https://developer.android.com/reference/java/util/regex/Pattern.html#LITERAL) pub const LITERAL : i32 = 16; /// public static final [MULTILINE](https://developer.android.com/reference/java/util/regex/Pattern.html#MULTILINE) pub const MULTILINE : i32 = 8; /// public static final [UNICODE_CASE](https://developer.android.com/reference/java/util/regex/Pattern.html#UNICODE_CASE) pub const UNICODE_CASE : i32 = 64; /// public static final [UNICODE_CHARACTER_CLASS](https://developer.android.com/reference/java/util/regex/Pattern.html#UNICODE_CHARACTER_CLASS) pub const UNICODE_CHARACTER_CLASS : i32 = 256; /// public static final [UNIX_LINES](https://developer.android.com/reference/java/util/regex/Pattern.html#UNIX_LINES) pub const UNIX_LINES : i32 = 1; } }