pub struct JasmMethod {
pub modifiers: Vec<String>,
pub name_and_descriptor: String,
pub stack_size: Option<u32>,
pub locals_count: Option<u32>,
pub instructions: Vec<JasmInstruction>,
}Expand description
JASM 方法声明的 AST 节点
Fields§
§modifiers: Vec<String>访问修饰符(如 public, static 等)
name_and_descriptor: String方法名和类型描述符(如 “main”:“([Ljava/lang/String;)V”)
stack_size: Option<u32>栈大小
locals_count: Option<u32>局部变量数量
instructions: Vec<JasmInstruction>方法体指令
Trait Implementations§
Source§impl Clone for JasmMethod
impl Clone for JasmMethod
Source§fn clone(&self) -> JasmMethod
fn clone(&self) -> JasmMethod
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 JasmMethod
impl RefUnwindSafe for JasmMethod
impl Send for JasmMethod
impl Sync for JasmMethod
impl Unpin for JasmMethod
impl UnwindSafe for JasmMethod
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