Package edu.umd.cs.findbugs.filter
Class BugMatcher
java.lang.Object
edu.umd.cs.findbugs.filter.BugMatcher
- All Implemented Interfaces:
Matcher
Match bug instances having one of given codes or patterns.
- Author:
- [email protected]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(XMLOutput xmlOutput, String name, StringSetMatch matches) boolean
int
hashCode()
boolean
match
(BugInstance bugInstance) Determine whether or not the given BugInstance has the feature this Matcher tests for.toString()
void
-
Constructor Details
-
BugMatcher
Constructor.- Parameters:
codes
- comma-separated list of bug codespatterns
- coma-separated list of bug patterns.categories
- coma-separated list of bug categories.
-
-
Method Details
-
match
Description copied from interface:Matcher
Determine whether or not the given BugInstance has the feature this Matcher tests for. -
hashCode
public int hashCode() -
equals
-
writeXML
- Specified by:
writeXML
in interfaceMatcher
- Throws:
IOException
-
addAttribute
public void addAttribute(XMLOutput xmlOutput, String name, StringSetMatch matches) throws IOException - Throws:
IOException
-
toString
-