edu.umd.cs.findbugs
Class FindBugs.FindBugsCommandLine
java.lang.Object
edu.umd.cs.findbugs.CommandLine
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
FindBugs.FindBugsCommandLine
public FindBugs.FindBugsCommandLine()
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 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 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 optionargument
- 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 chosendesc
- String describing what is being chosenchooser
- callback object to selectively choose list members
createEngine
public FindBugs createEngine()
throws java.io.IOException,
FilterException
- Throws:
java.io.IOException
FilterException