java.lang.Object
net.sourceforge.argparse4j.internal.ParseState
-
Field Summary
FieldsModifier and TypeFieldDescriptionString[]Array of arguments.(package private) booleanTrue if special argument "--" is found and consumed.(package private) ArgumentParserExceptionDeferred exception encountered while parsing.(package private) intIndex in args array, which points next argument to process.(package private) intIndex inargsarray, which points to the last argument read from file.(package private) booleanTrue if negative number like flag is registered in the parser.Accumulated positional arguments we have seen so far.(package private) intThe number of arguments (well, parameters) consumed for the current positional Argument object.(package private) intIndex of positional argument (Argument object) we are currently processing.Accumulated unknown arguments, if not null. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
args
Array of arguments. -
index
int indexIndex in args array, which points next argument to process. -
lastFromFileArgIndex
int lastFromFileArgIndexIndex inargsarray, 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. -
consumedSeparator
boolean consumedSeparatorTrue if special argument "--" is found and consumed. -
negNumFlag
boolean negNumFlagTrue if negative number like flag is registered in the parser. -
deferredException
ArgumentParserException deferredExceptionDeferred exception encountered while parsing. This will be thrown after parsing completed and no other exception was thrown. -
posArgIndex
int posArgIndexIndex of positional argument (Argument object) we are currently processing. -
posArgConsumed
int posArgConsumedThe number of arguments (well, parameters) consumed for the current positional Argument object. -
posArgArgs
Accumulated positional arguments we have seen so far. -
unknown
Accumulated unknown arguments, if not null.
-
-
Constructor Details
-
ParseState
-
-
Method Details
-
resetArgs
-
getArg
String getArg() -
isArgAvail
boolean isArgAvail() -
resetPosArgs
void resetPosArgs()
-