Class RankMatcher

java.lang.Object
edu.umd.cs.findbugs.filter.RankMatcher
All Implemented Interfaces:
Matcher

public class RankMatcher extends Object implements Matcher
Matcher to select BugInstances with a particular rank or higher.
Author:
William Pugh
  • Constructor Details

    • RankMatcher

      public RankMatcher(String rankAsString)
      Constructor.
      Parameters:
      rankAsString - the rank, as a String
      Throws:
      NumberFormatException - if the rank cannot be parsed
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class 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 IOException
      Specified by:
      writeXML in interface Matcher
      Throws:
      IOException