Class InvalidByteMatcher

java.lang.Object
ghidra.features.base.memsearch.matcher.UserInputByteMatcher
ghidra.features.base.memsearch.matcher.InvalidByteMatcher
All Implemented Interfaces:
ByteMatcher<SearchData>

public class InvalidByteMatcher extends UserInputByteMatcher
Objects of this class are the result of SearchFormats not being able to fully parse input text. There are two cases. The first is the user type an illegal character for the selected search format. In that case this matcher is both an invalid search and an invalid input and the description will explain the error. The second case is the input is valid text, but not complete so that a fully valid byte matcher could not be created. In this case, the search is still invalid, but the input is valid. The description will reflect this situation.
  • Constructor Details

    • InvalidByteMatcher

      public InvalidByteMatcher(String errorMessage)
      Construct an invalid matcher from invalid input text.
      Parameters:
      errorMessage - the message describing the invalid input
    • InvalidByteMatcher

      public InvalidByteMatcher(String errorMessage, boolean isValidInput)
      Construct an invalid matcher from invalid input text or partial input text.
      Parameters:
      errorMessage - the message describing why this matcher is invalid
      isValidInput - return true if the reason this is invalid is simply that the input text is not complete. For example, the user types "-" as they are starting to input a negative number.
  • Method Details