Package gw.lang.gosuc.cli
Class CommandLineOptions
- java.lang.Object
-
- gw.lang.gosuc.cli.CommandLineOptions
-
public class CommandLineOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean_checkedarithmeticprivate java.lang.String_classpathprivate java.lang.String_destDirprivate boolean_helpprivate int_maxerrsprivate int_maxwarnsprivate boolean_nowarnprivate java.lang.String_sourcepathprivate java.util.List<java.lang.String>_srcFilesprivate boolean_verboseprivate boolean_version
-
Constructor Summary
Constructors Constructor Description CommandLineOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClasspath()java.lang.StringgetDestDir()intgetMaxErrs()intgetMaxWarns()java.util.List<java.lang.String>getSourceFiles()java.lang.StringgetSourcepath()booleanisCheckedArithmetic()booleanisHelp()booleanisNoWarn()booleanisVerbose()booleanisVersion()voidsetSourceFiles(java.util.List<java.lang.String> srcFiles)
-
-
-
Field Detail
-
_checkedarithmetic
private boolean _checkedarithmetic
-
_classpath
private java.lang.String _classpath
-
_destDir
private java.lang.String _destDir
-
_help
private boolean _help
-
_nowarn
private boolean _nowarn
-
_sourcepath
private java.lang.String _sourcepath
-
_verbose
private boolean _verbose
-
_version
private boolean _version
-
_srcFiles
private java.util.List<java.lang.String> _srcFiles
-
_maxerrs
private int _maxerrs
-
_maxwarns
private int _maxwarns
-
-
Method Detail
-
isCheckedArithmetic
public boolean isCheckedArithmetic()
- Returns:
- true if '-ca' or '-checkedArithmetic' was specified on the command line
-
getClasspath
public java.lang.String getClasspath()
-
getDestDir
public java.lang.String 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
public java.lang.String 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
public java.util.List<java.lang.String> getSourceFiles()
-
setSourceFiles
public void setSourceFiles(java.util.List<java.lang.String> srcFiles)
-
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.
-
-