Class BpsSearch
java.lang.Object
ghidra.util.bytesearch.bytepatternsearch.BpsSearch
This class represents a collection of
BpsSearchItem's and their corresponding attributes
in support of Ghidra's Byte Pattern Searcher capability.
The design of the XML Parser and its supporting classes, as well as an explanation of the
required XML format can be found in BpsXmlParser.
The design of the Byte Pattern Searcher and its supporting sub-capabilities and classes can be found in the "Search For Byte Patterns" page in the help viewer.
This class manages a Search, or list, of BpsSearchItem objects parsed from the
<SearchItem> tag. A search is populated by BpsXmlParser and referenced for
processing by downstream Byte Pattern Searcher components.
Byte Pattern Search Configurations
Required Variables:
searchName– Name of the search collection.
Optional Variables:
description– Text description of the pattern collection.submitter– Name of the pattern contributor.
<Search> tag, they
will be stored in a map for filtering and sorting downstream.-
Constructor Summary
ConstructorsConstructorDescriptionBpsSearch(String searchName, String generatedKey, List<BpsSearchItem> searchItems) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the additional attributes parsed from the<Search>tag.Returns the description for the search.getId()Returns the search ID.Returns the list of search items belonging to the Search.Returns the name of the Search.Returns the submitter's identification.toString()
-
Constructor Details
-
BpsSearch
Constructor.- Parameters:
searchName- name identifying a SearchgeneratedKey- unique value across all BpsSearch and BpsSearchItem objects; used for skipping patterns at the<Search>and<SearchItem>levels.searchItems- belonging to this Search
-
-
Method Details
-
getSearchName
-
getId
-
getSearchItems
Returns the list of search items belonging to the Search.- Returns:
- the list of search items belonging to the Search
-
getDescription
Returns the description for the search.- Returns:
- the description for the search
-
getSubmitter
Returns the submitter's identification.- Returns:
- the submitter's identification
-
getAdditionalAttributes
-
toString
-