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>,
pub exception_handlers: Vec<String>,
pub annotations: Vec<String>,
pub attributes: Vec<String>,
}Expand description
AST node for a JASM method declaration.
Fields§
§modifiers: Vec<String>Access modifiers (public, static, etc.).
name_and_descriptor: StringMethod name and type descriptor (e.g., “main”:“([Ljava/lang/String)V”).
stack_size: Option<u32>Stack size.
locals_count: Option<u32>Number of local variables.
instructions: Vec<JasmInstruction>List of instructions.
exception_handlers: Vec<String>List of exception handlers.
annotations: Vec<String>List of annotations.
attributes: Vec<String>List of attributes.
Trait Implementations§
Source§impl AsDocument for JasmMethod
Available on crate feature oak-pretty-print only.
impl AsDocument for JasmMethod
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
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 moreSource§impl Debug for JasmMethod
impl Debug for JasmMethod
Source§impl<'de> Deserialize<'de> for JasmMethod
impl<'de> Deserialize<'de> for JasmMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for JasmMethod
impl Serialize for JasmMethod
Source§impl ToSource for JasmMethod
impl ToSource for JasmMethod
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for JasmMethod
impl RefUnwindSafe for JasmMethod
impl Send for JasmMethod
impl Sync for JasmMethod
impl Unpin for JasmMethod
impl UnsafeUnpin 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