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
static class Filter.FilterCommandLine extends CommandLine
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.config.CommandLine
CommandLine.HelpRequestedException
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
absent
(package private) java.lang.String
absentAsString
boolean
active
boolean
activeSpecified
(package private) long
after
(package private) java.lang.String
afterAsString
(package private) java.lang.String
annotation
boolean
applySuppression
boolean
applySuppressionSpecified
(package private) long
before
(package private) java.lang.String
beforeAsString
(package private) java.util.regex.Pattern
bugPattern
(package private) java.util.regex.Pattern
callsPattern
(package private) java.util.Set<java.lang.String>
categoryKey
(package private) java.util.regex.Pattern
classPattern
(package private) java.util.Set<java.lang.String>
designationKey
boolean
dontUpdateStats
boolean
dontUpdateStatsSpecified
(package private) int
duration
(package private) java.util.HashSet<java.lang.String>
excludedInstanceHashes
private java.util.List<Matcher>
excludeFilter
(package private) long
first
(package private) java.lang.String
firstAsString
(package private) java.lang.String
fixedAsString
boolean
hasField
boolean
hasFieldSpecified
boolean
hashChanged
boolean
hashChangedSpecified
(package private) java.util.HashSet<java.lang.String>
hashesFromFile
boolean
hasLocal
boolean
hasLocalSpecified
private java.util.List<Matcher>
includeFilter
boolean
introducedByChange
boolean
introducedByChangeSpecified
boolean
knownSource
boolean
knownSourceSpecified
(package private) long
last
(package private) java.lang.String
lastAsString
(package private) int
maxRank
(package private) long
maybeMutated
(package private) java.lang.String
maybeMutatedAsString
static long
MILLISECONDS_PER_DAY
(package private) java.util.HashSet<java.lang.String>
mutationPoints
boolean
newCode
boolean
newCodeSpecified
boolean
not
boolean
notAProblem
boolean
notAProblemSpecified
boolean
notSpecified
(package private) long
present
(package private) java.lang.String
presentAsString
(package private) int
priority
boolean
purgeHistory
boolean
purgeHistorySpecified
boolean
removedByChange
boolean
removedByChangeSpecified
boolean
removedCode
boolean
removedCodeSpecified
boolean
shouldFix
boolean
shouldFixSpecified
boolean
sloppyUnique
boolean
sloppyUniqueSpecified
(package private) Filter
suppressionFilter
(package private) java.lang.String
trimToVersionAsString
(package private) java.util.SortedSet<BugInstance>
uniqueSloppy
boolean
withMessages
boolean
withMessagesSpecified
boolean
withSource
boolean
withSourceSpecified
-
Constructor Summary
Constructors Constructor Description FilterCommandLine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
accept(BugCollection collection, BugInstance bug)
private void
addCategoryKey(java.lang.String argument)
(package private) void
adjustFilter(Project project, BugCollection collection)
private boolean
atMutationPoint(BugInstance b)
private boolean
bugLiveAt(BugInstance bug, long now)
(package private) boolean
evaluate(BugCollection collection, BugInstance bug)
private static long
getAppropriateSeq(java.util.SortedMap<java.lang.Long,AppVersion> timeStamps, long when, boolean roundToLaterVersion)
private java.lang.String
getBugLocation(BugInstance b)
void
getReady(SortedBugCollection origCollection)
Do any prep work needed to perform bug filteringstatic long
getVersionNum(BugCollection collection, java.lang.String val, boolean roundToLaterVersion)
static long
getVersionNum(java.util.Map<java.lang.String,AppVersion> versions, java.util.SortedMap<java.lang.Long,AppVersion> timeStamps, java.lang.String val, boolean roundToLaterVersion, long currentSeqNum)
protected void
handleOption(java.lang.String option, java.lang.String optionExtraPart)
Callback method for handling an option.protected void
handleOptionWithArgument(java.lang.String option, java.lang.String argument)
Callback method for handling an option with an argument.private void
setField(java.lang.String fieldName, boolean value)
-
Methods inherited from class edu.umd.cs.findbugs.config.CommandLine
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, getAnalysisOptionProperties, makeOptionUnlisted, parse, parse, printUsage, startOptionGroup
-
-
-
-
Field Detail
-
MILLISECONDS_PER_DAY
public static final long MILLISECONDS_PER_DAY
- See Also:
- Constant Field Values
-
classPattern
java.util.regex.Pattern classPattern
-
bugPattern
java.util.regex.Pattern bugPattern
-
callsPattern
java.util.regex.Pattern callsPattern
-
notSpecified
public boolean notSpecified
-
not
public boolean not
-
duration
int duration
-
first
long first
-
firstAsString
java.lang.String firstAsString
-
after
long after
-
afterAsString
java.lang.String afterAsString
-
before
long before
-
beforeAsString
java.lang.String beforeAsString
-
maxRank
int maxRank
-
maybeMutated
long maybeMutated
-
maybeMutatedAsString
java.lang.String maybeMutatedAsString
-
last
long last
-
lastAsString
java.lang.String lastAsString
-
trimToVersionAsString
java.lang.String trimToVersionAsString
-
fixedAsString
java.lang.String fixedAsString
-
present
long present
-
presentAsString
java.lang.String presentAsString
-
absent
long absent
-
absentAsString
java.lang.String absentAsString
-
annotation
java.lang.String annotation
-
hashesFromFile
java.util.HashSet<java.lang.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 java.util.List<Matcher> includeFilter
-
excludeFilter
private final java.util.List<Matcher> excludeFilter
-
excludedInstanceHashes
java.util.HashSet<java.lang.String> excludedInstanceHashes
-
designationKey
java.util.Set<java.lang.String> designationKey
-
categoryKey
java.util.Set<java.lang.String> categoryKey
-
uniqueSloppy
java.util.SortedSet<BugInstance> uniqueSloppy
-
priority
int priority
-
suppressionFilter
Filter suppressionFilter
-
mutationPoints
java.util.HashSet<java.lang.String> mutationPoints
-
-
Method Detail
-
getVersionNum
public static long getVersionNum(BugCollection collection, java.lang.String val, boolean roundToLaterVersion)
-
getVersionNum
public static long getVersionNum(java.util.Map<java.lang.String,AppVersion> versions, java.util.SortedMap<java.lang.Long,AppVersion> timeStamps, java.lang.String val, boolean roundToLaterVersion, long currentSeqNum)
-
getAppropriateSeq
private static long getAppropriateSeq(java.util.SortedMap<java.lang.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(java.lang.String argument)
-
bugLiveAt
private boolean bugLiveAt(BugInstance bug, long now)
-
handleOption
protected void handleOption(java.lang.String option, java.lang.String optionExtraPart) throws java.io.IOException
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:
java.io.IOException
-
setField
private void setField(java.lang.String fieldName, boolean value)
-
handleOptionWithArgument
protected void handleOptionWithArgument(java.lang.String option, java.lang.String argument) throws java.io.IOException
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:
java.io.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 java.lang.String getBugLocation(BugInstance b)
- Parameters:
b
-- Returns:
-
-