Class FindBugsCommandLine
java.lang.Object
edu.umd.cs.findbugs.config.CommandLine
edu.umd.cs.findbugs.FindBugsCommandLine
- Direct Known Subclasses:
GUI2CommandLine, TextUICommandLine
Base class for FindBugs command line classes. Handles all shared
switches/options.
-
Nested Class Summary
Nested classes/interfaces inherited from class CommandLine
CommandLine.HelpRequestedException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProjectProject to analyze.protected booleanTrue if project was initialized by loading a project file.protected AnalysisFeatureSetting[]Analysis settings to configure the analysis effort. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor.protectedFindBugsCommandLine(boolean modernGui) Additional constructor just as hack for decoupling the core package from gui2 package -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.booleanvoidloadProject(String arg) Load given project file.Methods inherited from class CommandLine
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, getAnalysisOptionProperties, makeOptionUnlisted, parse, parse, printUsage, startOptionGroup
-
Field Details
-
settingList
Analysis settings to configure the analysis effort. -
project
Project to analyze. -
projectLoadedFromFile
protected boolean projectLoadedFromFileTrue if project was initialized by loading a project file.
-
-
Constructor Details
-
FindBugsCommandLine
protected FindBugsCommandLine()Constructor. Adds shared options/switches. -
FindBugsCommandLine
protected FindBugsCommandLine(boolean modernGui) Additional constructor just as hack for decoupling the core package from gui2 package- Parameters:
modernGui- ignored. In any case, gui2 options are added here.
-
-
Method Details
-
getSettingList
-
getProject
-
isProjectLoadedFromFile
public boolean isProjectLoadedFromFile() -
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
-
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
-
loadProject
Load given project file.- Parameters:
arg- name of project file- Throws:
IOException
-