pub enum JvmAttribute {
SourceFile {
filename: String,
},
Code {
max_stack: u16,
max_locals: u16,
code: Vec<u8>,
exception_table: Vec<RawExceptionHandler>,
attributes: Vec<JvmAttribute>,
},
ConstantValue {
value: JvmConstantPoolEntry,
},
Signature {
signature: String,
},
Exceptions {
exceptions: Vec<String>,
},
LineNumberTable {
entries: Vec<(u16, u16)>,
},
LocalVariableTable {
entries: Vec<JvmLocalVariable>,
},
InnerClasses {
classes: Vec<JvmInnerClass>,
},
EnclosingMethod {
class_name: String,
method_name: Option<String>,
method_descriptor: Option<String>,
},
StackMapTable {
frames: Vec<JvmStackMapFrame>,
},
Unknown {
name: String,
data: Vec<u8>,
},
}Expand description
JVM 属性
Variants§
SourceFile
源文件属性
Code
代码属性
ConstantValue
常量值属性
Fields
§
value: JvmConstantPoolEntrySignature
Signature 属性
Exceptions
异常属性
LineNumberTable
行号表属性
LocalVariableTable
局部变量表属性
Fields
§
entries: Vec<JvmLocalVariable>InnerClasses
内部类属性
Fields
§
classes: Vec<JvmInnerClass>EnclosingMethod
封闭方法属性
StackMapTable
StackMapTable 属性
Fields
§
frames: Vec<JvmStackMapFrame>Unknown
未知属性
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 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