Package gw.lang.gosuc.cli
Class CommandLineOptions
java.lang.Object
gw.lang.gosuc.cli.CommandLineOptions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
boolean
isHelp()
boolean
isNoWarn()
boolean
boolean
void
setSourceFiles
(List<String> srcFiles)
-
Field Details
-
_checkedarithmetic
private boolean _checkedarithmetic -
_classpath
-
_destDir
-
_help
private boolean _help -
_nowarn
private boolean _nowarn -
_sourcepath
-
_verbose
private boolean _verbose -
_version
private boolean _version -
_srcFiles
-
_maxerrs
private int _maxerrs -
_maxwarns
private int _maxwarns
-
-
Constructor Details
-
CommandLineOptions
public CommandLineOptions()
-
-
Method Details
-
isCheckedArithmetic
public boolean isCheckedArithmetic()- Returns:
- true if '-ca' or '-checkedArithmetic' was specified on the command line
-
getClasspath
-
getDestDir
-
isHelp
public boolean isHelp()- Returns:
- true if '-help' was specified on the command line
-
isNoWarn
public boolean isNoWarn()- Returns:
- true if '-nowarn' was specified on the command line
-
getSourcepath
-
isVerbose
public boolean isVerbose()- Returns:
- true if '-verbose' was specified on the command line
-
isVersion
public boolean isVersion()- Returns:
- true if '-version' was specified on the command line
-
getSourceFiles
-
setSourceFiles
-
getMaxErrs
public int getMaxErrs()- Returns:
- maximum error threshold. Defaults to 1,000.
-
getMaxWarns
public int getMaxWarns()- Returns:
- maximum warning threshold. Defaults to Integer.MAX_VALUE.
-