pub struct Class { /* private fields */ }Implementations§
Source§impl Class
impl Class
pub fn new() -> Self
pub fn try_read(read: &mut impl Read) -> Result<Self>
pub fn try_read_all(read: impl Read) -> Result<Self>
pub fn access_flags(&self) -> ClassAccessFlags
pub fn this_class(&self) -> ClassRef<'_>
pub fn super_class(&self) -> Option<ClassRef<'_>>
pub fn interfaces(&self) -> impl Iterator<Item = ClassRef<'_>>
pub fn clear(&mut self)
Trait Implementations§
Source§impl Visitor for Class
impl Visitor for Class
fn on_unused(&mut self, index: u16, value: UnusedPlaceholder)
fn on_class(&mut self, index: u16, value: Class)
fn on_field(&mut self, index: u16, value: Fieldref)
fn on_method(&mut self, index: u16, value: Methodref)
fn on_interface_method(&mut self, index: u16, value: InterfaceMethodref)
fn on_string(&mut self, index: u16, value: String)
fn on_integer(&mut self, index: u16, value: Integer)
fn on_float(&mut self, index: u16, value: Float)
fn on_long(&mut self, index: u16, value: Long)
fn on_double(&mut self, index: u16, value: Double)
fn on_name_and_tag(&mut self, index: u16, value: NameAndType)
fn on_utf8(&mut self, index: u16, value: Utf8)
fn on_method_handle(&mut self, index: u16, value: MethodHandle)
fn on_method_type(&mut self, index: u16, value: MethodType)
fn on_invoke_dynamic(&mut self, index: u16, value: InvokeDynamic)
Source§impl Visitor for Class
impl Visitor for Class
fn on_header(&mut self, _header: Header)
fn on_class_access_flags(&mut self, class_access_flags: ClassAccessFlags)
fn on_this_class(&mut self, this_class: u16)
fn on_super_class(&mut self, super_class: u16)
fn on_interface(&mut self, interface: u16)
fn on_class_attribute( &mut self, _attribute_index: u16, _class_attribute: Attribute, )
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> 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