[]Struct jni_android_sys::java::util::regex::Pattern

#[repr(transparent)]
pub struct Pattern(_);

public final class Pattern

Required feature: "java-util-regex-Pattern"

Methods

impl Pattern

pub fn compile_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Pattern>>, Local<'env, Throwable>>
[src]

compile

Required features: "java-lang-String", "java-util-regex-Pattern"

pub fn compile_String_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32
) -> Result<Option<Local<'env, Pattern>>, Local<'env, Throwable>>
[src]

compile

Required features: "java-lang-String", "java-util-regex-Pattern"

pub fn pattern<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

pattern

Required features: "java-lang-String"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn matcher<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, Matcher>>, Local<'env, Throwable>>
[src]

matcher

Required features: "java-lang-CharSequence", "java-util-regex-Matcher"

pub fn flags<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn matches<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
[src]

matches

Required features: "java-lang-CharSequence", "java-lang-String"

pub fn split_CharSequence_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>,
    arg1: i32
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]

split

Required features: "java-lang-CharSequence", "java-lang-String"

pub fn split_CharSequence<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]

split

Required features: "java-lang-CharSequence", "java-lang-String"

pub fn quote<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

quote

Required features: "java-lang-String"

pub fn asPredicate<'env>(
    &'env self
) -> Result<Option<Local<'env, Predicate>>, Local<'env, Throwable>>
[src]

asPredicate

Required features: "java-util-function-Predicate"

pub fn splitAsStream<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, Stream>>, Local<'env, Throwable>>
[src]

splitAsStream

Required features: "java-lang-CharSequence", "java-util-stream-Stream"

pub const CANON_EQ: i32[src]

public static final CANON_EQ

pub const CASE_INSENSITIVE: i32[src]

public static final CASE_INSENSITIVE

pub const COMMENTS: i32[src]

public static final COMMENTS

pub const DOTALL: i32[src]

public static final DOTALL

pub const LITERAL: i32[src]

public static final LITERAL

pub const MULTILINE: i32[src]

public static final MULTILINE

pub const UNICODE_CASE: i32[src]

public static final UNICODE_CASE

pub const UNICODE_CHARACTER_CLASS: i32[src]

public static final UNICODE_CHARACTER_CLASS

pub const UNIX_LINES: i32[src]

public static final UNIX_LINES

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for Pattern

impl AsRef<Serializable> for Pattern

impl AsValidJObjectAndEnv for Pattern

impl Deref for Pattern

type Target = Object

The resulting type after dereferencing.

impl JniType for Pattern

Auto Trait Implementations

impl RefUnwindSafe for Pattern

impl !Send for Pattern

impl !Sync for Pattern

impl Unpin for Pattern

impl UnwindSafe for Pattern

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.