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

Class ClassFileMethod

reader/src/class_file_method.rs:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13/// Models a method in a class
14#[derive(Debug, PartialEq)]
15pub struct ClassFileMethod {
16 pub flags: MethodFlags,
17 pub name: String,
18 /// The type descriptor in the internal JVM form, i.e. something like (L)I in the unparsed form
19 pub type_descriptor: String,
20 /// Parsed form of the method descriptor
21 pub parsed_type_descriptor: MethodDescriptor,
22 /// Generic attributes of the method
23 // TODO: replace with some proper struct
24 pub attributes: Vec<Attribute>,
25 pub code: Option<ClassFileMethodCode>,
26 pub deprecated: bool,
27 /// List of exceptions in the `throws` clause of the method
28 pub thrown_exceptions: Vec<String>,
29}
30
31impl fmt::Display for ClassFileMethod {
32 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected