edu.umd.cs.findbugs.filter
Class PriorityMatcher
java.lang.Object
edu.umd.cs.findbugs.filter.PriorityMatcher
- All Implemented Interfaces:
- Matcher
public class PriorityMatcher
- extends java.lang.Object
- implements Matcher
Matcher to select BugInstances with a particular priority.
- Author:
- David Hovemeyer
Constructor Summary |
PriorityMatcher(java.lang.String priorityAsString)
Constructor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PriorityMatcher
public PriorityMatcher(java.lang.String priorityAsString)
- Constructor.
- Parameters:
priorityAsString
- the priority, as a String
- Throws:
FilterException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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
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
writeXML
public void writeXML(XMLOutput xmlOutput,
boolean disabled)
throws java.io.IOException
- Specified by:
writeXML
in interface Matcher
- Throws:
java.io.IOException
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.