pub enum JvmAttribute {
Show 15 variants
SourceFile {
filename: String,
},
ConstantValue {
value: JvmConstantPoolEntry,
},
Code {
max_stack: u16,
max_locals: u16,
instructions: Vec<JvmInstruction>,
exception_table: Vec<JvmExceptionHandler>,
attributes: Vec<JvmAttribute>,
},
StackMapTable {
frames: Vec<JvmStackMapFrame>,
},
Exceptions {
exceptions: Vec<String>,
},
InnerClasses {
classes: Vec<JvmInnerClass>,
},
EnclosingMethod {
class_name: String,
method_name: Option<String>,
method_descriptor: Option<String>,
},
Signature {
signature: String,
},
LineNumberTable {
entries: Vec<JvmLineNumberEntry>,
},
LocalVariableTable {
entries: Vec<JvmLocalVariableEntry>,
},
BootstrapMethods {
methods: Vec<JvmBootstrapMethod>,
},
RuntimeVisibleAnnotations {
annotations: Vec<JvmAnnotation>,
},
RuntimeInvisibleAnnotations {
annotations: Vec<JvmAnnotation>,
},
MethodParameters {
parameters: Vec<JvmMethodParameter>,
},
Unknown {
name: String,
data: Vec<u8>,
},
}Expand description
JVM attribute
Variants§
SourceFile
Source file name
ConstantValue
Constant value for a field
Fields
§
value: JvmConstantPoolEntryThe constant value entry in the pool
Code
Method code
Fields
§
instructions: Vec<JvmInstruction>List of instructions
§
exception_table: Vec<JvmExceptionHandler>Exception handler table
§
attributes: Vec<JvmAttribute>Code attributes
StackMapTable
Stack map table for verification
Fields
§
frames: Vec<JvmStackMapFrame>Stack map frames
Exceptions
Exceptions thrown by a method
InnerClasses
Inner classes information
Fields
§
classes: Vec<JvmInnerClass>List of inner classes
EnclosingMethod
Enclosing method of a local or anonymous class
Fields
Signature
Generic signature
LineNumberTable
Line number table for debugging
Fields
§
entries: Vec<JvmLineNumberEntry>Line number entries
LocalVariableTable
Local variable table for debugging
Fields
§
entries: Vec<JvmLocalVariableEntry>Local variable entries
BootstrapMethods
Bootstrap methods for invokedynamic
Fields
§
methods: Vec<JvmBootstrapMethod>Bootstrap method entries
RuntimeVisibleAnnotations
Runtime visible annotations
Fields
§
annotations: Vec<JvmAnnotation>Annotations
RuntimeInvisibleAnnotations
Runtime invisible annotations
Fields
§
annotations: Vec<JvmAnnotation>Annotations
MethodParameters
Method parameters information
Fields
§
parameters: Vec<JvmMethodParameter>Method parameters
Unknown
Unknown attribute
Trait Implementations§
Source§impl Clone for JvmAttribute
impl Clone for JvmAttribute
Source§fn clone(&self) -> JvmAttribute
fn clone(&self) -> JvmAttribute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JvmAttribute
impl RefUnwindSafe for JvmAttribute
impl Send for JvmAttribute
impl Sync for JvmAttribute
impl Unpin for JvmAttribute
impl UnsafeUnpin for JvmAttribute
impl UnwindSafe for JvmAttribute
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