Class DatatypeMatchFilter
java.lang.Object
ghidra.program.model.lang.protorules.DatatypeMatchFilter
- All Implemented Interfaces:
QualifierFilter
Check if the function signature has a specific data-type in a specific position.
This filter does not match against the data-type in the current position
being assigned, but against a parameter at a fixed position.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Make a copy of this qualifiervoid
Save this filter and its configuration to a streamboolean
filter
(PrototypePieces proto, int pos) Test whether the given function prototype meets this filter's criteriaboolean
Test if the given filter is configured and performs identically to thisvoid
restoreXml
(XmlPullParser parser) Configure details of the criteria being filtered from the given stream
-
Constructor Details
-
DatatypeMatchFilter
public DatatypeMatchFilter()
-
-
Method Details
-
clone
Description copied from interface:QualifierFilter
Make a copy of this qualifier- Specified by:
clone
in interfaceQualifierFilter
- Overrides:
clone
in classObject
- Returns:
- the copy
-
isEquivalent
Description copied from interface:QualifierFilter
Test if the given filter is configured and performs identically to this- Specified by:
isEquivalent
in interfaceQualifierFilter
- Parameters:
op
- is the given filter- Returns:
- true if the two filters are equivalent
-
filter
Description copied from interface:QualifierFilter
Test whether the given function prototype meets this filter's criteria- Specified by:
filter
in interfaceQualifierFilter
- Parameters:
proto
- is the high-level description of the function prototype to testpos
- is the position of a specific output (pos=-1) or input (pos >=0) in context- Returns:
- true if the prototype meets the criteria, false otherwise
-
encode
Description copied from interface:QualifierFilter
Save this filter and its configuration to a stream- Specified by:
encode
in interfaceQualifierFilter
- Parameters:
encoder
- is the stream encoder- Throws:
IOException
- for problems writing to the stream
-
restoreXml
Description copied from interface:QualifierFilter
Configure details of the criteria being filtered from the given stream- Specified by:
restoreXml
in interfaceQualifierFilter
- Parameters:
parser
- is the given stream decoder- Throws:
XmlParseException
- if there are problems with the stream
-