| 13 | /// Models a method in a class |
| 14 | #[derive(Debug, PartialEq)] |
| 15 | pub 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 | |
| 31 | impl fmt::Display for ClassFileMethod { |
| 32 | fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { |
nothing calls this directly
no outgoing calls
no test coverage detected