pub struct MethodNode {
pub access_flags: u16,
pub name_index: u16,
pub descriptor_index: u16,
pub name: String,
pub descriptor: String,
pub code: Option<CodeAttribute>,
pub attributes: Vec<AttributeInfo>,
}Expand description
Fields§
§access_flags: u16A bitmask of access flags (e.g., ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED).
name_index: u16The constant pool index containing the name of the method (e.g., <init> or main).
descriptor_index: u16The constant pool index containing the method descriptor (e.g., ([Ljava/lang/String;)V).
name: StringThe name of the method.
descriptor: StringThe method descriptor describing parameter types and return type.
code: Option<CodeAttribute>The Code attribute containing the JVM bytecode instructions and exception handlers.
This will be None for native or abstract methods.
attributes: Vec<AttributeInfo>Other attributes associated with this method (e.g., Exceptions, Synthetic, Deprecated, Signature).
Note that the Code attribute is stored separately in the code field for convenience.
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