pub struct FieldVisitor { /* private fields */ }Expand description
A visitor to visit a Java field.
Implementations§
Source§impl FieldVisitor
impl FieldVisitor
pub fn new( access_flags: u16, name: &str, descriptor: &str, class_ptr: *mut ClassWriter, ) -> Self
Sourcepub fn add_attribute(&mut self, attr: AttributeInfo) -> &mut Self
pub fn add_attribute(&mut self, attr: AttributeInfo) -> &mut Self
Adds an attribute to the field.
Sourcepub fn visit_end(self, class: &mut ClassWriter)
pub fn visit_end(self, class: &mut ClassWriter)
Finalizes the field and attaches it to the parent ClassWriter.
If you don’t call this, the field is still attached when the visitor is dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldVisitor
impl RefUnwindSafe for FieldVisitor
impl !Send for FieldVisitor
impl !Sync for FieldVisitor
impl Unpin for FieldVisitor
impl UnsafeUnpin for FieldVisitor
impl UnwindSafe for FieldVisitor
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