pub struct ClassWriter { /* private fields */ }Implementations§
Source§impl ClassWriter
impl ClassWriter
pub fn new(options: u32) -> Self
pub fn visit( &mut self, major: u16, minor: u16, access_flags: u16, name: &str, super_name: Option<&str>, interfaces: &[&str], ) -> &mut Self
pub fn visit_source_file(&mut self, name: &str) -> &mut Self
pub fn visit_method( &mut self, access_flags: u16, name: &str, descriptor: &str, ) -> MethodVisitor
pub fn visit_field( &mut self, access_flags: u16, name: &str, descriptor: &str, ) -> FieldVisitor
pub fn add_attribute(&mut self, attr: AttributeInfo) -> &mut Self
pub fn visit_end(&mut self)
pub fn to_class_node(self) -> Result<ClassNode, String>
pub fn to_bytes(self) -> Result<Vec<u8>, ClassWriteError>
Auto Trait Implementations§
impl Freeze for ClassWriter
impl RefUnwindSafe for ClassWriter
impl Send for ClassWriter
impl Sync for ClassWriter
impl Unpin for ClassWriter
impl UnsafeUnpin for ClassWriter
impl UnwindSafe for ClassWriter
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