Package ghidra.program.model.address
Class SpecialAddress
java.lang.Object
ghidra.program.model.address.GenericAddress
ghidra.program.model.address.SpecialAddress
- All Implemented Interfaces:
Address,Comparable<Address>
Class used to represent "special addresses"
-
Field Summary
Fields inherited from class ghidra.program.model.address.GenericAddress
addrSpace, offset, zerosFields inherited from interface ghidra.program.model.address.Address
EXT_FROM_ADDRESS, NO_ADDRESS, SEPARATOR, SEPARATOR_CHAR -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns a String representation of the address in hex and padded to the appropriate size.toString(boolean showAddressSpace) Returns a String representation that may include the address space nameReturns a String representation of the address using the given string as a prefix.Methods inherited from class ghidra.program.model.address.GenericAddress
add, addNoWrap, addNoWrap, addWrap, addWrapSpace, compareTo, equals, getAddress, getAddressableWordOffset, getAddressSpace, getNewAddress, getNewAddress, getNewTruncatedAddress, getOffset, getOffsetAsBigInteger, getPhysicalAddress, getPointerSize, getSize, getUnsignedOffset, hashCode, hasSameAddressSpace, isConstantAddress, isExternalAddress, isHashAddress, isLoadedMemoryAddress, isMemoryAddress, isNonLoadedMemoryAddress, isRegisterAddress, isStackAddress, isSuccessor, isUniqueAddress, isVariableAddress, next, previous, subtract, subtract, subtractNoWrap, subtractWrap, subtractWrapSpace, toString, toString
-
Method Details
-
toString
Description copied from interface:AddressReturns a String representation of the address in hex and padded to the appropriate size.- Specified by:
toStringin interfaceAddress- Overrides:
toStringin classGenericAddress- Returns:
- the string
-
toString
Description copied from interface:AddressReturns a String representation that may include the address space name- Specified by:
toStringin interfaceAddress- Overrides:
toStringin classGenericAddress- Parameters:
showAddressSpace- true if the address space should be included in resulting string.- Returns:
- String the string representation of the address
-
toString
Description copied from interface:AddressReturns a String representation of the address using the given string as a prefix. Equivalent of prefix + ":" + toString(false)- Specified by:
toStringin interfaceAddress- Overrides:
toStringin classGenericAddress- Parameters:
prefix- the string to prepend to the address string.- Returns:
- the string
-