public class ParseState extends Object
Modifier and Type | Field and Description |
---|---|
String[] |
args
Array of arguments.
|
boolean |
consumedSeparator
True if special argument "--" is found and consumed.
|
ArgumentParserException |
deferredException
Deferred exception encountered while parsing.
|
int |
index
Index in args array, which points next argument to process.
|
int |
lastFromFileArgIndex
Index in
args array, which points to the last argument read from
file. |
boolean |
negNumFlag
True if negative number like flag is registered in the parser.
|
List<String> |
posargArgs
Accumulated positional arguments we have seen so far.
|
int |
posargConsumed
The number of arguments (well, parameters) consumed for the current
positional Argument object.
|
int |
posargIndex
Index of positional argument (Argument object) we are currently
processing.
|
List<String> |
unknown
Accumulated unknown arguments, if not null.
|
Constructor and Description |
---|
ParseState(String[] args,
int index,
boolean negNumFlag,
List<String> unknown) |
public String[] args
public int index
public int lastFromFileArgIndex
args
array, which points to the last argument read from
file. -1 means that no argument is read from file. If arguments are read
from file recursively (e.g., argument file is found in argument file),
this value is properly extended to point to the actual last argument by
position.public boolean consumedSeparator
public boolean negNumFlag
public ArgumentParserException deferredException
public int posargIndex
public int posargConsumed
Copyright © 2012–2015. All rights reserved.