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 StringSetMatch
categories
private StringSetMatch
codes
private static org.slf4j.Logger
LOG
private StringSetMatch
patterns
-
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 void
addAttribute(XMLOutput xmlOutput, java.lang.String name, StringSetMatch matches)
boolean
equals(java.lang.Object o)
int
hashCode()
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)
-
-
-
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:Matcher
Determine whether or not the given BugInstance has the feature this Matcher tests for.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in 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:
toString
in classjava.lang.Object
-
-