|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.output.CommandLineParser
Takes a command line, like given to the Main.main(java.lang.String[])
method,
and turns it into a ConfigurationOptions
object.
Constructor Summary | |
CommandLineParser(java.lang.String[] args)
Constructor for CommandLineParser |
Method Summary | |
protected void |
checkForRequiredArgs()
|
protected boolean |
doChildrenSwitch(java.lang.String s)
Give the argument to children classes that may have a way to recognise it. |
protected int |
getArgCount()
|
protected boolean |
isArgsEmpty()
|
void |
parse()
Parses the command line and sets the options (as static fields in ConfigurationOptions ). |
protected void |
parseSwitch(java.lang.String switchName)
|
protected java.lang.String |
popNextArg()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommandLineParser(java.lang.String[] args)
args
- the command line parametersMethod Detail |
public void parse() throws ConfigurationException
ConfigurationOptions
).
ConfigurationException
- if errors are present on the command lineprotected java.lang.String popNextArg()
protected void parseSwitch(java.lang.String switchName) throws ConfigurationException
ConfigurationException
protected boolean doChildrenSwitch(java.lang.String s) throws ConfigurationException
s
-
ConfigurationException
protected void checkForRequiredArgs() throws ConfigurationException
ConfigurationException
protected int getArgCount()
protected boolean isArgsEmpty()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |