pub struct JVMClass {
pub major: u16,
pub minor: u16,
pub access_flags: Vec<AccessFlag>,
pub this_class: u16,
pub super_class: u16,
pub constants: Vec<Constant>,
pub interfaces: Vec<u16>,
pub fields: Vec<Field>,
pub methods: Vec<Method>,
pub attributes: Vec<Attribute>,
}
Fields§
§major: u16
§minor: u16
§access_flags: Vec<AccessFlag>
§this_class: u16
§super_class: u16
§constants: Vec<Constant>
§interfaces: Vec<u16>
§fields: Vec<Field>
§methods: Vec<Method>
§attributes: Vec<Attribute>
Implementations§
Source§impl JVMClass
impl JVMClass
pub fn new() -> Self
pub fn load<R: Read>(&mut self, r: &mut R) -> Result<(), Box<dyn Error>>
pub fn store<W: Write + Seek>(&self, w: &mut W) -> Result<(), Box<dyn Error>>
pub fn get_string(&self, id: u16) -> Result<&str, JavaError>
pub fn get_string_index(&self, string: &str) -> Result<u16, JavaError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JVMClass
impl RefUnwindSafe for JVMClass
impl Send for JVMClass
impl Sync for JVMClass
impl Unpin for JVMClass
impl UnwindSafe for JVMClass
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