Class CodeManager.CodeUnitFactory

java.lang.Object
ghidra.program.database.code.CodeManager.CodeUnitFactory
All Implemented Interfaces:
DbFactory<ghidra.program.database.code.CodeUnitDB>
Enclosing class:
CodeManager

public class CodeManager.CodeUnitFactory extends Object implements DbFactory<ghidra.program.database.code.CodeUnitDB>
  • Constructor Details

    • CodeUnitFactory

      public CodeUnitFactory()
  • Method Details

    • instantiate

      public ghidra.program.database.code.CodeUnitDB instantiate(long key)
      Description copied from interface: DbFactory
      Creates a new DatabaseObject of type T for the given key. It is expected that a record for this object already exists in the database. This method is simply creating the unique instance that is associated with that record.
      Specified by:
      instantiate in interface DbFactory<ghidra.program.database.code.CodeUnitDB>
      Parameters:
      key - the database key the database key
      Returns:
      the newly created instance of type T or null if no record found
    • instantiate

      public ghidra.program.database.code.CodeUnitDB instantiate(DBRecord dbRecord)
      Description copied from interface: DbFactory
      Creates a new DatabaseObject of type T for the given record.
      Specified by:
      instantiate in interface DbFactory<ghidra.program.database.code.CodeUnitDB>
      Parameters:
      dbRecord - the database record to create its associated unique instance of T
      Returns:
      the newly created instance of type T