Class CodeUnitFilter
java.lang.Object
ghidra.features.base.memsearch.searcher.CodeUnitFilter
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCodeUnitFilter
(Program program, boolean includeInstructions, boolean includeDefinedData, boolean includeUndefinedData) Constructor -
Method Summary
-
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 typeincludeInstructions
- if true, accept matches that are in an instructionincludeDefinedData
- if true, accept matches that are in defined dataincludeUndefinedData
- if true, accept matches that are in undefined data
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<MemoryMatch>
-