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:
- rafal@caltha.pl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(XMLOutput xmlOutput, String name, StringSetMatch matches) booleaninthashCode()booleanmatch(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:MatcherDetermine whether or not the given BugInstance has the feature this Matcher tests for. -
hashCode
public int hashCode() -
equals
-
writeXML
- Specified by:
writeXMLin interfaceMatcher- Throws:
IOException
-
addAttribute
public void addAttribute(XMLOutput xmlOutput, String name, StringSetMatch matches) throws IOException - Throws:
IOException
-
toString
-