[]Struct jni_android_sys::java::lang::reflect::Field

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

public final class Field

Required feature: "java-lang-reflect-Field"

Methods

impl Field

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

getDeclaringClass

Required features: "java-lang-Class"

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

getName

Required features: "java-lang-String"

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

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

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

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

getType

Required features: "java-lang-Class"

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

getGenericType

Required features: "java-lang-reflect-Type"

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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

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

toString

Required features: "java-lang-String"

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

toGenericString

Required features: "java-lang-String"

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

get

Required features: "java-lang-Object"

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

getBoolean

Required features: "java-lang-Object"

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

getByte

Required features: "java-lang-Object"

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

getChar

Required features: "java-lang-Object"

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

getShort

Required features: "java-lang-Object"

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

getInt

Required features: "java-lang-Object"

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

getLong

Required features: "java-lang-Object"

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

getFloat

Required features: "java-lang-Object"

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

getDouble

Required features: "java-lang-Object"

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

set

Required features: "java-lang-Object"

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

setBoolean

Required features: "java-lang-Object"

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

setByte

Required features: "java-lang-Object"

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

setChar

Required features: "java-lang-Object"

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

setShort

Required features: "java-lang-Object"

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

setInt

Required features: "java-lang-Object"

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

setLong

Required features: "java-lang-Object"

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

setFloat

Required features: "java-lang-Object"

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

setDouble

Required features: "java-lang-Object"

pub fn getAnnotation<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>, Local<'env, Throwable>>
[src]

getAnnotation

Required features: "java-lang-Class", "java-lang-annotation-Annotation"

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

getAnnotationsByType

Required features: "java-lang-Class", "java-lang-annotation-Annotation"

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

isAnnotationPresent

Required features: "java-lang-Class"

pub fn getDeclaredAnnotations<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Annotation, Throwable>>>, Local<'env, Throwable>>
[src]

getDeclaredAnnotations

Required features: "java-lang-annotation-Annotation"

Methods from Deref<Target = AccessibleObject>

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

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

pub fn getAnnotation<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>, Local<'env, Throwable>>
[src]

getAnnotation

Required features: "java-lang-Class", "java-lang-annotation-Annotation"

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

isAnnotationPresent

Required features: "java-lang-Class"

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

getAnnotationsByType

Required features: "java-lang-Class", "java-lang-annotation-Annotation"

pub fn getAnnotations<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Annotation, Throwable>>>, Local<'env, Throwable>>
[src]

getAnnotations

Required features: "java-lang-annotation-Annotation"

pub fn getDeclaredAnnotation<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>, Local<'env, Throwable>>
[src]

getDeclaredAnnotation

Required features: "java-lang-Class", "java-lang-annotation-Annotation"

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

getDeclaredAnnotationsByType

Required features: "java-lang-Class", "java-lang-annotation-Annotation"

pub fn getDeclaredAnnotations<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<Annotation, Throwable>>>, Local<'env, Throwable>>
[src]

getDeclaredAnnotations

Required features: "java-lang-annotation-Annotation"

Trait Implementations

impl AsJValue for Field

impl AsRef<Member> for Field

impl AsValidJObjectAndEnv for Field

impl Deref for Field

type Target = AccessibleObject

The resulting type after dereferencing.

impl JniType for Field

Auto Trait Implementations

impl RefUnwindSafe for Field

impl !Send for Field

impl !Sync for Field

impl Unpin for Field

impl UnwindSafe for Field

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.