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

class ParseState extends Object
  • Field Details

    • args

      public String[] args
      Array of arguments.
    • index

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

      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

      boolean consumedSeparator
      True if special argument "--" is found and consumed.
    • negNumFlag

      boolean negNumFlag
      True if negative number like flag is registered in the parser.
    • deferredException

      ArgumentParserException deferredException
      Deferred exception encountered while parsing. This will be thrown after parsing completed and no other exception was thrown.
    • posArgIndex

      int posArgIndex
      Index of positional argument (Argument object) we are currently processing.
    • posArgConsumed

      int posArgConsumed
      The number of arguments (well, parameters) consumed for the current positional Argument object.
    • posArgArgs

      List<String> posArgArgs
      Accumulated positional arguments we have seen so far.
    • unknown

      List<String> unknown
      Accumulated unknown arguments, if not null.
  • Constructor Details

    • ParseState

      ParseState(String[] args, boolean negNumFlag, List<String> unknown)
  • Method Details

    • resetArgs

      void resetArgs(String[] args)
    • getArg

      String getArg()
    • isArgAvail

      boolean isArgAvail()
    • resetPosArgs

      void resetPosArgs()