Package ghidra.feature.vt.api.db
Class AssociationDatabaseManager
java.lang.Object
ghidra.feature.vt.api.db.AssociationDatabaseManager
- All Implemented Interfaces:
VTAssociationManager
-
Method Summary
Modifier and TypeMethodDescriptionaddMarkupItem
(MarkupItemStorage markupItemStorage) static AssociationDatabaseManager
createAssociationManager
(db.DBHandle dbHandle, VTSessionDB session) getAppliedMarkupItems
(ghidra.util.task.TaskMonitor monitor, VTAssociation association) getAssociation
(ghidra.program.model.address.Address sourceAddress, ghidra.program.model.address.Address destinationAddress) Returns an association for the given source and destination addresses if one has been defined or null if no such association has been defined.int
Returns the total number of associations that have been defined regardless of whether or not they have been accepted.static AssociationDatabaseManager
getAssociationManager
(db.DBHandle dbHandle, VTSessionDB session, ghidra.framework.data.OpenMode openMode, ghidra.util.task.TaskMonitor monitor) Returns a list of all defined associations regardless of whether or not they have been accepted.getRelatedAssociationsByDestinationAddress
(ghidra.program.model.address.Address destinationAddress) Returns a collection of all defined associations that have the given destination address.getRelatedAssociationsBySourceAddress
(ghidra.program.model.address.Address sourceAddress) Returns a collection of all defined associations that have the given source address.getRelatedAssociationsBySourceAndDestinationAddress
(ghidra.program.model.address.Address sourceAddress, ghidra.program.model.address.Address destinationAddress) Returns a collection of all defined associations that have the either the given source address or the given destination addressvoid
-
Method Details
-
createAssociationManager
public static AssociationDatabaseManager createAssociationManager(db.DBHandle dbHandle, VTSessionDB session) throws IOException - Throws:
IOException
-
getAssociationManager
public static AssociationDatabaseManager getAssociationManager(db.DBHandle dbHandle, VTSessionDB session, ghidra.framework.data.OpenMode openMode, ghidra.util.task.TaskMonitor monitor) throws ghidra.util.exception.VersionException - Throws:
ghidra.util.exception.VersionException
-
getAppliedMarkupItems
public Collection<MarkupItemStorageDB> getAppliedMarkupItems(ghidra.util.task.TaskMonitor monitor, VTAssociation association) throws ghidra.util.exception.CancelledException - Throws:
ghidra.util.exception.CancelledException
-
addMarkupItem
-
removeStoredMarkupItems
-
getAssociationCount
public int getAssociationCount()Description copied from interface:VTAssociationManager
Returns the total number of associations that have been defined regardless of whether or not they have been accepted.- Specified by:
getAssociationCount
in interfaceVTAssociationManager
- Returns:
- Returns the total number of associations that have been defined regardless of whether or not they have been accepted.
-
getAssociations
Description copied from interface:VTAssociationManager
Returns a list of all defined associations regardless of whether or not they have been accepted.- Specified by:
getAssociations
in interfaceVTAssociationManager
- Returns:
- a list of all defined associations regardless of whether or not they have been accepted.
-
getAssociation
public VTAssociation getAssociation(ghidra.program.model.address.Address sourceAddress, ghidra.program.model.address.Address destinationAddress) Description copied from interface:VTAssociationManager
Returns an association for the given source and destination addresses if one has been defined or null if no such association has been defined.- Specified by:
getAssociation
in interfaceVTAssociationManager
- Parameters:
sourceAddress
- the source address for the association.destinationAddress
- the destination address for the association.- Returns:
- the association if it has been defined or else null.
-
getSession
-
getRelatedAssociationsBySourceAddress
public Collection<VTAssociation> getRelatedAssociationsBySourceAddress(ghidra.program.model.address.Address sourceAddress) Description copied from interface:VTAssociationManager
Returns a collection of all defined associations that have the given source address.- Specified by:
getRelatedAssociationsBySourceAddress
in interfaceVTAssociationManager
- Parameters:
sourceAddress
- the source address to use to search for associations.- Returns:
- a collection of all defined associations that have the given source address.
-
getRelatedAssociationsByDestinationAddress
public Collection<VTAssociation> getRelatedAssociationsByDestinationAddress(ghidra.program.model.address.Address destinationAddress) Description copied from interface:VTAssociationManager
Returns a collection of all defined associations that have the given destination address.- Specified by:
getRelatedAssociationsByDestinationAddress
in interfaceVTAssociationManager
- Parameters:
destinationAddress
- the source address to use to search for associations.- Returns:
- a collection of all defined associations that have the given destination address.
-
getRelatedAssociationsBySourceAndDestinationAddress
public Collection<VTAssociation> getRelatedAssociationsBySourceAndDestinationAddress(ghidra.program.model.address.Address sourceAddress, ghidra.program.model.address.Address destinationAddress) Description copied from interface:VTAssociationManager
Returns a collection of all defined associations that have the either the given source address or the given destination address- Specified by:
getRelatedAssociationsBySourceAndDestinationAddress
in interfaceVTAssociationManager
- Parameters:
sourceAddress
- the source address to use to search for associations.destinationAddress
- the source address to use to search for associations.- Returns:
- a collection of all defined associations that have either the given source address or the given destination address.
-