[−]Struct jni_android_sys::java::lang::Class
public final class Class
Required feature: java-lang-Class
Methods
impl Class
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn to_generic_string<'env>(
&'env self
) -> Result<Option<Local<'env, String>>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn for_name_string<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Class>>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Class>>>
Required features: "java-lang-Class", "java-lang-String"
pub fn for_name_string_boolean_class_loader<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: bool,
arg2: impl Into<Option<&'env ClassLoader>>
) -> Result<Option<Local<'env, Class>>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: bool,
arg2: impl Into<Option<&'env ClassLoader>>
) -> Result<Option<Local<'env, Class>>>
Required features: "java-lang-Class", "java-lang-ClassLoader", "java-lang-String"
pub fn new_instance<'env>(&'env self) -> Result<Option<Local<'env, Object>>>
[src]
Required features: "java-lang-Object"
pub fn is_instance<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn is_assignable_from<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<bool>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<bool>
Required features: "java-lang-Class"
pub fn is_interface<'env>(&'env self) -> Result<bool>
[src]
pub fn is_array<'env>(&'env self) -> Result<bool>
[src]
pub fn is_primitive<'env>(&'env self) -> Result<bool>
[src]
pub fn is_annotation<'env>(&'env self) -> Result<bool>
[src]
pub fn is_synthetic<'env>(&'env self) -> Result<bool>
[src]
pub fn get_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn get_class_loader<'env>(
&'env self
) -> Result<Option<Local<'env, ClassLoader>>>
[src]
&'env self
) -> Result<Option<Local<'env, ClassLoader>>>
Required features: "java-lang-ClassLoader"
pub fn get_superclass<'env>(&'env self) -> Result<Option<Local<'env, Class>>>
[src]
Required features: "java-lang-Class"
pub fn get_generic_superclass<'env>(
&'env self
) -> Result<Option<Local<'env, Type>>>
[src]
&'env self
) -> Result<Option<Local<'env, Type>>>
Required features: "java-lang-reflect-Type"
pub fn get_package<'env>(&'env self) -> Result<Option<Local<'env, Package>>>
[src]
Required features: "java-lang-Package"
pub fn get_component_type<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>>
Required features: "java-lang-Class"
pub fn get_modifiers<'env>(&'env self) -> Result<i32>
[src]
pub fn get_enclosing_method<'env>(
&'env self
) -> Result<Option<Local<'env, Method>>>
[src]
&'env self
) -> Result<Option<Local<'env, Method>>>
Required features: "java-lang-reflect-Method"
pub fn get_enclosing_constructor<'env>(
&'env self
) -> Result<Option<Local<'env, Constructor>>>
[src]
&'env self
) -> Result<Option<Local<'env, Constructor>>>
Required features: "java-lang-reflect-Constructor"
pub fn get_declaring_class<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>>
Required features: "java-lang-Class"
pub fn get_enclosing_class<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>>
Required features: "java-lang-Class"
pub fn get_simple_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn get_type_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn get_canonical_name<'env>(
&'env self
) -> Result<Option<Local<'env, String>>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>>
Required features: "java-lang-String"
pub fn is_anonymous_class<'env>(&'env self) -> Result<bool>
[src]
pub fn is_local_class<'env>(&'env self) -> Result<bool>
[src]
pub fn is_member_class<'env>(&'env self) -> Result<bool>
[src]
pub fn get_field<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Field>>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Field>>>
Required features: "java-lang-String", "java-lang-reflect-Field"
pub fn get_declared_field<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Field>>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Field>>>
Required features: "java-lang-String", "java-lang-reflect-Field"
pub fn get_resource_as_stream<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, InputStream>>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, InputStream>>>
Required features: "java-io-InputStream", "java-lang-String"
pub fn get_resource<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, URL>>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, URL>>>
Required features: "java-lang-String", "java-net-URL"
pub fn get_protection_domain<'env>(
&'env self
) -> Result<Option<Local<'env, ProtectionDomain>>>
[src]
&'env self
) -> Result<Option<Local<'env, ProtectionDomain>>>
Required features: "java-security-ProtectionDomain"
pub fn desired_assertion_status<'env>(&'env self) -> Result<bool>
[src]
pub fn is_enum<'env>(&'env self) -> Result<bool>
[src]
pub fn cast<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Object>>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Object>>>
Required features: "java-lang-Object"
pub fn as_subclass<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Class>>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Class>>>
Required features: "java-lang-Class"
pub fn get_annotation<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>>
Required features: "java-lang-Class", "java-lang-annotation-Annotation"
pub fn is_annotation_present<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<bool>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<bool>
Required features: "java-lang-Class"
pub fn get_declared_annotation<'env>(
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>>
[src]
&'env self,
arg0: impl Into<Option<&'env Class>>
) -> Result<Option<Local<'env, Annotation>>>
Required features: "java-lang-Class", "java-lang-annotation-Annotation"
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>
[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>
[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>
[src]
pub fn notify_all<'env>(&'env self) -> Result<()>
[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>
[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>
[src]
pub fn wait<'env>(&'env self) -> Result<()>
[src]
Trait Implementations
impl AsRef<Serializable> for Class
fn as_ref(&self) -> &Serializable
impl AsRef<GenericDeclaration> for Class
fn as_ref(&self) -> &GenericDeclaration
impl AsRef<Type> for Class
impl AsRef<AnnotatedElement> for Class
fn as_ref(&self) -> &AnnotatedElement
impl Deref for Class
impl AsValidJObjectAndEnv for Class
impl AsJValue for Class
Auto Trait Implementations
impl !Sync for Class
impl !Send for Class
impl Unpin for Class
impl RefUnwindSafe for Class
impl UnwindSafe for Class
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,