|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.output.CommandLineParser
public class 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(String[] args)
Constructor for CommandLineParser |
Method Summary | |
---|---|
protected void |
checkForRequiredArgs()
|
protected boolean |
doChildrenSwitch(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(String switchName)
|
protected String |
popNextArg()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLineParser(String[] args)
args
- the command line parametersMethod Detail |
---|
public void parse() throws ConfigurationException
ConfigurationOptions
).
ConfigurationException
- if errors are present on the command lineprotected String popNextArg()
protected void parseSwitch(String switchName) throws ConfigurationException
ConfigurationException
protected boolean doChildrenSwitch(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 |