pub struct ClassNode {Show 23 fields
pub minor_version: u16,
pub major_version: u16,
pub access: u16,
pub name: InternalNameRef,
pub signature: Option<StrRef>,
pub super_name: Option<InternalNameRef>,
pub interfaces: Vec<InternalNameRef>,
pub source_file: Option<StrRef>,
pub source_debug: Option<StrRef>,
pub module: Option<ModuleNode>,
pub outer_class: Option<InternalNameRef>,
pub outer_method_name: Option<StrRef>,
pub outer_method_desc: Option<DescriptorRef>,
pub annotations: Vec<AnnotationNode>,
pub type_annotations: Vec<TypeAnnotationNode>,
pub attrs: Vec<UnknownAttribute>,
pub inner_classes: Vec<InnerClassNode>,
pub nest_host_class: Option<InternalNameRef>,
pub nest_members: Vec<InternalNameRef>,
pub permitted_subclasses: Vec<InternalNameRef>,
pub record_components: Vec<RecordComponentNode>,
pub fields: Vec<FieldNode>,
pub methods: Vec<MethodNode>,
}
Fields§
§minor_version: u16
The class version.
major_version: u16
§access: u16
The class’s access flags (see Opcodes).
name: InternalNameRef
The internal name of this class.
signature: Option<StrRef>
The signature of this class. May be None.
super_name: Option<InternalNameRef>
The internal of name of the super class.
For interfaces, the super class is Object
. May be None, but only for the
Object
class.
interfaces: Vec<InternalNameRef>
The internal names of the interfaces directly implemented by this class
source_file: Option<StrRef>
The name of the source file from which this class was compiled. May be None.
source_debug: Option<StrRef>
The correspondence between source and compiled elements of this class. May be None.
module: Option<ModuleNode>
The module stored in this class. May be None.
outer_class: Option<InternalNameRef>
The internal name of the enclosing class of this class. Must be None if this class is not a local or anonymous class.
outer_method_name: Option<StrRef>
The name of the method that contains the class, or None if the class has no enclosing class, or is not enclosed in a method or constructor of its enclosing class (e.g. if it is enclosed in an instance initializer, static initializer, instance variable initializer, or class variable initializer).
outer_method_desc: Option<DescriptorRef>
The descriptor of the method that contains the class, or None if the class has no enclosing class, or is not enclosed in a method or constructor of its enclosing class (e.g. if it is enclosed in an instance initializer, static initializer, instance variable initializer, or class variable initializer).
annotations: Vec<AnnotationNode>
§type_annotations: Vec<TypeAnnotationNode>
§attrs: Vec<UnknownAttribute>
The non-standard attributes of this class.
inner_classes: Vec<InnerClassNode>
The inner classes of this class.
nest_host_class: Option<InternalNameRef>
The internal name of the nest host class of this class. May be None.
nest_members: Vec<InternalNameRef>
The internal names of the nest members of this class.
permitted_subclasses: Vec<InternalNameRef>
The internal names of the permitted subclasses of this class.
record_components: Vec<RecordComponentNode>
The record components of this class.
fields: Vec<FieldNode>
The fields of this class.
methods: Vec<MethodNode>
The methods of this class.