com.darwinsys.lang
Class GetOptDesc

java.lang.Object
  extended by com.darwinsys.lang.GetOptDesc

public class GetOptDesc
extends java.lang.Object

A GetOptDesc describes one argument that may be accepted by the program.


Constructor Summary
GetOptDesc(char ch, java.lang.String nm, boolean ta)
          Construct a GetOpt option.
 
Method Summary
 char getArgLetter()
           
 java.lang.String getArgName()
           
 boolean takesArgument()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetOptDesc

public GetOptDesc(char ch,
                  java.lang.String nm,
                  boolean ta)
Construct a GetOpt option.

Parameters:
ch - The single-character name for this option.
nm - The word name for this option.
ta - True if this option requires an argument after it.
Method Detail

getArgLetter

public char getArgLetter()

getArgName

public java.lang.String getArgName()

takesArgument

public boolean takesArgument()


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.