[−]Struct jni_android_sys::java::lang::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]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn toGenericString<'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 forName_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
__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>>
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]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn isInstance<'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 isAssignableFrom<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getClassLoader<'env>(
&'env self
) -> Result<Option<Local<'env, ClassLoader>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ClassLoader>>, Local<'env, Throwable>>
Required features: "java-lang-ClassLoader"
pub fn getTypeParameters<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<TypeVariable, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<TypeVariable, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-TypeVariable"
pub fn getSuperclass<'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 getGenericSuperclass<'env>(
&'env self
) -> Result<Option<Local<'env, Type>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Type>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Type"
pub fn getPackage<'env>(
&'env self
) -> Result<Option<Local<'env, Package>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Package>>, Local<'env, Throwable>>
Required features: "java-lang-Package"
pub fn getInterfaces<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Class, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Class, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn getGenericInterfaces<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Type, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Type, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Type"
pub fn getComponentType<'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 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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Object, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn getEnclosingMethod<'env>(
&'env self
) -> Result<Option<Local<'env, Method>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Method>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Method"
pub fn getEnclosingConstructor<'env>(
&'env self
) -> Result<Option<Local<'env, Constructor>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Constructor>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Constructor"
pub fn getDeclaringClass<'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 getEnclosingClass<'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 getSimpleName<'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 getTypeName<'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 getCanonicalName<'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 isAnonymousClass<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Class, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn getFields<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Field, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Field, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Field"
pub fn getMethods<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Method, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Method, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Method"
pub fn getConstructors<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Constructor, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Constructor, Throwable>>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Field>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Class, Throwable>>>
) -> Result<Option<Local<'env, Method>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<Class, Throwable>>>
) -> Result<Option<Local<'env, Constructor>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Class, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn getDeclaredFields<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Field, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Field, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Field"
pub fn getDeclaredMethods<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Method, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Method, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-reflect-Method"
pub fn getDeclaredConstructors<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<Constructor, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Constructor, Throwable>>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Field>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Class, Throwable>>>
) -> Result<Option<Local<'env, Method>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<Class, Throwable>>>
) -> Result<Option<Local<'env, Constructor>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, URL>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-net-URL"
pub fn getProtectionDomain<'env>(
&'env self
) -> Result<Option<Local<'env, ProtectionDomain>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ProtectionDomain>>, Local<'env, Throwable>>
Required features: "java-security-ProtectionDomain"
pub fn desiredAssertionStatus<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Object, Throwable>>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, ObjectArray<Annotation, Throwable>>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Annotation, Throwable>>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<Annotation, Throwable>>>, Local<'env, Throwable>>
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]
&'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 Class
impl AsRef<AnnotatedElement> for Class
fn as_ref(&self) -> &AnnotatedElement
impl AsRef<GenericDeclaration> for Class
fn as_ref(&self) -> &GenericDeclaration
impl AsRef<Serializable> for Class
fn as_ref(&self) -> &Serializable
impl AsRef<Type> for Class
impl AsValidJObjectAndEnv for Class
impl Deref for Class
impl JniType for Class
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
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>,