Package ghidra.program.model.address
Class SpecialAddress
- java.lang.Object
-
- ghidra.program.model.address.GenericAddress
-
- ghidra.program.model.address.SpecialAddress
-
public class SpecialAddress extends GenericAddress
Class used represent "special addresses"
-
-
Field Summary
-
Fields inherited from class ghidra.program.model.address.GenericAddress
addrSpace, offset, zeros
-
Fields inherited from interface ghidra.program.model.address.Address
EXT_FROM_ADDRESS, NO_ADDRESS, SEPARATOR_CHAR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()Returns a String representation of the address in hex and padded to the appropriate size.java.lang.StringtoString(boolean showAddressSpace)Returns a String representation that may include the address space namejava.lang.StringtoString(java.lang.String prefix)Returns 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 Detail
-
toString
public java.lang.String 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- See Also:
Object.toString()
-
toString
public java.lang.String toString(boolean showAddressSpace)
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
- See Also:
Address.toString(boolean)
-
toString
public java.lang.String toString(java.lang.String prefix)
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.- See Also:
Address.toString(java.lang.String)
-
-