Skip to main content

ClassVisitor

Trait ClassVisitor 

Source
pub trait ClassVisitor {
    // Provided methods
    fn visit(
        &mut self,
        _major: u16,
        _minor: u16,
        _access_flags: u16,
        _name: &str,
        _super_name: Option<&str>,
        _interfaces: &[String],
    ) { ... }
    fn visit_source(&mut self, _source: &str) { ... }
    fn visit_field(
        &mut self,
        _access_flags: u16,
        _name: &str,
        _descriptor: &str,
    ) -> Option<Box<dyn FieldVisitor>> { ... }
    fn visit_method(
        &mut self,
        _access_flags: u16,
        _name: &str,
        _descriptor: &str,
    ) -> Option<Box<dyn MethodVisitor>> { ... }
    fn visit_end(&mut self) { ... }
}

Provided Methods§

Source

fn visit( &mut self, _major: u16, _minor: u16, _access_flags: u16, _name: &str, _super_name: Option<&str>, _interfaces: &[String], )

Source

fn visit_source(&mut self, _source: &str)

Source

fn visit_field( &mut self, _access_flags: u16, _name: &str, _descriptor: &str, ) -> Option<Box<dyn FieldVisitor>>

Source

fn visit_method( &mut self, _access_flags: u16, _name: &str, _descriptor: &str, ) -> Option<Box<dyn MethodVisitor>>

Source

fn visit_end(&mut self)

Implementors§