Package ghidra.program.database.bookmark
Class BookmarkDB
java.lang.Object
ghidra.program.database.DatabaseObject
ghidra.program.database.bookmark.BookmarkDB
- All Implemented Interfaces:
Bookmark,Comparable<Bookmark>
-
Field Summary
Fields inherited from class ghidra.program.database.DatabaseObject
key -
Method Summary
Modifier and TypeMethodDescriptionintReturns address at which this bookmark is applied.Returns bookmark categoryReturns bookmark commentlonggetId()Returns the id of the bookmark.getType()Returns bookmark type or null if type has been removed.Returns bookmark type as a stringinthashCode()protected booleanrefresh()Tells the object to refresh its state from the database.protected booleanTells the object to refresh its state from the database using the specified record if not null.voidSet the category and comment associated with a bookmark.voidsetComment(String comment) toString()Methods inherited from class ghidra.program.database.DatabaseObject
checkDeleted, checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setDeleted, setInvalid, validate
-
Method Details
-
toString
-
getId
public long getId()Description copied from interface:BookmarkReturns the id of the bookmark. -
getAddress
Description copied from interface:BookmarkReturns address at which this bookmark is applied.- Specified by:
getAddressin interfaceBookmark
-
getType
Returns bookmark type or null if type has been removed. -
getTypeString
Description copied from interface:BookmarkReturns bookmark type as a string- Specified by:
getTypeStringin interfaceBookmark
-
getCategory
Description copied from interface:BookmarkReturns bookmark category- Specified by:
getCategoryin interfaceBookmark
-
setComment
-
getComment
Description copied from interface:BookmarkReturns bookmark comment- Specified by:
getCommentin interfaceBookmark
-
set
Description copied from interface:BookmarkSet the category and comment associated with a bookmark. -
refresh
protected boolean refresh()Description copied from class:DatabaseObjectTells the object to refresh its state from the database.- Specified by:
refreshin classDatabaseObject- Returns:
- true if the object was able to refresh itself. Return false if the object was deleted. Objects that extend this class must implement a refresh method. If an object can never refresh itself, then it should always return false.
-
refresh
Description copied from class:DatabaseObjectTells the object to refresh its state from the database using the specified record if not null. NOTE: The default implementation ignores the record and invokes refresh(). Implementations of this method must take care if multiple database tables are used since the record supplied could correspond to another object. In some cases it may be best not to override this method or ignore the record provided.- Overrides:
refreshin classDatabaseObject- Parameters:
rec- valid record associated with object's key (optional, may be null to force record lookup or other refresh technique)- Returns:
- true if the object was able to refresh itself. Return false if record is null and object was deleted. Objects that extend this class must implement a refresh method. If an object can never refresh itself, then it should always return false.
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Bookmark>
-