Package edu.umd.cs.findbugs
Class FindBugsCommandLine
java.lang.Object
edu.umd.cs.findbugs.config.CommandLine
edu.umd.cs.findbugs.FindBugsCommandLine
- Direct Known Subclasses:
TextUICommandLine
Base class for FindBugs command line classes. Handles all shared
switches/options.
- Author:
- David Hovemeyer
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.config.CommandLine
CommandLine.HelpRequestedException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Project
Project to analyze.protected boolean
True if project was initialized by loading a project file.protected AnalysisFeatureSetting[]
Analysis settings to configure the analysis effort. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor.protected
FindBugsCommandLine
(boolean modernGui) Additional constructor just as hack for decoupling the core package from gui2 package -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.boolean
void
loadProject
(String arg) Load given project file.Methods inherited from class edu.umd.cs.findbugs.config.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: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
-
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
-
loadProject
Load given project file.- Parameters:
arg
- name of project file- Throws:
IOException
-