public abstract class FindBugsCommandLine extends CommandLine
CommandLine.HelpRequestedException| Modifier and Type | Field and 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 and Description |
|---|
FindBugsCommandLine()
Constructor.
|
FindBugsCommandLine(boolean modernGui)
Additional constuctor just as hack for decoupling the core package from
gui2 package
|
| Modifier and Type | Method and Description |
|---|---|
Project |
getProject() |
AnalysisFeatureSetting[] |
getSettingList() |
protected 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 |
isProjectLoadedFromFile() |
void |
loadProject(String arg)
Load given project file.
|
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, getAnalysisOptionProperties, makeOptionUnlisted, parse, parse, printUsage, startOptionGroupprotected 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()
public boolean isProjectLoadedFromFile()
protected void handleOption(String option, String optionExtraPart)
CommandLinehandleOption in class CommandLineoption - 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(String option, String argument) throws IOException
CommandLinehandleOptionWithArgument in class CommandLineoption - the optionargument - the argumentIOExceptionpublic void loadProject(String arg) throws IOException
arg - name of project fileIOExceptionCopyright © 2003–2015. All rights reserved.