edu.umd.cs.findbugs
Class FindBugs.FindBugsCommandLine

java.lang.Object
  extended by edu.umd.cs.findbugs.CommandLine
      extended by edu.umd.cs.findbugs.FindBugs.FindBugsCommandLine
Enclosing class:
FindBugs

private static class FindBugs.FindBugsCommandLine
extends CommandLine

Helper class to parse the command line and create the FindBugs engine object.


Field Summary
private  java.util.Set<java.lang.String> bugCategorySet
           
private  int bugReporterType
           
private  ClassScreener classScreener
           
private  java.lang.String filterFile
           
private  boolean include
           
private  java.io.PrintStream outputStream
           
private  int priorityThreshold
           
private  Project project
           
private  boolean quiet
           
private  boolean setExitCode
           
private  java.lang.String stylesheet
           
private  boolean xmlWithMessages
           
 
Fields inherited from class edu.umd.cs.findbugs.CommandLine
maxWidth
 
Constructor Summary
FindBugs.FindBugsCommandLine()
           
 
Method Summary
private  void choose(java.lang.String argument, java.lang.String desc, FindBugs.Chooser chooser)
          Common handling code for -chooseVisitors and -choosePlugins options.
 FindBugs createEngine()
           
 Project getProject()
           
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 quiet()
           
 boolean setExitCode()
           
 
Methods inherited from class edu.umd.cs.findbugs.CommandLine
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, parse, printUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bugReporterType

private int bugReporterType

xmlWithMessages

private boolean xmlWithMessages

stylesheet

private java.lang.String stylesheet

project

private Project project

quiet

private boolean quiet

classScreener

private ClassScreener classScreener

filterFile

private java.lang.String filterFile

include

private boolean include

setExitCode

private boolean setExitCode

priorityThreshold

private int priorityThreshold

outputStream

private java.io.PrintStream outputStream

bugCategorySet

private java.util.Set<java.lang.String> bugCategorySet
Constructor Detail

FindBugs.FindBugsCommandLine

public FindBugs.FindBugsCommandLine()
Method Detail

getProject

public Project getProject()

setExitCode

public boolean setExitCode()

quiet

public boolean quiet()

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

choose

private void choose(java.lang.String argument,
                    java.lang.String desc,
                    FindBugs.Chooser chooser)
Common handling code for -chooseVisitors and -choosePlugins options.

Parameters:
argument - the list of visitors or plugins to be chosen
desc - String describing what is being chosen
chooser - callback object to selectively choose list members

createEngine

public FindBugs createEngine()
                      throws java.io.IOException,
                             FilterException
Throws:
java.io.IOException
FilterException