Package edu.umd.cs.findbugs.filter
Class BugMatcher
- java.lang.Object
-
- edu.umd.cs.findbugs.filter.BugMatcher
-
-
Field Summary
Fields Modifier and Type Field Description private StringSetMatchcategoriesprivate StringSetMatchcodesprivate static org.slf4j.LoggerLOGprivate StringSetMatchpatterns
-
Constructor Summary
Constructors Constructor Description BugMatcher(java.lang.String codes, java.lang.String patterns, java.lang.String categories)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(XMLOutput xmlOutput, java.lang.String name, StringSetMatch matches)booleanequals(java.lang.Object o)inthashCode()booleanmatch(BugInstance bugInstance)Determine whether or not the given BugInstance has the feature this Matcher tests for.java.lang.StringtoString()voidwriteXML(XMLOutput xmlOutput, boolean disabled)
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
-
codes
private final StringSetMatch codes
-
patterns
private final StringSetMatch patterns
-
categories
private final StringSetMatch categories
-
-
Method Detail
-
match
public boolean match(BugInstance bugInstance)
Description copied from interface:MatcherDetermine whether or not the given BugInstance has the feature this Matcher tests for.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
writeXML
public void writeXML(XMLOutput xmlOutput, boolean disabled) throws java.io.IOException
-
addAttribute
public void addAttribute(XMLOutput xmlOutput, java.lang.String name, StringSetMatch matches) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-