pub enum Attribute {
AnnotationDefault(ElementValue),
BootstrapMethods(Vec<BootstrapMethod>),
Code {
max_stack: u16,
max_locals: u16,
instructions: HashMap<u32, Instruction>,
exceptions: Vec<Exception>,
attributes: Vec<Attribute>,
},
ConstantValue(u16),
Deprecated,
EnclosingMethod {
class_index: u16,
method_index: u16,
},
Exceptions(Vec<u16>),
InnerClasses(Vec<InnerClass>),
LineNumberTable(Vec<LineNumber>),
LocalVariableTable(Vec<LocalVariable>),
LocalVariableTypeTable(Vec<LocalVariableType>),
MethodParameters(Vec<MethodParameter>),
Module {
name: u16,
flags: AccessFlags,
version: u16,
requires: Vec<Requirement>,
exports: Vec<Export>,
opens: Vec<Opening>,
uses: Vec<u16>,
provides: Vec<Provider>,
},
ModuleMainClass(u16),
ModulePackages(Vec<u16>),
RuntimeVisibleAnnotations(Vec<Annotation>),
RuntimeInvisibleAnnotations(Vec<Annotation>),
RuntimeVisibleParameterAnnotations(Vec<Vec<Annotation>>),
RuntimeInvisibleParameterAnnotations(Vec<Vec<Annotation>>),
RuntimeVisibleTypeAnnotations(Vec<TypeAnnotation>),
RuntimeInvisibleTypeAnnotations(Vec<TypeAnnotation>),
Signature(u16),
Synthetic,
SourceFile(u16),
SourceDebugExtension(String),
StackMapTable(Vec<StackMapFrame>),
Unknown(u16, Vec<u8>),
}
Fields of Code
Fields of EnclosingMethod
class_index: u16 | |
method_index: u16 | |
Fields of Module
ModuleMainClass(u16)
Formats the value using the given formatter.