Package ghidra.program.database.function
Class FunctionTagManagerDB
java.lang.Object
ghidra.program.database.function.FunctionTagManagerDB
- All Implemented Interfaces:
ErrorHandler
,FunctionTagManager
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateFunctionTag
(String name, String comment) Creates a new function tag with the given attributes if one does not already exist.void
Notification 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) int
getUseCount
(FunctionTag tag) Returns the number of times the given tag has been applied to a functionboolean
isTagAssigned
(String name) Returns true if the given tag is assigned to a functionvoid
setProgram
(Program program)
-
Field Details
-
lock
-
-
Method Details
-
setProgram
-
dbError
Description copied from interface:ErrorHandler
Notification that an IO exception occurred.- Specified by:
dbError
in interfaceErrorHandler
- Parameters:
e
-IOException
which was cause of error
-
getFunctionTag
Description copied from interface:FunctionTagManager
Returns the function tag with the given name- Specified by:
getFunctionTag
in interfaceFunctionTagManager
- Parameters:
name
- the tag name- Returns:
- the function tag, or null if not found
-
getFunctionTag
Description copied from interface:FunctionTagManager
Returns the function tag with the given database id- Specified by:
getFunctionTag
in interfaceFunctionTagManager
- Parameters:
id
- the tags database id- Returns:
- the function tag, or null if not found
-
isTagAssigned
Description copied from interface:FunctionTagManager
Returns true if the given tag is assigned to a function- Specified by:
isTagAssigned
in interfaceFunctionTagManager
- Parameters:
name
- the tag name- Returns:
- true if assigned to a function
-
createFunctionTag
Description copied from interface:FunctionTagManager
Creates a new function tag with the given attributes if one does not already exist. Otherwise, returns the existing tag.- Specified by:
createFunctionTag
in interfaceFunctionTagManager
- Parameters:
name
- the tag namecomment
- the comment associated with the tag (optional)- Returns:
- the new function tag
-
getAllFunctionTags
Description copied from interface:FunctionTagManager
Returns all function tags in the database- Specified by:
getAllFunctionTags
in interfaceFunctionTagManager
- Returns:
- list of function tags
-
getTagRecord
- Throws:
IOException
-
getUseCount
Description copied from interface:FunctionTagManager
Returns the number of times the given tag has been applied to a function- Specified by:
getUseCount
in interfaceFunctionTagManager
- Parameters:
tag
- the tag- Returns:
- the count
-