Index (gnu.getopt JavaDoc)
Date: 2015-08-07

A C E F G H L N O P R S V

## A

argv - Variable in class gnu.getopt.Getopt
  Saved argument list passed to the program

## C

checkLongOption() - Method in class gnu.getopt.Getopt
  Check to see if an option is a valid long option.

## E

exchange(String[]) - Method in class gnu.getopt.Getopt
  Exchange the shorter segment with the far end of the longer segment.

## F

first_nonopt - Variable in class gnu.getopt.Getopt
  The index of the first non-option in argv[]
flag - Variable in class gnu.getopt.LongOpt
  If this variable is not null, then the value stored in "val" is stored here when this long option is encountered.

## G

getFlag() - Method in class gnu.getopt.LongOpt
  Returns the value of the 'flag' field for this long option
getHasArg() - Method in class gnu.getopt.LongOpt
  Returns the value set for the 'has_arg' field for this long option
getLongind() - Method in class gnu.getopt.Getopt
  Returns the index into the array of long options (NOT argv) representing the long option that was found.
getName() - Method in class gnu.getopt.LongOpt
  Returns the name of this LongOpt as a String
Getopt - Class in gnu.getopt
  This is a Java port of GNU getopt, a class for parsing command line arguments passed to programs.
Getopt(String, String[], String) - Constructor for class gnu.getopt.Getopt
  Construct a basic Getopt instance with the given input data.
Getopt(String, String[], String, LongOpt[]) - Constructor for class gnu.getopt.Getopt
  Construct a Getopt instance with given input data that is capable of parsing long options as well as short.
Getopt(String, String[], String, LongOpt[], boolean) - Constructor for class gnu.getopt.Getopt
  Construct a Getopt instance with given input data that is capable of parsing long options and short options.
getopt() - Method in class gnu.getopt.Getopt
  This method returns a char that is the current option that has been parsed from the command line.
getOptarg() - Method in class gnu.getopt.Getopt
  For communication from `getopt' to the caller.
getOptind() - Method in class gnu.getopt.Getopt
  optind it the index in ARGV of the next element to be scanned.
getOptopt() - Method in class gnu.getopt.Getopt
  When getopt() encounters an invalid option, it stores the value of that option in optopt which can be retrieved with this method.
getVal() - Method in class gnu.getopt.LongOpt
  Returns the value of the 'val' field for this long option
gnu.getopt - package gnu.getopt

## H

has_arg - Variable in class gnu.getopt.LongOpt
  Indicates whether the option has no argument, a required argument, or an optional argument.

## L

last_nonopt - Variable in class gnu.getopt.Getopt
  The index of the last non-option in argv[]
long_only - Variable in class gnu.getopt.Getopt
  This flag determines whether or not we are parsing only long args
long_options - Variable in class gnu.getopt.Getopt
  This is an array of LongOpt objects which describ the valid long options.
longind - Variable in class gnu.getopt.Getopt
  Stores the index into the long_options array of the long option found
LongOpt - Class in gnu.getopt
  This object represents the definition of a long option in the Java port of GNU getopt.
LongOpt(String, int, StringBuffer, int) - Constructor for class gnu.getopt.LongOpt
  Create a new LongOpt object with the given parameter values.
longopt_handled - Variable in class gnu.getopt.Getopt
  A flag which communicates whether or not checkLongOption() did all necessary processing for the current option

## N

name - Variable in class gnu.getopt.LongOpt
  The name of the long option
nextchar - Variable in class gnu.getopt.Getopt
  The next char to be scanned in the option-element in which the last option character we returned was found.
NO_ARGUMENT - Static variable in class gnu.getopt.LongOpt
  Constant value used for the "has_arg" constructor argument.

## O

optarg - Variable in class gnu.getopt.Getopt
  For communication from `getopt' to the caller.
opterr - Variable in class gnu.getopt.Getopt
  Callers store false here to inhibit the error message for unrecognized options.
optind - Variable in class gnu.getopt.Getopt
  Index in ARGV of the next element to be scanned.
OPTIONAL_ARGUMENT - Static variable in class gnu.getopt.LongOpt
  Constant value used for the "has_arg" constructor argument.
optopt - Variable in class gnu.getopt.Getopt
  When an unrecognized option is encountered, getopt will return a '?' and store the value of the invalid option here.
optstring - Variable in class gnu.getopt.Getopt
  This is the string describing the valid short options.
ordering - Variable in class gnu.getopt.Getopt
  Determines whether we permute arguments or not

## P

PERMUTE - Static variable in class gnu.getopt.Getopt
  PERMUTE is the default.
posixly_correct - Variable in class gnu.getopt.Getopt
  The flag determines whether or not we operate in strict POSIX compliance
progname - Variable in class gnu.getopt.Getopt
  Name to print as the program name in error messages.

## R

REQUIRE_ORDER - Static variable in class gnu.getopt.Getopt
  Describe how to deal with options that follow non-option ARGV-elements.
REQUIRED_ARGUMENT - Static variable in class gnu.getopt.LongOpt
  Constant value used for the "has_arg" constructor argument.
RETURN_IN_ORDER - Static variable in class gnu.getopt.Getopt
  RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two.

## S

setArgv(String[]) - Method in class gnu.getopt.Getopt
  Since in GNU getopt() the argument vector is passed back in to the function every time, the caller can swap out argv on the fly.
setOpterr(boolean) - Method in class gnu.getopt.Getopt
  Normally Getopt will print a message to the standard error when an invalid option is encountered.
setOptind(int) - Method in class gnu.getopt.Getopt
  This method allows the optind index to be set manually.
setOptstring(String) - Method in class gnu.getopt.Getopt
  In GNU getopt, it is possible to change the string containg valid options on the fly because it is passed as an argument to getopt() each time.

## V

val - Variable in class gnu.getopt.LongOpt
  The value to store in "flag" if flag is not null, otherwise the equivalent short option character for this long option.

A C E F G H L N O P R S V