Class GenericAddress

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      Address add​(long displacement)
      Creates a new address (possibly in a new space) by adding the displacement to this address.
      Address addNoWrap​(long displacement)
      Creates a new Address with a displacement relative to this Address.
      Address addNoWrap​(java.math.BigInteger displacement)  
      Address addWrap​(long displacement)
      Creates a new address by adding the displacement to the current address.
      Address addWrapSpace​(long displacement)
      Creates a new address by adding the displacement to the current address.
      int compareTo​(Address a)  
      boolean equals​(java.lang.Object o)
      Compares this Address to the specified object.
      Address getAddress​(java.lang.String addrString)
      Creates a new Address by parsing a String representation of an address.
      long getAddressableWordOffset()
      Get the addressable memory word offset which corresponds to this address.
      AddressSpace getAddressSpace()
      Returns the address space associated with this address.
      Address getNewAddress​(long byteOffset)
      Creates a new Address in this address's space with the given byte offset.
      Address getNewAddress​(long addrOffset, boolean isAddressableWordOffset)
      Returns a new address in this address's space with the given offset.
      Address getNewTruncatedAddress​(long addrOffset, boolean isAddressableWordOffset)
      Returns a new address in this address's space with the given offset.
      long getOffset()
      Get the offset of this Address.
      java.math.BigInteger getOffsetAsBigInteger()
      Get the offset of this Address as a BigInteger
      Address getPhysicalAddress()
      Returns the physical Address that corresponds to this Address.
      int getPointerSize()
      Returns the number of bytes needed to form a pointer to this address.
      int getSize()
      Returns the number of bits that are used to form the address.
      long getUnsignedOffset()
      Get the address offset as an unsigned number.
      int hashCode()
      Returns a hashcode for this Address.
      boolean hasSameAddressSpace​(Address addr)
      Return true if this address' address space is equal to the address space for addr.
      boolean isConstantAddress()
      Returns true if this address represents a location in constant space
      boolean isExternalAddress()
      Returns true if this address represents an external location in the external address space
      boolean isHashAddress()
      Returns true if this address represents a location in the HASH space
      boolean isLoadedMemoryAddress()
      Returns true if this address represents an address in a loaded memory block
      boolean isMemoryAddress()
      Returns true if this address represents a location in memory
      boolean isNonLoadedMemoryAddress()
      Returns true if this address represents an address not loaded in real memory (i.e.
      boolean isRegisterAddress()
      Returns true if this address represents a location in register space.
      boolean isStackAddress()
      Returns true if this address represents a location in stack space
      boolean isSuccessor​(Address addr)
      Tests whether the given address immediately follows this address.
      boolean isUniqueAddress()
      Returns true if this address represents a location in unique space
      boolean isVariableAddress()
      Returns true if this address represents a location in variable space
      Address next()
      Returns the address's successor.
      Address previous()
      Returns the address's predecessor.
      Address subtract​(long displacement)
      Creates a new address (possibly in a new space) by subtracting the displacement to this address.
      long subtract​(Address addr)
      Calculates the displacement between two addresses (this - addr).
      Address subtractNoWrap​(long displacement)
      Creates a new Address by subtracting displacement from the Address.
      Address subtractWrap​(long displacement)
      Creates a new address by subtracting the displacement from the current address.
      Address subtractWrapSpace​(long displacement)
      Creates a new address by subtracting the displacement from the current address.
      java.lang.String toString()
      Returns a String representation of the address in hex and padded to the appropriate size.
      java.lang.String toString​(boolean showAddressSpace)
      Returns a String representation that may include the address space name
      java.lang.String toString​(boolean showAddressSpace, boolean pad)
      Returns a String representation that may include the address space name and may or may not pad the address with leading zeros.
      java.lang.String toString​(boolean showAddressSpace, int minNumDigits)
      Returns a String representation that may include the address space name and may or may not pad the address with leading zeros.
      java.lang.String toString​(java.lang.String prefix)
      Returns a String representation of the address using the given string as a prefix.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • offset NEW

        protected long offset

Method Detail