Class Filter.FilterCommandLine

java.lang.Object
edu.umd.cs.findbugs.config.CommandLine
edu.umd.cs.findbugs.workflow.Filter.FilterCommandLine
Enclosing class:
Filter

static class Filter.FilterCommandLine extends CommandLine
  • Field Details

    • MILLISECONDS_PER_DAY

      public static final long MILLISECONDS_PER_DAY
      See Also:
    • classPattern

      Pattern classPattern
    • bugPattern

      Pattern bugPattern
    • callsPattern

      Pattern callsPattern
    • notSpecified

      public boolean notSpecified
    • not

      public boolean not
    • duration

      int duration
    • first

      long first
    • firstAsString

      String firstAsString
    • after

      long after
    • afterAsString

      String afterAsString
    • before

      long before
    • beforeAsString

      String beforeAsString
    • maxRank

      int maxRank
    • maybeMutated

      long maybeMutated
    • maybeMutatedAsString

      String maybeMutatedAsString
    • last

      long last
    • lastAsString

      String lastAsString
    • trimToVersionAsString

      String trimToVersionAsString
    • fixedAsString

      String fixedAsString
    • present

      long present
    • presentAsString

      String presentAsString
    • absent

      long absent
    • absentAsString

      String absentAsString
    • annotation

      String annotation
    • hashesFromFile

      HashSet<String> hashesFromFile
    • sloppyUniqueSpecified

      public boolean sloppyUniqueSpecified
    • sloppyUnique

      public boolean sloppyUnique
    • purgeHistorySpecified

      public boolean purgeHistorySpecified
    • purgeHistory

      public boolean purgeHistory
    • activeSpecified

      public boolean activeSpecified
    • active

      public boolean active
    • notAProblem

      public boolean notAProblem
    • notAProblemSpecified

      public boolean notAProblemSpecified
    • shouldFix

      public boolean shouldFix
    • shouldFixSpecified

      public boolean shouldFixSpecified
    • hasField

      public boolean hasField
    • hasFieldSpecified

      public boolean hasFieldSpecified
    • hasLocal

      public boolean hasLocal
    • hasLocalSpecified

      public boolean hasLocalSpecified
    • applySuppression

      public boolean applySuppression
    • applySuppressionSpecified

      public boolean applySuppressionSpecified
    • withSource

      public boolean withSource
    • withSourceSpecified

      public boolean withSourceSpecified
    • knownSource

      public boolean knownSource
    • knownSourceSpecified

      public boolean knownSourceSpecified
    • introducedByChange

      public boolean introducedByChange
    • introducedByChangeSpecified

      public boolean introducedByChangeSpecified
    • removedByChange

      public boolean removedByChange
    • removedByChangeSpecified

      public boolean removedByChangeSpecified
    • newCode

      public boolean newCode
    • newCodeSpecified

      public boolean newCodeSpecified
    • hashChanged

      public boolean hashChanged
    • hashChangedSpecified

      public boolean hashChangedSpecified
    • removedCode

      public boolean removedCode
    • removedCodeSpecified

      public boolean removedCodeSpecified
    • dontUpdateStats

      public boolean dontUpdateStats
    • dontUpdateStatsSpecified

      public boolean dontUpdateStatsSpecified
    • withMessagesSpecified

      public boolean withMessagesSpecified
    • withMessages

      public boolean withMessages
    • includeFilter

      private final List<Matcher> includeFilter
    • excludeFilter

      private final List<Matcher> excludeFilter
    • excludedInstanceHashes

      HashSet<String> excludedInstanceHashes
    • designationKey

      Set<String> designationKey
    • categoryKey

      Set<String> categoryKey
    • uniqueSloppy

      SortedSet<BugInstance> uniqueSloppy
    • priority

      int priority
    • suppressionFilter

      Filter suppressionFilter
    • mutationPoints

      HashSet<String> mutationPoints
  • Constructor Details

    • FilterCommandLine

      FilterCommandLine()
  • Method Details

    • getVersionNum

      public static long getVersionNum(BugCollection collection, String val, boolean roundToLaterVersion)
    • getVersionNum

      public static long getVersionNum(Map<String,AppVersion> versions, SortedMap<Long,AppVersion> timeStamps, String val, boolean roundToLaterVersion, long currentSeqNum)
    • getAppropriateSeq

      private static long getAppropriateSeq(SortedMap<Long,AppVersion> timeStamps, long when, boolean roundToLaterVersion)
    • adjustFilter

      void adjustFilter(Project project, BugCollection collection)
    • accept

      boolean accept(BugCollection collection, BugInstance bug)
    • evaluate

      boolean evaluate(BugCollection collection, BugInstance bug)
    • addCategoryKey

      private void addCategoryKey(String argument)
    • bugLiveAt

      private boolean bugLiveAt(BugInstance bug, long now)
    • handleOption

      protected void handleOption(String option, String optionExtraPart) throws IOException
      Description copied from class: CommandLine
      Callback method for handling an option.
      Specified by:
      handleOption in class CommandLine
      Parameters:
      option - the option
      optionExtraPart - the "extra" part of the option (everything after the colon: e.g., "withMessages" in "-xml:withMessages"); the empty string if there was no extra part
      Throws:
      IOException
    • setField

      private void setField(String fieldName, boolean value)
    • handleOptionWithArgument

      protected void handleOptionWithArgument(String option, String argument) throws IOException
      Description copied from class: CommandLine
      Callback method for handling an option with an argument.
      Specified by:
      handleOptionWithArgument in class CommandLine
      Parameters:
      option - the option
      argument - the argument
      Throws:
      IOException
    • getReady

      public void getReady(SortedBugCollection origCollection)
      Do any prep work needed to perform bug filtering
      Parameters:
      origCollection -
    • atMutationPoint

      private boolean atMutationPoint(BugInstance b)
      Parameters:
      b -
      Returns:
    • getBugLocation

      private String getBugLocation(BugInstance b)
      Parameters:
      b -
      Returns: