js.tinyvm.util
Class TinyVMCommandLineParser
java.lang.Object
js.tinyvm.util.TinyVMCommandLineParser
- Direct Known Subclasses:
- NXJCommandLineParser
public class TinyVMCommandLineParser
- extends Object
CommandLineParser
- Rating

Field Summary |
protected org.apache.commons.cli.Options |
options
|
protected org.apache.commons.cli.CommandLine |
result
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
options
protected final org.apache.commons.cli.Options options
result
protected org.apache.commons.cli.CommandLine result
TinyVMCommandLineParser
public TinyVMCommandLineParser(boolean reqoutput)
getLastOptVal
protected static String getLastOptVal(org.apache.commons.cli.CommandLine cmdline,
String key)
getLastOptVal
protected static String getLastOptVal(org.apache.commons.cli.CommandLine cmdline,
String key,
String def)
isHelp
public boolean isHelp()
isAll
public boolean isAll()
isDebug
public boolean isDebug()
isVerbose
public boolean isVerbose()
isEnableAssert
public boolean isEnableAssert()
isEnableChecks
public boolean isEnableChecks()
getOutput
public String getOutput()
getBP
public String getBP()
getCP
public String getCP()
isBigEndian
public boolean isBigEndian()
getRestArgs
public String[] getRestArgs()
getRunTimeOptions
public int getRunTimeOptions()
parse
public void parse(String[] args)
throws org.apache.commons.cli.ParseException
- Parse commandline.
- Parameters:
args
- command line
- Throws:
TinyVMException
org.apache.commons.cli.ParseException
parseOrHelp
public boolean parseOrHelp(Class<?> mainclass,
String[] args)
printHelp
public void printHelp(Class<?> mainclass)