edu.umd.cs.findbugs.filter
Class PriorityMatcher

java.lang.Object
  extended by 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.
 
Method Summary
 boolean match(BugInstance bugInstance)
          Determine whether or not the given BugInstance has the feature this Matcher tests for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorityMatcher

public PriorityMatcher(java.lang.String priorityAsString)
                throws FilterException
Constructor.

Parameters:
priorityAsString - the priority, as a String
Throws:
FilterException
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.

Specified by:
match in interface Matcher
Parameters:
bugInstance - the BugInstance
Returns:
true if the BugInstance matches, false if not