Class CodeManager.CodeUnitFactory
java.lang.Object
ghidra.program.database.code.CodeManager.CodeUnitFactory
- All Implemented Interfaces:
DbFactory<ghidra.program.database.code.CodeUnitDB>
- Enclosing class:
CodeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionghidra.program.database.code.CodeUnitDBinstantiate(long key) Creates a new DatabaseObject of type T for the given key.ghidra.program.database.code.CodeUnitDBinstantiate(DBRecord dbRecord) Creates a new DatabaseObject of type T for the given record.
-
Constructor Details
-
CodeUnitFactory
public CodeUnitFactory()
-
-
Method Details
-
instantiate
public ghidra.program.database.code.CodeUnitDB instantiate(long key) Description copied from interface:DbFactoryCreates 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:
instantiatein interfaceDbFactory<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
Description copied from interface:DbFactoryCreates a new DatabaseObject of type T for the given record.- Specified by:
instantiatein interfaceDbFactory<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
-