Package ghidra.program.database.function
Class FunctionTagManagerDB
java.lang.Object
ghidra.program.database.function.FunctionTagManagerDB
- All Implemented Interfaces:
ErrorHandler,FunctionTagManager
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateFunctionTag(String name, String comment) Creates a new function tag with the given attributes if one does not already exist.voidNotification that an IO exception occurred.List<? extends FunctionTag> Returns all function tags in the databasegetFunctionTag(long id) Returns the function tag with the given database idgetFunctionTag(String name) Returns the function tag with the given namegetTagRecord(long id) intgetUseCount(FunctionTag tag) Returns the number of times the given tag has been applied to a functionbooleanisTagAssigned(String name) Returns true if the given tag is assigned to a functionvoidsetProgram(Program program)
-
Field Details
-
lock
-
-
Method Details
-
setProgram
-
dbError
Description copied from interface:ErrorHandlerNotification that an IO exception occurred.- Specified by:
dbErrorin interfaceErrorHandler- Parameters:
e-IOExceptionwhich was cause of error
-
getFunctionTag
Description copied from interface:FunctionTagManagerReturns the function tag with the given name- Specified by:
getFunctionTagin interfaceFunctionTagManager- Parameters:
name- the tag name- Returns:
- the function tag, or null if not found
-
getFunctionTag
Description copied from interface:FunctionTagManagerReturns the function tag with the given database id- Specified by:
getFunctionTagin interfaceFunctionTagManager- Parameters:
id- the tags database id- Returns:
- the function tag, or null if not found
-
isTagAssigned
Description copied from interface:FunctionTagManagerReturns true if the given tag is assigned to a function- Specified by:
isTagAssignedin interfaceFunctionTagManager- Parameters:
name- the tag name- Returns:
- true if assigned to a function
-
createFunctionTag
Description copied from interface:FunctionTagManagerCreates a new function tag with the given attributes if one does not already exist. Otherwise, returns the existing tag.- Specified by:
createFunctionTagin interfaceFunctionTagManager- Parameters:
name- the tag namecomment- the comment associated with the tag (optional)- Returns:
- the new function tag
-
getAllFunctionTags
Description copied from interface:FunctionTagManagerReturns all function tags in the database- Specified by:
getAllFunctionTagsin interfaceFunctionTagManager- Returns:
- list of function tags
-
getTagRecord
- Throws:
IOException
-
getUseCount
Description copied from interface:FunctionTagManagerReturns the number of times the given tag has been applied to a function- Specified by:
getUseCountin interfaceFunctionTagManager- Parameters:
tag- the tag- Returns:
- the count
-