pub struct MethodNode {
pub access_flags: u16,
pub name: String,
pub descriptor: String,
pub has_code: bool,
pub max_stack: u16,
pub max_locals: u16,
pub instructions: InsnList,
pub exception_table: Vec<ExceptionTableEntry>,
pub code_attributes: Vec<AttributeInfo>,
pub attributes: Vec<AttributeInfo>,
}Expand description
Fields§
§access_flags: u16A bitmask of access flags (e.g., ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED).
name: StringThe name of the method.
descriptor: StringThe method descriptor describing parameter types and return type.
has_code: boolWhether this method has a Code attribute.
This is false for native or abstract methods.
max_stack: u16The maximum stack size required by the method’s bytecode.
max_locals: u16The maximum number of local variables required by the method’s bytecode.
instructions: InsnListDecoded JVM instructions in an InsnList.
exception_table: Vec<ExceptionTableEntry>Exception handlers (raw entries in the code attribute).
code_attributes: Vec<AttributeInfo>Attributes associated with the Code attribute (e.g., LineNumberTable, LocalVariableTable).
attributes: Vec<AttributeInfo>Other attributes associated with this method (e.g., Exceptions, Synthetic, Deprecated, Signature).
Trait Implementations§
Source§impl Clone for MethodNode
impl Clone for MethodNode
Source§fn clone(&self) -> MethodNode
fn clone(&self) -> MethodNode
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 MethodNode
impl RefUnwindSafe for MethodNode
impl Send for MethodNode
impl Sync for MethodNode
impl Unpin for MethodNode
impl UnsafeUnpin for MethodNode
impl UnwindSafe for MethodNode
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