Enum rust_jvm::parser::class_file::Error [] [src]

pub enum Error {
    ClassFile,
    Magic,
    ConstantPool {
        constant_pool_count: usize,
    },
    ConstantPoolEntry {
        index: usize,
    },
    ConstantPoolInfo,
    UnknownConstantPoolTag {
        tag: u8,
    },
    ConstantPoolIndexOutOfBounds {
        index: usize,
    },
    UnexpectedConstantPoolType {
        index: usize,
        expected: Tag,
        actual: Tag,
    },
    IllegalModifiedUtf8 {
        byte: u8,
    },
    ModifiedUtf8 {
        length: usize,
    },
    UnknownConstantPoolMethodReferenceTag {
        tag: u8,
    },
    Interfaces {
        interfaces_count: usize,
    },
    Fields {
        fields_count: usize,
    },
    FieldInfo,
    FieldAttributes {
        attributes_count: usize,
    },
    Methods {
        methods_count: usize,
    },
    MethodInfo,
    MethodAttributes {
        attributes_count: usize,
    },
    ClassAttributes {
        attributes_count: usize,
    },
    Attribute,
    AttributeInfo {
        attribute_name: String,
        attribute_name_index: usize,
        attribute_length: usize,
    },
    AttributeInfoNameIndexOutOfBounds {
        attribute_name_index: usize,
    },
    CodeAttributes {
        attributes_count: usize,
    },
    ExceptionTableEntry,
    StackMapTable {
        number_of_entries: usize,
    },
    StackMapFrame,
    UnknownStackMapFrameTag {
        tag: u8,
    },
    ReservedStackMapFrameTag {
        tag: u8,
    },
    VerificationTypeInfo,
    UnknownVerificationTypeInfoTag {
        tag: u8,
    },
    InnerClasses {
        number_of_classes: usize,
    },
    InnerClass,
    Signature,
    MethodParameters {
        parameters_count: usize,
    },
    MethodParameter,
    ElementValuePair,
    ElementValuePairs {
        num_element_value_pairs: usize,
    },
    ElementValue,
    UnknownElementValueTag {
        tag: u8,
    },
    ElementValueArray {
        num_values: usize,
    },
    Annotations {
        num_annotations: usize,
    },
    ParameterAnnotations {
        num_parameters: usize,
    },
    TypeAnnotations {
        num_annotations: usize,
    },
    UnknownTargetTypeTag {
        tag: u8,
    },
    LocalVariableTarget {
        table_length: usize,
    },
    TypePath {
        path_length: usize,
    },
    SourceFile,
    SourceDebugExtension,
    LineNumberTable {
        table_length: usize,
    },
    LineNumberInfo,
    LocalVariableTable {
        table_length: usize,
    },
    LocalVariableInfo,
    LocalVariableTypeTable {
        table_length: usize,
    },
    LocalVariableTypeInfo,
}

Variants

ClassFile
Magic
ConstantPool

Fields

constant_pool_count
ConstantPoolEntry

Fields

index
ConstantPoolInfo
UnknownConstantPoolTag

Fields

tag
ConstantPoolIndexOutOfBounds

Fields

index
UnexpectedConstantPoolType

Fields

index
expected
actual
IllegalModifiedUtf8

Fields

byte
ModifiedUtf8

Fields

length
UnknownConstantPoolMethodReferenceTag

Fields

tag
Interfaces

Fields

interfaces_count
Fields

Fields

fields_count
FieldInfo
FieldAttributes

Fields

attributes_count
Methods

Fields

methods_count
MethodInfo
MethodAttributes

Fields

attributes_count
ClassAttributes

Fields

attributes_count
Attribute
AttributeInfo

Fields

attribute_name
attribute_name_index
attribute_length
AttributeInfoNameIndexOutOfBounds

Fields

attribute_name_index
CodeAttributes

Fields

attributes_count
ExceptionTableEntry
StackMapTable

Fields

number_of_entries
StackMapFrame
UnknownStackMapFrameTag

Fields

tag
ReservedStackMapFrameTag

Fields

tag
VerificationTypeInfo
UnknownVerificationTypeInfoTag

Fields

tag
InnerClasses

Fields

number_of_classes
InnerClass
Signature
MethodParameters

Fields

parameters_count
MethodParameter
ElementValuePair
ElementValuePairs

Fields

num_element_value_pairs
ElementValue
UnknownElementValueTag

Fields

tag
ElementValueArray

Fields

num_values
Annotations

Fields

num_annotations
ParameterAnnotations

Fields

num_parameters
TypeAnnotations

Fields

num_annotations
UnknownTargetTypeTag

Fields

tag
LocalVariableTarget

Fields

table_length
TypePath

Fields

path_length
SourceFile
SourceDebugExtension
LineNumberTable

Fields

table_length
LineNumberInfo
LocalVariableTable

Fields

table_length
LocalVariableInfo
LocalVariableTypeTable

Fields

table_length
LocalVariableTypeInfo

Trait Implementations

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result