Class AndFilter
java.lang.Object
ghidra.program.model.lang.protorules.AndFilter
- All Implemented Interfaces:
QualifierFilter
Logically AND multiple QualifierFilters together into a single filter.
An instances contains some number of other arbitrary filters. In order for this filter to
pass, all these contained filters must pass.
-
Constructor Summary
ConstructorsConstructorDescriptionAndFilter(ArrayList<QualifierFilter> qualifierList) The AndFilter assumes ownership of all the filters in the ArrayList -
Method Summary
Modifier and TypeMethodDescriptionclone()Make a copy of this qualifiervoidSave this filter and its configuration to a streambooleanfilter(PrototypePieces proto, int pos) Test whether the given function prototype meets this filter's criteriabooleanTest if the given filter is configured and performs identically to thisvoidrestoreXml(XmlPullParser parser) Configure details of the criteria being filtered from the given stream
-
Constructor Details
-
AndFilter
The AndFilter assumes ownership of all the filters in the ArrayList- Parameters:
qualifierList- is the list of filters pulled into this filter
-
AndFilter
-
-
Method Details
-
clone
Description copied from interface:QualifierFilterMake a copy of this qualifier- Specified by:
clonein interfaceQualifierFilter- Overrides:
clonein classObject- Returns:
- the copy
-
isEquivalent
Description copied from interface:QualifierFilterTest if the given filter is configured and performs identically to this- Specified by:
isEquivalentin interfaceQualifierFilter- Parameters:
op- is the given filter- Returns:
- true if the two filters are equivalent
-
filter
Description copied from interface:QualifierFilterTest whether the given function prototype meets this filter's criteria- Specified by:
filterin 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:QualifierFilterSave this filter and its configuration to a stream- Specified by:
encodein interfaceQualifierFilter- Parameters:
encoder- is the stream encoder- Throws:
IOException- for problems writing to the stream
-
restoreXml
Description copied from interface:QualifierFilterConfigure details of the criteria being filtered from the given stream- Specified by:
restoreXmlin interfaceQualifierFilter- Parameters:
parser- is the given stream decoder- Throws:
XmlParseException- if there are problems with the stream
-