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 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
-
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: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
-