pub struct ClassDefItem { /* private fields */ }Expand description
Class definition item
This struct contains all the metadata of a class. The optional class_data item then contains
the list of fields and methods (with bytecode) in this class. Note that it is possible that a
class contains not fields or methods, in which case class_data will be None.
Implementations§
Source§impl ClassDefItem
impl ClassDefItem
Sourcepub fn get_class_name(&self) -> &String
pub fn get_class_name(&self) -> &String
Get the name from a class definition
Sourcepub fn get_access_flags(&self) -> String
pub fn get_access_flags(&self) -> String
Get the access flags of a class definition
Sourcepub fn get_methods(&self) -> Vec<&EncodedMethod>
pub fn get_methods(&self) -> Vec<&EncodedMethod>
Get the methods of a class definition
Sourcepub fn get_encoded_method(&self, method_name: &String) -> Option<&EncodedMethod>
pub fn get_encoded_method(&self, method_name: &String) -> Option<&EncodedMethod>
Get a method from a class definition using the method name
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClassDefItem
impl RefUnwindSafe for ClassDefItem
impl Send for ClassDefItem
impl Sync for ClassDefItem
impl Unpin for ClassDefItem
impl UnwindSafe for ClassDefItem
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