Enum Class DWARFForm
- All Implemented Interfaces:
Serializable
,Comparable<DWARFForm>
,Constable
DWARF attribute encodings.
Unknown encodings will prevent deserialization of DIE records.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Returns the id of this DWARFForm.long
getSize
(DWARFFormContext context) Returns the size the attribute value occupies in the stream.boolean
isClass
(DWARFAttributeClass attrClass) static DWARFForm
of
(int key) Find the form value given raw int.readValue
(DWARFFormContext context) Reads a DIE attribute value from a stream.static DWARFForm
Returns the enum constant of this class with the specified name.static DWARFForm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DW_FORM_addr
-
DW_FORM_block2
-
DW_FORM_block4
-
DW_FORM_data2
-
DW_FORM_data4
-
DW_FORM_data8
-
DW_FORM_string
-
DW_FORM_block
-
DW_FORM_block1
-
DW_FORM_data1
-
DW_FORM_flag
-
DW_FORM_sdata
-
DW_FORM_strp
-
DW_FORM_udata
-
DW_FORM_ref_addr
-
DW_FORM_ref1
-
DW_FORM_ref2
-
DW_FORM_ref4
-
DW_FORM_ref8
-
DW_FORM_ref_udata
-
DW_FORM_indirect
-
DW_FORM_sec_offset
-
DW_FORM_exprloc
-
DW_FORM_flag_present
-
DW_FORM_strx
-
DW_FORM_addrx
-
DW_FORM_ref_sup4
-
DW_FORM_strp_sup
-
DW_FORM_data16
-
DW_FORM_line_strp
-
DW_FORM_ref_sig8
-
DW_FORM_implicit_const
-
DW_FORM_loclistx
-
DW_FORM_rnglistx
-
DW_FORM_ref_sup8
-
DW_FORM_strx1
-
DW_FORM_strx2
-
DW_FORM_strx3
-
DW_FORM_strx4
-
DW_FORM_addrx1
-
DW_FORM_addrx2
-
DW_FORM_addrx3
-
DW_FORM_addrx4
-
-
Field Details
-
EOL
public static final int EOL- See Also:
-
MAX_BLOCK4_SIZE
public static final int MAX_BLOCK4_SIZE- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public int getId()Returns the id of this DWARFForm.- Returns:
- DWARFForm numeric id
-
getFormClasses
-
isClass
-
getSize
Returns the size the attribute value occupies in the stream.This default implementation handles static sizes, as well as LEB128 and DWARF_INT sizes. DWARFForms that are more complex and marked as
DYNAMIC_SIZE
will need to override this method and provide custom logic to determine the size of a value.- Parameters:
context
-DWARFFormContext
- Returns:
- size of the attribute value
- Throws:
IOException
- if error reading
-
readValue
Reads a DIE attribute value from a stream.- Parameters:
context
-DWARFFormContext
- Returns:
DWARFAttributeValue
- Throws:
IOException
- if error reading
-
of
Find the form value given raw int.- Parameters:
key
- value to check- Returns:
- DWARFForm enum, or null if it is an unknown form
-