Package ghidra.features.base.replace
Class SearchType
java.lang.Object
ghidra.features.base.replace.SearchType
- All Implemented Interfaces:
Comparable<SearchType>
Represents a ghidra program element type that can be individually included or excluded when doing
a search and replace operation. The
SearchAndReplaceDialog
will include a checkbox for
each of these types.-
Constructor Summary
ConstructorsConstructorDescriptionSearchType
(SearchAndReplaceHandler handler, String name, String description) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Returns a description of this search type.Returns theSearchAndReplaceHandler
that can process this type.getName()
Returns the name of this search type.static Set
<SearchType> Static convenience method for finding all known SearchTypes.
-
Constructor Details
-
SearchType
Constructor- Parameters:
handler
- TheSearchAndReplaceHandler
that actually has the logic for doing the search for this program element type.name
- the name of element type that is searchabledescription
- a description of this type which would be suitable to display as a tooltip
-
-
Method Details
-
getHandler
Returns theSearchAndReplaceHandler
that can process this type.- Returns:
- the handler for processing this type
-
getName
Returns the name of this search type.- Returns:
- the name of this search type
-
getDescription
Returns a description of this search type.- Returns:
- a description of this search type
-
getSearchTypes
Static convenience method for finding all known SearchTypes. It uses theClassSearcher
to find allSearchAndReplaceHandler
s and then gathers up all the SearchTypes that each handler supports.- Returns:
- The set of all Known SearchTypes
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SearchType>
-