Class LongPropertyMapDB

java.lang.Object
ghidra.program.database.properties.PropertyMapDB<Long>
ghidra.program.database.properties.LongPropertyMapDB
All Implemented Interfaces:
LongPropertyMap, PropertyMap<Long>

public class LongPropertyMapDB extends PropertyMapDB<Long> implements LongPropertyMap
Property manager that deals with properties that are of long type and stored with a database table.
  • Constructor Details

    • LongPropertyMapDB

      public LongPropertyMapDB(DBHandle dbHandle, OpenMode openMode, ErrorHandler errHandler, ChangeManager changeMgr, AddressMap addrMap, String name, TaskMonitor monitor) throws VersionException, CancelledException, IOException
      Construct a long property map.
      Parameters:
      dbHandle - database handle.
      openMode - the mode that the program was openned in or null if instantiated during cache invalidate. Used to detect versioning error only.
      errHandler - database error handler.
      changeMgr - change manager for event notification
      addrMap - address map.
      name - property name.
      monitor - progress monitor that is only used when upgrading
      Throws:
      VersionException - if the database version is not the expected version.
      CancelledException - if the user cancels the upgrade operation.
      IOException - if a database io error occurs.
  • Method Details

    • add

      public void add(Address addr, long value)
      Description copied from interface: LongPropertyMap
      Add a long value at the specified address.
      Specified by:
      add in interface LongPropertyMap
      Parameters:
      addr - address for the property
      value - value of the property
    • getLong

      public long getLong(Address addr) throws NoValueException
      Description copied from interface: LongPropertyMap
      Get the long value at the given address.
      Specified by:
      getLong in interface LongPropertyMap
      Parameters:
      addr - the address from where to get the long value
      Returns:
      long property value
      Throws:
      NoValueException - if there is no property value at addr.
    • get

      public Long get(Address addr)
      Description copied from interface: PropertyMap
      Returns the property value stored at the specified address or null if no property found.
      Specified by:
      get in interface PropertyMap<Long>
      Parameters:
      addr - property address
      Returns:
      property value