Class ParseState

java.lang.Object
net.sourceforge.argparse4j.internal.ParseState

public class ParseState extends Object
  • Field Details

    • args

      public String[] args
      Array of arguments.
    • index

      public int index
      Index in args array, which points next argument to process.
    • lastFromFileArgIndex

      public int lastFromFileArgIndex
      Index in 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.
    • 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.
  • Constructor Details

    • ParseState

      public ParseState(String[] args, int index, boolean negNumFlag)