FindBugs™ 1.3.9

edu.umd.cs.findbugs.filter
Class LastVersionMatcher

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

public class LastVersionMatcher
extends VersionMatcher
implements Matcher

Matcher to select BugInstances with a particular last version.


Field Summary
static LastVersionMatcher DEAD_BUG_MATCHER
           
 
Fields inherited from class edu.umd.cs.findbugs.filter.VersionMatcher
relOp, version
 
Constructor Summary
LastVersionMatcher(long version, RelationalOp relOp)
           
LastVersionMatcher(java.lang.String versionAsString, RelationalOp relOp)
           
LastVersionMatcher(java.lang.String versionAsString, java.lang.String relOpAsString)
           
 
Method Summary
 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)
           
 
Methods inherited from class edu.umd.cs.findbugs.filter.VersionMatcher
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEAD_BUG_MATCHER

public static final LastVersionMatcher DEAD_BUG_MATCHER
Constructor Detail

LastVersionMatcher

public LastVersionMatcher(java.lang.String versionAsString,
                          java.lang.String relOpAsString)

LastVersionMatcher

public LastVersionMatcher(java.lang.String versionAsString,
                          RelationalOp relOp)

LastVersionMatcher

public LastVersionMatcher(long version,
                          RelationalOp relOp)
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

writeXML

public void writeXML(XMLOutput xmlOutput,
                     boolean disabled)
              throws java.io.IOException
Specified by:
writeXML in interface Matcher
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.