[]Struct jni_android_sys::java::lang::Class

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

public final class Class

Required feature: "java-lang-Class"

Methods

impl Class

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 forName_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

forName

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

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

forName

Required features: "java-lang-Class", "java-lang-ClassLoader", "java-lang-String"

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

newInstance

Required features: "java-lang-Object"

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

isInstance

Required features: "java-lang-Object"

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

isAssignableFrom

Required features: "java-lang-Class"

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

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

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

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

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

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

getName

Required features: "java-lang-String"

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

getClassLoader

Required features: "java-lang-ClassLoader"

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

getTypeParameters

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

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

getSuperclass

Required features: "java-lang-Class"

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

getGenericSuperclass

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

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

getPackage

Required features: "java-lang-Package"

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

getInterfaces

Required features: "java-lang-Class"

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

getGenericInterfaces

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

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

getComponentType

Required features: "java-lang-Class"

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

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

getSigners

Required features: "java-lang-Object"

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

getEnclosingMethod

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

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

getEnclosingConstructor

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

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

getDeclaringClass

Required features: "java-lang-Class"

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

getEnclosingClass

Required features: "java-lang-Class"

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

getSimpleName

Required features: "java-lang-String"

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

getTypeName

Required features: "java-lang-String"

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

getCanonicalName

Required features: "java-lang-String"

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

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

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

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

getClasses

Required features: "java-lang-Class"

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

getFields

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

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

getMethods

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

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

getConstructors

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

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

getField

Required features: "java-lang-String", "java-lang-reflect-Field"

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

getMethod

Required features: "java-lang-Class", "java-lang-String", "java-lang-reflect-Method"

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

getConstructor

Required features: "java-lang-Class", "java-lang-reflect-Constructor"

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

getDeclaredClasses

Required features: "java-lang-Class"

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

getDeclaredFields

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

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

getDeclaredMethods

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

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

getDeclaredConstructors

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

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

getDeclaredField

Required features: "java-lang-String", "java-lang-reflect-Field"

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

getDeclaredMethod

Required features: "java-lang-Class", "java-lang-String", "java-lang-reflect-Method"

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

getDeclaredConstructor

Required features: "java-lang-Class", "java-lang-reflect-Constructor"

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

getResourceAsStream

Required features: "java-io-InputStream", "java-lang-String"

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

getResource

Required features: "java-lang-String", "java-net-URL"

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

getProtectionDomain

Required features: "java-security-ProtectionDomain"

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

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

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

getEnumConstants

Required features: "java-lang-Object"

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

cast

Required features: "java-lang-Object"

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

asSubclass

Required features: "java-lang-Class"

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 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 = 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 Class

impl AsRef<AnnotatedElement> for Class

impl AsRef<GenericDeclaration> for Class

impl AsRef<Serializable> for Class

impl AsRef<Type> for Class

impl AsValidJObjectAndEnv for Class

impl Deref for Class

type Target = Object

The resulting type after dereferencing.

impl JniType for Class

Auto Trait Implementations

impl RefUnwindSafe for Class

impl !Send for Class

impl !Sync for Class

impl Unpin for Class

impl UnwindSafe for Class

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.