Package edu.umd.cs.findbugs.filter
Class AndMatcher
- java.lang.Object
-
- edu.umd.cs.findbugs.filter.CompoundMatcher
-
- edu.umd.cs.findbugs.filter.AndMatcher
-
- All Implemented Interfaces:
Matcher
public class AndMatcher extends CompoundMatcher
-
-
Field Summary
-
Fields inherited from class edu.umd.cs.findbugs.filter.CompoundMatcher
children
-
-
Constructor Summary
Constructors Constructor Description AndMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
anyMatches()
boolean
match(BugInstance bugInstance)
Determine whether or not the given BugInstance has the feature this Matcher tests for.java.lang.String
toString()
void
writeXML(XMLOutput xmlOutput, boolean disabled)
-
Methods inherited from class edu.umd.cs.findbugs.filter.CompoundMatcher
addChild, childIterator, clear, equals, getChildren, hashCode, maxChildren, numberChildren, removeChild, writeChildrenXML
-
-
-
-
Method Detail
-
anyMatches
public boolean anyMatches()
-
match
public boolean match(BugInstance bugInstance)
Description copied from interface:Matcher
Determine whether or not the given BugInstance has the feature this Matcher tests for.- Parameters:
bugInstance
- the BugInstance- Returns:
- true if the BugInstance matches, false if not
-
writeXML
public void writeXML(XMLOutput xmlOutput, boolean disabled) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCompoundMatcher
-
-