Package edu.umd.cs.findbugs.workflow
Class Filter.FilterCommandLine
java.lang.Object
edu.umd.cs.findbugs.config.CommandLine
edu.umd.cs.findbugs.workflow.Filter.FilterCommandLine
- Enclosing class:
Filter
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.config.CommandLine
CommandLine.HelpRequestedException
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) long
(package private) String
boolean
boolean
(package private) long
(package private) String
(package private) String
boolean
boolean
(package private) long
(package private) String
(package private) Pattern
(package private) Pattern
(package private) Pattern
boolean
boolean
(package private) int
(package private) long
(package private) String
(package private) String
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
(package private) long
(package private) String
(package private) int
(package private) long
(package private) String
static final long
boolean
boolean
boolean
boolean
boolean
boolean
(package private) long
(package private) String
(package private) int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
(package private) Filter
(package private) String
(package private) SortedSet
<BugInstance> boolean
boolean
boolean
boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
accept
(BugCollection collection, BugInstance bug) private void
addCategoryKey
(String argument) (package private) void
adjustFilter
(Project project, BugCollection collection) private boolean
private boolean
bugLiveAt
(BugInstance bug, long now) (package private) boolean
evaluate
(BugCollection collection, BugInstance bug) private static long
getAppropriateSeq
(SortedMap<Long, AppVersion> timeStamps, long when, boolean roundToLaterVersion) private String
void
getReady
(SortedBugCollection origCollection) Do any prep work needed to perform bug filteringstatic long
getVersionNum
(BugCollection collection, String val, boolean roundToLaterVersion) static long
getVersionNum
(Map<String, AppVersion> versions, SortedMap<Long, AppVersion> timeStamps, String val, boolean roundToLaterVersion, long currentSeqNum) protected void
handleOption
(String option, String optionExtraPart) Callback method for handling an option.protected void
handleOptionWithArgument
(String option, String argument) Callback method for handling an option with an argument.private void
Methods inherited from class edu.umd.cs.findbugs.config.CommandLine
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, getAnalysisOptionProperties, makeOptionUnlisted, parse, parse, printUsage, startOptionGroup
-
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
-
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
-
excludeFilter
-
excludedInstanceHashes
-
designationKey
-
categoryKey
-
uniqueSloppy
SortedSet<BugInstance> uniqueSloppy -
priority
int priority -
suppressionFilter
Filter suppressionFilter -
mutationPoints
-
-
Constructor Details
-
FilterCommandLine
FilterCommandLine()
-
-
Method Details
-
getVersionNum
-
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
-
accept
-
evaluate
-
addCategoryKey
-
bugLiveAt
-
handleOption
Description copied from class:CommandLine
Callback method for handling an option.- Specified by:
handleOption
in classCommandLine
- Parameters:
option
- the optionoptionExtraPart
- 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
-
handleOptionWithArgument
Description copied from class:CommandLine
Callback method for handling an option with an argument.- Specified by:
handleOptionWithArgument
in classCommandLine
- Parameters:
option
- the optionargument
- the argument- Throws:
IOException
-
getReady
Do any prep work needed to perform bug filtering- Parameters:
origCollection
-
-
atMutationPoint
- Parameters:
b
-- Returns:
-
getBugLocation
- Parameters:
b
-- Returns:
-