Class FunctionTagDB
java.lang.Object
ghidra.program.database.DbObject
ghidra.program.database.function.FunctionTagDB
- All Implemented Interfaces:
FunctionTag, Comparable<FunctionTag>
Database object for
FunctionTagAdapter objects.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FunctionTag otherTag) voiddelete()Deletes this tag from the programbooleanReturns the tag commentlonggetId()Returns the id of the itemgetName()Returns the tag nameinthashCode()protected booleanTells the object to refresh its state from the database using the specified record if provided.voidsetComment(String comment) Sets the comment for this tagvoidSets the name of the tagtoString()Methods inherited from class DbObject
checkDeleted, getKey, isDeleted, isValid, keyChanged, needsRefreshing, refreshIfNeeded, setDeleted, setInvalid, setValid, validate
-
Constructor Details
-
FunctionTagDB
-
-
Method Details
-
getId
public long getId()Description copied from interface:FunctionTagReturns the id of the item- Specified by:
getIdin interfaceFunctionTag- Returns:
- the id of the item
-
setComment
Description copied from interface:FunctionTagSets the comment for this tag- Specified by:
setCommentin interfaceFunctionTag- Parameters:
comment- the tag comment
-
setName
Description copied from interface:FunctionTagSets the name of the tag- Specified by:
setNamein interfaceFunctionTag- Parameters:
name- the tag name
-
getComment
Description copied from interface:FunctionTagReturns the tag comment- Specified by:
getCommentin interfaceFunctionTag- Returns:
- the tag comment
-
getName
Description copied from interface:FunctionTagReturns the tag name- Specified by:
getNamein interfaceFunctionTag- Returns:
- the tag name
-
refresh
Description copied from class:DbObjectTells the object to refresh its state from the database using the specified record if provided. The record may be null and the object is generally expected to be able to retrieve its own record from the database as needed. Is is mostly passed as a parameter for efficiency to keep an object from having to look up its record when the client already has the record in hand such as when it is iterating over records.This method generally should not be called directly as it provides no recursion protection. Instead, most clients should call
DbObject.refreshIfNeeded()instead which WILL provide recursion protection. If clients must call this method, they either need to provided their own recursion protection or be absolutely certain that recursive calls won't occur.- Specified by:
refreshin classDbObject- 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.
-
delete
public void delete()Description copied from interface:FunctionTagDeletes this tag from the program- Specified by:
deletein interfaceFunctionTag
-
compareTo
- Specified by:
compareToin interfaceComparable<FunctionTag>
-
hashCode
-
equals
-
toString
-