|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mmm.util.cli.base.AbstractCliParser.CliParserState
protected static class AbstractCliParser.CliParserState
This inner class holds the state of the
argument parsing
.
Field Summary | |
---|---|
private int |
argumentIndex
|
private CliModeObject |
currentMode
|
private String |
modeOption
|
Constructor Summary | |
---|---|
AbstractCliParser.CliParserState()
The constructor. |
Method Summary | |
---|---|
int |
getArgumentIndex()
This method gets the index of the current argument . |
CliModeObject |
getCurrentMode()
This method gets the current mode that was detected so far. |
String |
getModeOption()
The command-line argument for the option, that activated the current mode . |
boolean |
isOptionsComplete()
This method determines if the options are completed and
further command-line parameters have to be
arguments . |
void |
setCurrentMode(String option,
CliModeObject mode)
This method sets current mode and
mode-option . |
void |
setOptionsComplete()
This method sets the options-complete flag
to true . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private CliModeObject currentMode
getCurrentMode()
private String modeOption
getModeOption()
private int argumentIndex
getArgumentIndex()
Constructor Detail |
---|
public AbstractCliParser.CliParserState()
Method Detail |
---|
public CliModeObject getCurrentMode()
null
if no mode has been
detected, yet.public String getModeOption()
current mode
.
public void setCurrentMode(String option, CliModeObject mode)
current mode
and
mode-option
.
option
- is the mode-option
.mode
- is the current mode
.public boolean isOptionsComplete()
options
are completed and
further command-line parameters have to be
arguments
.
CliParser.END_OPTIONS
public int getArgumentIndex()
current argument
.
public void setOptionsComplete()
options-complete flag
to true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |