Package ghidra.program.model.util
Class AddressLabelInfo
java.lang.Object
ghidra.program.model.util.AddressLabelInfo
- All Implemented Interfaces:
Comparable<AddressLabelInfo>
AddressLabelInfo
is a utility class for storing
an Address
and a corresponding label or alias together.-
Constructor Summary
ConstructorsConstructorDescriptionAddressLabelInfo
(Address addr) Constructs a new AddressLabelInfo object with only address informationAddressLabelInfo
(Address addr, String label, boolean isPrimary, Namespace scope, SourceType symbolSource, boolean isEntry) AddressLabelInfo
(Address addr, String label, boolean isPrimary, Namespace scope, SourceType symbolSource, boolean isEntry, ProcessorSymbolType type) AddressLabelInfo
(Address addr, String label, boolean isPrimary, SourceType symbolSource) Constructs a new AddressLabelInfo object -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(AddressLabelInfo info) final Address
Returns the object's address.final String
getLabel()
Returns the object's label or alias.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.getScope()
Returns the scope for the symbol.boolean
isEntry()
final boolean
Returns whether the object is the primary label at the address.toString()
-
Constructor Details
-
AddressLabelInfo
Constructs a new AddressLabelInfo object- Parameters:
s
- symbol to initialize info from.
-
AddressLabelInfo
public AddressLabelInfo(Address addr, String label, boolean isPrimary, Namespace scope, SourceType symbolSource, boolean isEntry) -
AddressLabelInfo
public AddressLabelInfo(Address addr, String label, boolean isPrimary, Namespace scope, SourceType symbolSource, boolean isEntry, ProcessorSymbolType type) -
AddressLabelInfo
-
AddressLabelInfo
Constructs a new AddressLabelInfo object with only address information- Parameters:
addr
- the address to store in this object
-
-
Method Details
-
getAddress
Returns the object's address. -
getLabel
Returns the object's label or alias. -
isPrimary
public final boolean isPrimary()Returns whether the object is the primary label at the address. -
getScope
Returns the scope for the symbol. -
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>
-
getSource
-
isEntry
public boolean isEntry() -
toString
-