Struct ClassNode

Source
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.

Implementations§

Trait Implementations§

Source§

impl Clone for ClassNode

Source§

fn clone(&self) -> ClassNode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ClassNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.