edu.umd.cs.findbugs.filter
Class BugMatcher
java.lang.Object
edu.umd.cs.findbugs.filter.BugMatcher
- All Implemented Interfaces:
- Matcher
public class BugMatcher
- extends java.lang.Object
- implements Matcher
Match bug instances having one of given codes or patterns.
- Author:
- rafal@caltha.pl
Constructor Summary |
BugMatcher(java.lang.String codes,
java.lang.String patterns,
java.lang.String categories)
Constructor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BugMatcher
public BugMatcher(java.lang.String codes,
java.lang.String patterns,
java.lang.String categories)
- Constructor.
- Parameters:
codes
- comma-separated list of bug codespatterns
- coma-separated list of bug patterns.categories
- coma-separated list of bug categories.
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.
- Specified by:
match
in interface Matcher
- Parameters:
bugInstance
- the BugInstance
- Returns:
- true if the BugInstance matches, false if not
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
writeXML
public void writeXML(XMLOutput xmlOutput,
boolean disabled)
throws java.io.IOException
- Specified by:
writeXML
in interface Matcher
- 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 class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.