pub struct JvmMethodCompat {
pub access_flags: u16,
pub name_index: u16,
pub descriptor_index: u16,
pub instructions: Vec<JvmInstructionCompat>,
pub max_stack: u16,
pub max_locals: u16,
}Expand description
向后兼容的 JvmMethod 结构
Fields§
§access_flags: u16访问标志
name_index: u16方法名索引
descriptor_index: u16描述符索引
instructions: Vec<JvmInstructionCompat>指令列表
max_stack: u16最大栈深度
max_locals: u16最大局部变量数
Implementations§
Source§impl JvmMethodCompat
impl JvmMethodCompat
Sourcepub fn add_instruction(&mut self, instruction: JvmInstructionCompat)
pub fn add_instruction(&mut self, instruction: JvmInstructionCompat)
添加指令
Sourcepub fn code_length(&self) -> u32
pub fn code_length(&self) -> u32
获取代码长度
Trait Implementations§
Source§impl Clone for JvmMethodCompat
impl Clone for JvmMethodCompat
Source§fn clone(&self) -> JvmMethodCompat
fn clone(&self) -> JvmMethodCompat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JvmMethodCompat
impl RefUnwindSafe for JvmMethodCompat
impl Send for JvmMethodCompat
impl Sync for JvmMethodCompat
impl Unpin for JvmMethodCompat
impl UnsafeUnpin for JvmMethodCompat
impl UnwindSafe for JvmMethodCompat
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