Class CodeUnitFilter

java.lang.Object
ghidra.features.base.memsearch.searcher.CodeUnitFilter
All Implemented Interfaces:
Predicate<MemoryMatch>

public class CodeUnitFilter extends Object implements Predicate<MemoryMatch>
Search filter that can test a search result and determine if that result starts at or inside a code unit that matches one of the selected types.
  • Constructor Details

    • CodeUnitFilter

      public CodeUnitFilter(Program program, boolean includeInstructions, boolean includeDefinedData, boolean includeUndefinedData)
      Constructor
      Parameters:
      program - the program to get code units from for testing its type
      includeInstructions - if true, accept matches that are in an instruction
      includeDefinedData - if true, accept matches that are in defined data
      includeUndefinedData - if true, accept matches that are in undefined data
  • Method Details