[]Struct jni_android_sys::java::lang::invoke::MethodHandles_Lookup

#[repr(transparent)]
pub struct 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]

lookupClass

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]

in

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]

toString

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]

findStatic

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]

findVirtual

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]

findConstructor

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]

findSpecial

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]

findGetter

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]

findSetter

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]

findStaticGetter

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]

findStaticSetter

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]

bind

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]

unreflect

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]

unreflectSpecial

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]

unreflectConstructor

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]

unreflectGetter

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]

unreflectSetter

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]

revealDirect

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]

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 MethodHandles_Lookup

impl AsValidJObjectAndEnv for MethodHandles_Lookup

impl Deref for MethodHandles_Lookup

type Target = Object

The resulting type after dereferencing.

impl JniType for MethodHandles_Lookup

Auto Trait Implementations

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.