Class DWARFAttribute
java.lang.Object
ghidra.app.util.bin.format.dwarf.attribs.DWARFAttribute
Represents an attribute contained in a DIE.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DWARFAttributeId.AttrDefprotected final DebugInfoEntryprotected final DWARFAttributeValue -
Constructor Summary
ConstructorsConstructorDescriptionDWARFAttribute(DebugInfoEntry die, DWARFAttributeId.AttrDef def, DWARFAttributeValue value) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the serialization format identifier of this attribute (eg. DW_FORM_ref4).Returns string name of this attribute's identifier (eg. "DW_AT_high_pc").getCU()Returns the compilation unit that contains the attribute's DIE.getDIE()Returns the DIE that contains this attribute.getValue()Returns the value of this attribute.<T extends DWARFAttributeValue>
TReturns the value of this attribute, as a specific type.Returns the value of this attribute, as a formatted string.inthashCode()toString()
-
Field Details
-
die
-
def
-
value
-
-
Constructor Details
-
DWARFAttribute
-
-
Method Details
-
getDIE
Returns the DIE that contains this attribute.- Returns:
- the DIE that contains this attribute
-
getCU
Returns the compilation unit that contains the attribute's DIE.- Returns:
- the compilation unit that contains the attribute's DIE
-
getValue
Returns the value of this attribute.- Returns:
- the value of this attribute
-
getValue
Returns the value of this attribute, as a specific type.- Type Parameters:
T- expected type of the attribute value- Parameters:
clazz- class of the expected type of the attribute value- Returns:
- the value of this attribute, as a specific type
-
getAttributeName
Returns string name of this attribute's identifier (eg. "DW_AT_high_pc").- Returns:
- string name of this attribute's identifier (eg. "DW_AT_high_pc")
-
getAttributeForm
Returns the serialization format identifier of this attribute (eg. DW_FORM_ref4).- Returns:
- the serialization format identifier of this attribute (eg. DW_FORM_ref4)
-
getValueString
Returns the value of this attribute, as a formatted string.- Returns:
- the value of this attribute, as a formatted string
-
toString
-
hashCode
-
equals
-