pub struct Class<'a> { /* private fields */ }
Expand description
Analogous to a java.lang.Class
object.
A notable absence from this is the class name, which is available via crate::LoadClass records.
Implementations§
Source§impl<'a> Class<'a>
impl<'a> Class<'a>
pub fn obj_id(&self) -> Id
pub fn stack_trace_serial(&self) -> Serial
Sourcepub fn super_class_obj_id(&self) -> Option<Id>
pub fn super_class_obj_id(&self) -> Option<Id>
None
when there is no superclass, e.g. for java.lang.Object
.
pub fn class_loader_obj_id(&self) -> Option<Id>
pub fn signers_obj_id(&self) -> Option<Id>
pub fn protection_domain_obj_id(&self) -> Option<Id>
pub fn instance_size_bytes(&self) -> u32
Source§impl<'a> Class<'a>
impl<'a> Class<'a>
Sourcepub fn static_fields(&self) -> StaticFieldEntries<'_> ⓘ
pub fn static_fields(&self) -> StaticFieldEntries<'_> ⓘ
Iterate over StaticFieldEntry data.
Sourcepub fn instance_field_descriptors(&self) -> FieldDescriptors<'_> ⓘ
pub fn instance_field_descriptors(&self) -> FieldDescriptors<'_> ⓘ
Iterate over FieldDescriptor data.
Contains only the instance fields defined in this class, not in superclasses.
An object’s fields are serialized with the concrete type’s fields first, then that class’s superclass, and so forth, up to the root of the hierarchy.
Auto Trait Implementations§
impl<'a> Freeze for Class<'a>
impl<'a> RefUnwindSafe for Class<'a>
impl<'a> Send for Class<'a>
impl<'a> Sync for Class<'a>
impl<'a> Unpin for Class<'a>
impl<'a> UnwindSafe for Class<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more