All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gnu.getopt.LongOpt

java.lang.Object
   |
   +----gnu.getopt.LongOpt

public class LongOpt
extends Object
This object represents the definition of a long option in the Java port of GNU getopt. An array of LongOpt objects is passed to the Getopt object to define the list of valid long options for a given parsing session. Refer to the getopt documentation for details on the format of long options.

Version:
1.0.3
Author:
Aaron M. Renn (arenn@urbanophile.com)
See Also:
Getopt

Variable Index

 o NO_ARGUMENT
Constant value used for the "has_arg" constructor argument.
 o OPTIONAL_ARGUMENT
Constant value used for the "has_arg" constructor argument.
 o REQUIRED_ARGUMENT
Constant value used for the "has_arg" constructor argument.

Constructor Index

 o LongOpt(String, int, StringBuffer, int)
Create a new LongOpt object with the given parameter values.

Method Index

 o getFlag()
Returns the value of the 'flag' field for this long option
 o getHasArg()
Returns the value set for the '