Class FirstVersionMatcher

  • All Implemented Interfaces:
    Matcher

    public class FirstVersionMatcher
    extends VersionMatcher
    implements Matcher
    Matcher to select BugInstances with a particular first version.
    • Constructor Detail

      • FirstVersionMatcher

        public FirstVersionMatcher​(java.lang.String versionAsString,
                                   java.lang.String relOpAsString)
      • FirstVersionMatcher

        public FirstVersionMatcher​(java.lang.String versionAsString,
                                   RelationalOp relOp)
      • FirstVersionMatcher

        public FirstVersionMatcher​(long version,
                                   RelationalOp relOp)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString 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