Package ghidra.trace.database.bookmark
Class DBTraceBookmarkSpace
java.lang.Object
ghidra.trace.database.bookmark.DBTraceBookmarkSpace
- All Implemented Interfaces:
DBTraceSpaceBased,TraceBookmarkOperations,TraceBookmarkSpace,TraceSpaceMixin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DBTraceAddressSnapRangePropertyMapSpace<DBTraceBookmark, DBTraceBookmark> protected final DBCachedObjectIndex<String, DBTraceBookmark> protected final Collection<DBTraceBookmark> protected final ReadWriteLockprotected final DBTraceBookmarkManagerprotected final AddressSpaceprotected final DBTrace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBookmark(Lifespan lifespan, Address address, TraceBookmarkType type, String category, String comment) Add a bookmark at the given location.protected DBTraceBookmarkTypeGet the object's address spacegetBookmarksAt(long snap, Address address) getBookmarksByType(String typeName) getBookmarksEnclosed(Lifespan lifespan, AddressRange range) getBookmarksIntersecting(Lifespan lifespan, AddressRange range) Get all the categories used for a given typegetTrace()Get the trace containing the objectvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.trace.database.space.DBTraceSpaceBased
assertInSpace, assertInSpace, explainLanguages, isMySpace, toAddress, toOverlayMethods inherited from interface ghidra.trace.model.bookmark.TraceBookmarkSpace
addBookmark, getBookmarksEnclosed, getBookmarksIntersectingMethods inherited from interface ghidra.trace.util.TraceSpaceMixin
getFrameLevel, getThread
-
Field Details
-
manager
-
lock
-
trace
-
space
-
bookmarkMapSpace
protected final DBTraceAddressSnapRangePropertyMapSpace<DBTraceBookmark,DBTraceBookmark> bookmarkMapSpace -
bookmarksByTypeName
-
bookmarkView
-
-
Constructor Details
-
DBTraceBookmarkSpace
public DBTraceBookmarkSpace(DBTraceBookmarkManager manager, AddressSpace space) throws VersionException, IOException - Throws:
VersionExceptionIOException
-
-
Method Details
-
getTrace
Description copied from interface:TraceSpaceMixinGet the trace containing the object- Specified by:
getTracein interfaceTraceBookmarkSpace- Specified by:
getTracein interfaceTraceSpaceMixin- Returns:
- the trace
-
getAddressSpace
Description copied from interface:TraceSpaceMixinGet the object's address space- Specified by:
getAddressSpacein interfaceTraceBookmarkSpace- Specified by:
getAddressSpacein interfaceTraceSpaceMixin- Returns:
- the address space
-
assertInTrace
-
getCategoriesForType
Description copied from interface:TraceBookmarkOperationsGet all the categories used for a given type- Specified by:
getCategoriesForTypein interfaceTraceBookmarkOperations- Parameters:
type- the bookmark type- Returns:
- the set of categories
-
addBookmark
public DBTraceBookmark addBookmark(Lifespan lifespan, Address address, TraceBookmarkType type, String category, String comment) Description copied from interface:TraceBookmarkOperationsAdd a bookmark at the given location. The category need not be created explicitly beforehand. It will be created implicitly if it does not already exist.- Specified by:
addBookmarkin interfaceTraceBookmarkOperations- Parameters:
lifespan- the span of snaps to bookmarkaddress- the address to bookmarktype- the type of the bookmarkcategory- a category for the bookmarkcomment- a comment to add to the bookmark- Returns:
- the new bookmark
-
getAllBookmarks
- Specified by:
getAllBookmarksin interfaceTraceBookmarkOperations
-
getBookmarksAt
- Specified by:
getBookmarksAtin interfaceTraceBookmarkOperations
-
getBookmarksEnclosed
- Specified by:
getBookmarksEnclosedin interfaceTraceBookmarkOperations
-
getBookmarksIntersecting
- Specified by:
getBookmarksIntersectingin interfaceTraceBookmarkOperations
-
getBookmarksByType
-
invalidateCache
public void invalidateCache()- Specified by:
invalidateCachein interfaceDBTraceSpaceBased
-