GUI2CommandLine, TextUICommandLinepublic 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, 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()
@Nonnull public Project getProject()
public boolean isProjectLoadedFromFile()
protected void handleOption(java.lang.String option,
java.lang.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(java.lang.String option,
java.lang.String argument)
throws java.io.IOException
CommandLinehandleOptionWithArgument in class CommandLineoption - the optionargument - the argumentjava.io.IOExceptionpublic void loadProject(java.lang.String arg)
throws java.io.IOException
arg - name of project filejava.io.IOExceptionFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.