Enum jbcrs::basic::ElementValue
[−]
[src]
pub enum ElementValue { Byte(u16), Short(u16), Char(u16), Int(u16), Long(u16), Float(u16), Double(u16), Boolean(u16), String(u16), Enum { type_name: u16, const_name: u16, }, Class(u16), Annotation(Box<Annotation>), Array(Vec<ElementValue>), }
Variants
Byte(u16)
The index to the constant pool
which must be an Item::Integer(_)
.
Short(u16)
The index to the constant pool
which must be an Item::Integer(_)
.
Char(u16)
The index to the constant pool
which must be an Item::Integer(_)
.
Int(u16)
The index to the constant pool
which must be an Item::Integer(_)
.
Long(u16)
The index to the constant pool
which must be an Item::Long(_)
.
Float(u16)
The index to the constant pool
which must be an Item::Float(_)
.
Double(u16)
The index to the constant pool
which must be an Item::Double(_)
.
Boolean(u16)
The index to the constant pool
which must be an Item::Integer(_)
.
Yes, it really needs a constant pool entry for this.
String(u16)
The index to the constant pool
which must be an Item::UTF8(_)
.
Enum
An enum constant.
Fields of Enum
type_name: u16 | The index to the constant pool,
which must be an |
const_name: u16 | The index to the constant pool,
which must be an |
Class(u16)
A class literal.
The index to the constant pool
which must be an Item::UTF8(_)
representing a return descriptor.
Annotation(Box<Annotation>)
Another annotation.
Array(Vec<ElementValue>)
Multiple ElementValue
s