Class ParseState
- java.lang.Object
-
- net.sourceforge.argparse4j.internal.ParseState
-
public class ParseState extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.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 inargs
array, which points to the last argument read from file.boolean
negNumFlag
True if negative number like flag is registered in the parser.
-
Constructor Summary
Constructors Constructor Description ParseState(java.lang.String[] args, int index, boolean negNumFlag)
-
-
-
Field Detail
-
args
public java.lang.String[] args
Array of arguments.
-
index
public int index
Index in args array, which points next argument to process.
-
lastFromFileArgIndex
public int lastFromFileArgIndex
Index inargs
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.
-
consumedSeparator
public boolean consumedSeparator
True if special argument "--" is found and consumed.
-
negNumFlag
public boolean negNumFlag
True if negative number like flag is registered in the parser.
-
deferredException
public ArgumentParserException deferredException
Deferred exception encountered while parsing. This will be thrown after parsing completed and no other exception was thrown.
-
-