FindBugs™ 1.3.9

edu.umd.cs.findbugs
Class FindBugsCommandLine

java.lang.Object
  extended by edu.umd.cs.findbugs.config.CommandLine
      extended by edu.umd.cs.findbugs.FindBugsCommandLine
Direct Known Subclasses:
GUI2CommandLine, TextUICommandLine

public abstract class FindBugsCommandLine
extends CommandLine

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
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 Summary
FindBugsCommandLine()
          Constructor.
FindBugsCommandLine(boolean modernGui)
          Additional constuctor just as hack for decoupling the core package from gui2 package
 
Method Summary
 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.
 
Methods inherited from class edu.umd.cs.findbugs.config.CommandLine
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, getAnalysisOptionProperties, makeOptionUnlisted, parse, parse, printUsage, startOptionGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settingList

protected AnalysisFeatureSetting[] settingList
Analysis settings to configure the analysis effort.


project

protected Project project
Project to analyze.


projectLoadedFromFile

protected boolean projectLoadedFromFile
True if project was initialized by loading a project file.

Constructor Detail

FindBugsCommandLine

public FindBugsCommandLine()
Constructor. Adds shared options/switches.


FindBugsCommandLine

public FindBugsCommandLine(boolean modernGui)
Additional constuctor just as hack for decoupling the core package from gui2 package

Parameters:
modernGui - ignored. In any case, gui2 options are added here.
Method Detail

getSettingList

public AnalysisFeatureSetting[] getSettingList()

getProject

@Nonnull
public Project getProject()

isProjectLoadedFromFile

public boolean isProjectLoadedFromFile()

handleOption

protected void handleOption(java.lang.String option,
                            java.lang.String optionExtraPart)
Description copied from class: CommandLine
Callback method for handling an option.

Specified by:
handleOption in class CommandLine
Parameters:
option - the option
optionExtraPart - 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

protected void handleOptionWithArgument(java.lang.String option,
                                        java.lang.String argument)
                                 throws java.io.IOException
Description copied from class: CommandLine
Callback method for handling an option with an argument.

Specified by:
handleOptionWithArgument in class CommandLine
Parameters:
option - the option
argument - the argument
Throws:
java.io.IOException

loadProject

public void loadProject(java.lang.String arg)
                 throws java.io.IOException
Load given project file.

Parameters:
arg - name of project file
Throws:
java.io.IOException

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.