Ghidra 11.3.2
Ghidra internal decompiler documentation.
|
A filter on some aspect of a specific function prototype. More...
#include <modelrules.hh>
Public Member Functions | |
virtual | ~QualifierFilter (void) |
Destructor. | |
virtual QualifierFilter * | clone (void) const =0 |
Make a copy of this qualifier. | |
virtual bool | filter (const PrototypePieces &proto, int4 pos) const =0 |
Test whether the given function prototype meets this filter's criteria. | |
virtual void | decode (Decoder &decoder) |
Configure details of the criteria being filtered from the given stream. | |
Static Public Member Functions | |
static QualifierFilter * | decodeFilter (Decoder &decoder) |
Try to instantiate a qualifier filter. | |
A filter on some aspect of a specific function prototype.
An instance is configured via the decode() method, then a test of whether a function prototype meets its criteria can be performed by calling its filter() method.
|
pure virtual |
Make a copy of this qualifier.
Implemented in ghidra::AndFilter, ghidra::VarargsFilter, ghidra::PositionMatchFilter, and ghidra::DatatypeMatchFilter.
Referenced by ghidra::ModelRule::ModelRule().
|
inlinevirtual |
Configure details of the criteria being filtered from the given stream.
decoder | is the given stream decoder |
Reimplemented in ghidra::AndFilter, ghidra::VarargsFilter, ghidra::PositionMatchFilter, and ghidra::DatatypeMatchFilter.
|
static |
Try to instantiate a qualifier filter.
If the next element is a qualifier filter, decode it from the stream and return it. Otherwise return null
decoder | is the given stream decoder |
References filter(), and ghidra::Decoder::peekElement().
Referenced by ghidra::ModelRule::decode().
|
pure virtual |
Test whether the given function prototype meets this filter's criteria.
proto | is the high-level description of the function prototype to test |
pos | is the position of a specific output (pos=-1) or input (pos >=0) in context |
Implemented in ghidra::AndFilter, ghidra::VarargsFilter, ghidra::PositionMatchFilter, and ghidra::DatatypeMatchFilter.
Referenced by ghidra::ModelRule::assignAddress(), and decodeFilter().