GUI2CommandLine
, TextUICommandLine
public abstract class FindBugsCommandLine extends CommandLine
CommandLine.HelpRequestedException
Modifier and Type | Field | Description |
---|---|---|
protected Project |
project |
Project to analyze.
|
protected boolean |
projectLoadedFromFile |
True if project was initialized by loading a project file.
|
protected AnalysisFeatureSetting[] |
settingList |
Analysis settings to configure the analysis effort.
|
Constructor | Description |
---|---|
FindBugsCommandLine() |
Constructor.
|
FindBugsCommandLine(boolean modernGui) |
Additional constuctor just as hack for decoupling the core package from
gui2 package
|
Modifier and Type | Method | Description |
---|---|---|
Project |
getProject() |
|
AnalysisFeatureSetting[] |
getSettingList() |
|
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.
|
boolean |
isProjectLoadedFromFile() |
|
void |
loadProject(java.lang.String arg) |
Load given project file.
|
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, getAnalysisOptionProperties, makeOptionUnlisted, parse, parse, printUsage, startOptionGroup
protected AnalysisFeatureSetting[] settingList
protected Project project
protected boolean projectLoadedFromFile
public FindBugsCommandLine()
public FindBugsCommandLine(boolean modernGui)
modernGui
- ignored. In any case, gui2 options are added here.public AnalysisFeatureSetting[] getSettingList()
@Nonnull public Project getProject()
public boolean isProjectLoadedFromFile()
protected void handleOption(java.lang.String option, java.lang.String optionExtraPart)
CommandLine
handleOption
in class CommandLine
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 partprotected void handleOptionWithArgument(java.lang.String option, java.lang.String argument) throws java.io.IOException
CommandLine
handleOptionWithArgument
in class CommandLine
option
- the optionargument
- the argumentjava.io.IOException
public void loadProject(java.lang.String arg) throws java.io.IOException
arg
- name of project filejava.io.IOException
SpotBugs is licensed under the LGPL.