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) longabsent(package private) java.lang.StringabsentAsStringbooleanactivebooleanactiveSpecified(package private) longafter(package private) java.lang.StringafterAsString(package private) java.lang.StringannotationbooleanapplySuppressionbooleanapplySuppressionSpecified(package private) longbefore(package private) java.lang.StringbeforeAsString(package private) java.util.regex.PatternbugPattern(package private) java.util.regex.PatterncallsPattern(package private) java.util.Set<java.lang.String>categoryKey(package private) java.util.regex.PatternclassPattern(package private) java.util.Set<java.lang.String>designationKeybooleandontUpdateStatsbooleandontUpdateStatsSpecified(package private) intduration(package private) java.util.HashSet<java.lang.String>excludedInstanceHashesprivate java.util.List<Matcher>excludeFilter(package private) longfirst(package private) java.lang.StringfirstAsString(package private) java.lang.StringfixedAsStringbooleanhasFieldbooleanhasFieldSpecifiedbooleanhashChangedbooleanhashChangedSpecified(package private) java.util.HashSet<java.lang.String>hashesFromFilebooleanhasLocalbooleanhasLocalSpecifiedprivate java.util.List<Matcher>includeFilterbooleanintroducedByChangebooleanintroducedByChangeSpecifiedbooleanknownSourcebooleanknownSourceSpecified(package private) longlast(package private) java.lang.StringlastAsString(package private) intmaxRank(package private) longmaybeMutated(package private) java.lang.StringmaybeMutatedAsStringstatic longMILLISECONDS_PER_DAY(package private) java.util.HashSet<java.lang.String>mutationPointsbooleannewCodebooleannewCodeSpecifiedbooleannotbooleannotAProblembooleannotAProblemSpecifiedbooleannotSpecified(package private) longpresent(package private) java.lang.StringpresentAsString(package private) intprioritybooleanpurgeHistorybooleanpurgeHistorySpecifiedbooleanremovedByChangebooleanremovedByChangeSpecifiedbooleanremovedCodebooleanremovedCodeSpecifiedbooleanshouldFixbooleanshouldFixSpecifiedbooleansloppyUniquebooleansloppyUniqueSpecified(package private) FiltersuppressionFilter(package private) java.lang.StringtrimToVersionAsString(package private) java.util.SortedSet<BugInstance>uniqueSloppybooleanwithMessagesbooleanwithMessagesSpecifiedbooleanwithSourcebooleanwithSourceSpecified
-
Constructor Summary
Constructors Constructor Description FilterCommandLine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanaccept(BugCollection collection, BugInstance bug)private voidaddCategoryKey(java.lang.String argument)(package private) voidadjustFilter(Project project, BugCollection collection)private booleanatMutationPoint(BugInstance b)private booleanbugLiveAt(BugInstance bug, long now)(package private) booleanevaluate(BugCollection collection, BugInstance bug)private static longgetAppropriateSeq(java.util.SortedMap<java.lang.Long,AppVersion> timeStamps, long when, boolean roundToLaterVersion)private java.lang.StringgetBugLocation(BugInstance b)voidgetReady(SortedBugCollection origCollection)Do any prep work needed to perform bug filteringstatic longgetVersionNum(BugCollection collection, java.lang.String val, boolean roundToLaterVersion)static longgetVersionNum(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 voidhandleOption(java.lang.String option, java.lang.String optionExtraPart)Callback method for handling an option.protected voidhandleOptionWithArgument(java.lang.String option, java.lang.String argument)Callback method for handling an option with an argument.private voidsetField(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.IOExceptionDescription copied from class:CommandLineCallback method for handling an option.- Specified by:
handleOptionin 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.IOExceptionDescription copied from class:CommandLineCallback method for handling an option with an argument.- Specified by:
handleOptionWithArgumentin 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:
-
-