MCPcopy Create free account
hub / github.com/andreabergia/rjvm / ClassFileMethodCode

Class ClassFileMethodCode

reader/src/class_file_method.rs:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76/// Code of a given method
77#[derive(Debug, Default, PartialEq)]
78pub struct ClassFileMethodCode {
79 /// Maximum depth of the stack at any time
80 pub max_stack: u16,
81 /// Number of local variables used by the method
82 pub max_locals: u16,
83 /// Raw bytecode
84 pub code: Vec<u8>,
85 pub exception_table: ExceptionTable,
86 pub line_number_table: Option<LineNumberTable>,
87
88 /// Generic unmapped attributes of the code
89 // TODO: replace with some proper struct
90 pub attributes: Vec<Attribute>,
91}
92
93impl fmt::Display for ClassFileMethodCode {
94 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected