|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jagatoo.commandline.CommandlineParser
public class CommandlineParser
Parses standard command lines.
These commandlines ca have the form: -a -xf 0 --long-option "option value" -long-option2 value2
Constructor Summary | |
---|---|
CommandlineParser(ArgumentsRegistry argReg,
ArgumentsHandler handler)
Creates a new CommandlineParser . |
Method Summary | |
---|---|
void |
parseCommandline(java.lang.String commandline)
Parses a command line from a single String. |
void |
parseCommandline(java.lang.String[] chunks)
Parses a command line from an array of chunks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandlineParser(ArgumentsRegistry argReg, ArgumentsHandler handler)
CommandlineParser
.
argReg
- handler
- Method Detail |
---|
public void parseCommandline(java.lang.String[] chunks) throws CommandlineParsingException
chunks
- the chunks as passed to a main() method (a String split by white spaces, quoted Strings kept together omitting quotes)
CommandlineParsingException
public void parseCommandline(java.lang.String commandline) throws CommandlineParsingException
commandline
- the complete commandline as one String
CommandlineParsingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |