duchess::java::lang

Struct Class

source
pub struct Class { /* private fields */ }

Implementations§

source§

impl Class

source

pub fn to_string(this: impl IntoJava<Class>) -> impl JavaMethod<String>

source

pub fn to_generic_string(this: impl IntoJava<Class>) -> impl JavaMethod<String>

source

pub fn is_instance( this: impl IntoJava<Class>, a0: impl IntoJava<Object>, ) -> impl ScalarMethod<bool>

source

pub fn is_interface(this: impl IntoJava<Class>) -> impl ScalarMethod<bool>

source

pub fn is_array(this: impl IntoJava<Class>) -> impl ScalarMethod<bool>

source

pub fn is_primitive(this: impl IntoJava<Class>) -> impl ScalarMethod<bool>

source

pub fn is_annotation(this: impl IntoJava<Class>) -> impl ScalarMethod<bool>

source

pub fn is_synthetic(this: impl IntoJava<Class>) -> impl ScalarMethod<bool>

source

pub fn get_name(this: impl IntoJava<Class>) -> impl JavaMethod<String>

source

pub fn get_superclass(this: impl IntoJava<Class>) -> impl JavaMethod<Class>

source

pub fn get_package_name(this: impl IntoJava<Class>) -> impl JavaMethod<String>

source

pub fn get_interfaces( this: impl IntoJava<Class>, ) -> impl JavaMethod<Array<Class>>

source

pub fn get_component_type(this: impl IntoJava<Class>) -> impl JavaMethod<Class>

source

pub fn array_type(this: impl IntoJava<Class>) -> impl JavaMethod<Class>

Trait Implementations§

source§

impl AsRef<Class> for Class

source§

fn as_ref(&self) -> &Class

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Deref for Class

source§

type Target = <Class as JavaView>::OfObj<Class>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl JDeref for Class

source§

fn jderef(&self) -> &Self

Dereference to a plain reference to the java object.
source§

impl JavaObject for Class

source§

fn class<'jvm>(jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, Local<'jvm, Class>>

Returns Java Class object for this type. Read more
source§

impl TryJDeref for Class

source§

type Java = Class

The Java type (e.g., java::lang::Object).
source§

fn try_jderef(&self) -> Nullable<&Self>

Dereference to a plain reference to the java object, or Err if it is null.

Auto Trait Implementations§

§

impl Freeze for Class

§

impl RefUnwindSafe for Class

§

impl Send for Class

§

impl Sync for Class

§

impl Unpin for Class

§

impl UnwindSafe for Class

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> JavaType for T
where T: JavaObject,

source§

fn array_class<'jvm>( jvm: &mut Jvm<'jvm>, ) -> Result<Local<'jvm, Class>, Error<Local<'jvm, Throwable>>>

Returns the Java Class object for a Java array containing elements of Self. All Java types, even scalars can be elements of an array object.
source§

impl<R> ToJava for R
where R: ?Sized,

source§

type JvmOp<'a, J: Upcast<Object> + Upcast<J>> = ToJavaOp<'a, R, J> where R: 'a + ToJavaImpl<J>

source§

fn to_java<J>(&self) -> ToJavaOp<'_, R, J>
where R: ToJavaImpl<J>, J: Upcast<Object> + Upcast<J>,

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more