edu.umd.cs.findbugs.filter
Class BugPatternMatcher

java.lang.Object
  extended by edu.umd.cs.findbugs.filter.BugPatternMatcher
All Implemented Interfaces:
Matcher

public class BugPatternMatcher
extends java.lang.Object
implements Matcher

Matcher class to check whether or not BugInstances have one of a particular set of bug pattern types.

Author:
David Hovemeyer

Constructor Summary
BugPatternMatcher(java.lang.String bugPatternTypes)
          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

BugPatternMatcher

public BugPatternMatcher(java.lang.String bugPatternTypes)
Constructor.

Parameters:
bugPatternTypes - comma-separated list of bug pattern to check for
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