Class UserInputByteMatcher
java.lang.Object
ghidra.features.base.memsearch.matcher.UserInputByteMatcher
- All Implemented Interfaces:
ByteMatcher<SearchData>
- Direct Known Subclasses:
InvalidByteMatcher,MaskedByteSequenceByteMatcher,RegExByteMatcher
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUserInputByteMatcher(String name, String input, SearchSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract StringReturns a description of what this byte matcher matches.getInput()getName()Returns the name of this byte matcher..abstract StringReturns additional information about this byte matcher.inthashCode()booleanReturns true if this byte matcher has valid (but possibly incomplete) input text.booleanReturns true if this byte matcher is valid and can be used to perform a search.abstract Iterable<Match<SearchData>> match(ExtendedByteSequence bytes) Returns anIterablefor returning matches within the given byte sequence.toString()
-
Field Details
-
searchData
-
-
Constructor Details
-
UserInputByteMatcher
-
-
Method Details
-
getName
Returns the name of this byte matcher..- Returns:
- the name of this byte matcher.
-
match
Returns anIterablefor returning matches within the given byte sequence.- Specified by:
matchin interfaceByteMatcher<SearchData>- Parameters:
bytes- the byte sequence to search- Returns:
- an iterable for return matches in the given sequence
-
getDescription
Returns a description of what this byte matcher matches. (Typically a sequence of bytes)- Specified by:
getDescriptionin interfaceByteMatcher<SearchData>- Returns:
- a description of what this byte matcher matches
-
getToolTip
Returns additional information about this byte matcher. (Typically the mask bytes)- Returns:
- additional information about this byte matcher
-
isValidSearch
public boolean isValidSearch()Returns true if this byte matcher is valid and can be used to perform a search. If false, the description will return an error message explaining why this byte matcher is invalid.- Returns:
- true if this byte matcher is valid and can be used to perform a search.
-
isValidInput
public boolean isValidInput()Returns true if this byte matcher has valid (but possibly incomplete) input text. For example, when entering decimal values, the input could be just "-" as the user starts to enter a negative number. In this case the input is valid, but theisValidSearch()would return false.- Returns:
- true if this byte matcher has valid text
-
toString
-
hashCode
public int hashCode() -
equals
-
getSettings
-
getInput
-
getSearchData
-