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 CommandLine
CommandLine.HelpRequestedException -
Field Summary
FieldsModifier and TypeFieldDescription(package private) long(package private) Stringbooleanboolean(package private) long(package private) String(package private) Stringbooleanboolean(package private) long(package private) String(package private) Pattern(package private) Pattern(package private) Patternbooleanboolean(package private) int(package private) long(package private) String(package private) Stringbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanboolean(package private) long(package private) String(package private) int(package private) long(package private) Stringstatic final longbooleanbooleanbooleanbooleanbooleanboolean(package private) long(package private) String(package private) intbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanboolean(package private) Filter(package private) String(package private) SortedSet<BugInstance> booleanbooleanbooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanaccept(BugCollection collection, BugInstance bug) private voidaddCategoryKey(String argument) (package private) voidadjustFilter(Project project, BugCollection collection) private booleanprivate booleanbugLiveAt(BugInstance bug, long now) (package private) booleanevaluate(BugCollection collection, BugInstance bug) private static longgetAppropriateSeq(SortedMap<Long, AppVersion> timeStamps, long when, boolean roundToLaterVersion) private StringvoidgetReady(SortedBugCollection origCollection) Do any prep work needed to perform bug filteringstatic longgetVersionNum(BugCollection collection, String val, boolean roundToLaterVersion) static longgetVersionNum(Map<String, AppVersion> versions, SortedMap<Long, AppVersion> timeStamps, String val, boolean roundToLaterVersion, long currentSeqNum) protected voidhandleOption(String option, String optionExtraPart) Callback method for handling an option.protected voidhandleOptionWithArgument(String option, String argument) Callback method for handling an option with an argument.private voidMethods inherited from class 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: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:
IOException
-
setField
-
handleOptionWithArgument
Description copied from class:CommandLineCallback method for handling an option with an argument.- Specified by:
handleOptionWithArgumentin 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:
-