pub struct JasmClass {
pub modifiers: Vec<String>,
pub name: String,
pub version: Option<String>,
pub methods: Vec<JasmMethod>,
pub fields: Vec<JasmField>,
pub source_file: Option<String>,
pub super_class: Option<String>,
pub interfaces: Vec<String>,
pub annotations: Vec<String>,
pub attributes: Vec<String>,
}Expand description
AST node for a JASM class declaration.
Fields§
§modifiers: Vec<String>Access modifiers (public, private, etc.).
name: StringClass name.
version: Option<String>Version information (e.g., 65:0).
methods: Vec<JasmMethod>List of methods.
fields: Vec<JasmField>List of fields.
source_file: Option<String>Source file information.
super_class: Option<String>Super class information.
interfaces: Vec<String>List of implemented interfaces.
annotations: Vec<String>List of annotations.
attributes: Vec<String>List of attributes.
Trait Implementations§
Source§impl AsDocument for JasmClass
Available on crate feature oak-pretty-print only.
impl AsDocument for JasmClass
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<'de> Deserialize<'de> for JasmClass
impl<'de> Deserialize<'de> for JasmClass
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
Auto Trait Implementations§
impl Freeze for JasmClass
impl RefUnwindSafe for JasmClass
impl Send for JasmClass
impl Sync for JasmClass
impl Unpin for JasmClass
impl UnsafeUnpin for JasmClass
impl UnwindSafe for JasmClass
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