Interface QualifierFilter
- All Known Implementing Classes:
AndFilter
,DatatypeMatchFilter
,PositionMatchFilter
,VarargsFilter
public interface QualifierFilter
A filter on some aspect of a specific function prototype.
An instance is configured via the restoreXml() method, then a test of whether
a function prototype meets its criteria can be performed by calling its filter() method.
-
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 thisstatic QualifierFilter
restoreFilterXml
(XmlPullParser parser) Instantiate a qualifier from the stream.void
restoreXml
(XmlPullParser parser) Configure details of the criteria being filtered from the given stream
-
Method Details
-
clone
QualifierFilter clone()Make a copy of this qualifier- Returns:
- the copy
-
isEquivalent
Test if the given filter is configured and performs identically to this- Parameters:
op
- is the given filter- Returns:
- true if the two filters are equivalent
-
filter
Test whether the given function prototype meets this filter's criteria- 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
Save this filter and its configuration to a stream- Parameters:
encoder
- is the stream encoder- Throws:
IOException
- for problems writing to the stream
-
restoreXml
Configure details of the criteria being filtered from the given stream- Parameters:
parser
- is the given stream decoder- Throws:
XmlParseException
- if there are problems with the stream
-
restoreFilterXml
Instantiate a qualifier from the stream. If the next element is not a qualifier, return null.- Parameters:
parser
- is the given stream decoder- Returns:
- the new qualifier instance or null
- Throws:
XmlParseException
- for problems decoding the stream
-