[−]Struct jni_android_sys::java::lang::invoke::MethodHandles_Lookup
public final class MethodHandles.Lookup
Required feature: "java-lang-invoke-MethodHandles_Lookup"
Methods
impl MethodHandles_Lookup
pub fn lookupClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn lookupModes<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn in<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandles_Lookup>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandles_Lookup>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-invoke-MethodHandles_Lookup"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn findStatic<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-String", "java-lang-invoke-MethodHandle", "java-lang-invoke-MethodType"
pub fn findVirtual<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-String", "java-lang-invoke-MethodHandle", "java-lang-invoke-MethodType"
pub fn findConstructor<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-invoke-MethodHandle", "java-lang-invoke-MethodType"
pub fn findSpecial<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>,
arg3: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>,
arg3: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-String", "java-lang-invoke-MethodHandle", "java-lang-invoke-MethodType"
pub fn findGetter<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-String", "java-lang-invoke-MethodHandle"
pub fn findSetter<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-String", "java-lang-invoke-MethodHandle"
pub fn findStaticGetter<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-String", "java-lang-invoke-MethodHandle"
pub fn findStaticSetter<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-String", "java-lang-invoke-MethodHandle"
pub fn bind<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env MethodType>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "java-lang-invoke-MethodHandle", "java-lang-invoke-MethodType"
pub fn unreflect<'env>(
&'env self,
arg0: impl Into<Option<&'env Method>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Method>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-invoke-MethodHandle", "java-lang-reflect-Method"
pub fn unreflectSpecial<'env>(
&'env self,
arg0: impl Into<Option<&'env Method>>,
arg1: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Method>>,
arg1: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-Class", "java-lang-invoke-MethodHandle", "java-lang-reflect-Method"
pub fn unreflectConstructor<'env>(
&'env self,
arg0: impl Into<Option<&'env Constructor>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Constructor>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-invoke-MethodHandle", "java-lang-reflect-Constructor"
pub fn unreflectGetter<'env>(
&'env self,
arg0: impl Into<Option<&'env Field>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Field>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-invoke-MethodHandle", "java-lang-reflect-Field"
pub fn unreflectSetter<'env>(
&'env self,
arg0: impl Into<Option<&'env Field>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Field>>
) -> Result<Option<Local<'env, MethodHandle>>, Local<'env, Throwable>>
Required features: "java-lang-invoke-MethodHandle", "java-lang-reflect-Field"
pub fn revealDirect<'env>(
&'env self,
arg0: impl Into<Option<&'env MethodHandle>>
) -> Result<Option<Local<'env, MethodHandleInfo>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MethodHandle>>
) -> Result<Option<Local<'env, MethodHandleInfo>>, Local<'env, Throwable>>
Required features: "java-lang-invoke-MethodHandle", "java-lang-invoke-MethodHandleInfo"
pub const PACKAGE: i32
[src]
public static final PACKAGE
pub const PRIVATE: i32
[src]
public static final PRIVATE
pub const PROTECTED: i32
[src]
public static final PROTECTED
pub const PUBLIC: i32
[src]
public static final PUBLIC
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for MethodHandles_Lookup
impl AsValidJObjectAndEnv for MethodHandles_Lookup
impl Deref for MethodHandles_Lookup
impl JniType for MethodHandles_Lookup
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for MethodHandles_Lookup
impl !Send for MethodHandles_Lookup
impl !Sync for MethodHandles_Lookup
impl Unpin for MethodHandles_Lookup
impl UnwindSafe for MethodHandles_Lookup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,