Package ghidra.program.model.lang
Class AddressLabelInfo
java.lang.Object
ghidra.program.model.lang.AddressLabelInfo
- All Implemented Interfaces:
Comparable<AddressLabelInfo>
AddressLabelInfo
is a utility class for storing
an Address
together with a corresponding language-defined
label or alias that is within the global namespace which is
established with a SourceType of IMPORTED within a program.-
Constructor Summary
ConstructorDescriptionAddressLabelInfo
(Address addr, Integer sizeInBytes, String label, String description, boolean isPrimary, boolean isEntry, ProcessorSymbolType type, Boolean isVolatile) Constructor for class AddressLabelInfo -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(AddressLabelInfo info) final Address
final int
final String
final Address
final String
getLabel()
Returns the type of processor symbol (if this was defined by a pspec) or null if this is not a processor symbol or it was not specified in the pspec file.boolean
isEntry()
final boolean
final Boolean
toString()
-
Constructor Details
-
AddressLabelInfo
public AddressLabelInfo(Address addr, Integer sizeInBytes, String label, String description, boolean isPrimary, boolean isEntry, ProcessorSymbolType type, Boolean isVolatile) throws AddressOverflowException Constructor for class AddressLabelInfo- Parameters:
addr
- Address object that describes the memory addresssizeInBytes
- Integer describing the Size in bytes that the label applies to.label
- String label or alias for the Addressdescription
- Label descriptionisPrimary
- boolean describes if this object is the primary label for the Address 'addr'isEntry
- boolean describes if this object is an entry label for the Address 'addr'type
- ProcessorSymbolType the type of symbolisVolatile
- Boolean describes if the memory at this address is volatile- Throws:
AddressOverflowException
-
-
Method Details
-
getAddress
- Returns:
- object's address.
-
getEndAddress
- Returns:
- the object's end address.
-
getLabel
- Returns:
- the object's label or alias.
-
getDescription
- Returns:
- the object's description if it has one, null otherwise
-
getByteSize
public final int getByteSize()- Returns:
- the object's size in bytes. Always non-zero positive value and defaults to addressable unit size of associated address space.
-
isPrimary
public final boolean isPrimary()- Returns:
- whether the object is the primary label at the address.
-
isVolatile
- Returns:
- whether the object is volatile. Boolean.False when the address is explicitly not volatile. Boolean.True when the address is volatile. NULL when the volatility is not defined at this address.
-
getProcessorSymbolType
Returns the type of processor symbol (if this was defined by a pspec) or null if this is not a processor symbol or it was not specified in the pspec file. It basically allows a pspec file to give more information about a symbol such as if code or a code pointer is expected to be at the symbol's address.- Returns:
- the ProcesorSymbolType if it has one.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AddressLabelInfo>
-
isEntry
public boolean isEntry() -
toString
-