G L N O R S

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 gnu.getopt.Getopt.
This is a Java port of GNU getopt, a class for parsing command line arguments passed to programs.
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.
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.
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

L

LongOpt - class gnu.getopt.LongOpt.
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.

N

NO_ARGUMENT - Static variable in class gnu.getopt.LongOpt
Constant value used for the "has_arg" constructor argument.

O

OPTIONAL_ARGUMENT - Static variable in class gnu.getopt.LongOpt
Constant value used for the "has_arg" constructor argument.

R

REQUIRED_ARGUMENT - Static variable in class gnu.getopt.LongOpt
Constant value used for the "has_arg" constructor argument.

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.

G L N O R S