|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.util.Options
public abstract class Options
This class implements the entry point of the Java compiler
Field Summary | |
---|---|
String[] |
nonOptions
The array of non-option arguments. |
Constructor Summary | |
---|---|
Options(String name)
Creates a new Option object. |
Method Summary | |
---|---|
protected int |
getInt(Getopt g,
int defaultValue)
Processes an integer argument. |
LongOpt[] |
getLongOptions()
Gets long options. |
String[] |
getOptions()
|
String |
getShortOptions()
Gets short options. |
protected String |
getString(Getopt g,
String defaultValue)
Processes a string argument. |
protected abstract void |
help()
shows a help message. |
boolean |
parseCommandLine(String[] argv)
Parses the command line and processes the arguments. |
void |
printOptions()
Prints the available options. |
boolean |
processOption(int code,
Getopt g)
|
protected abstract void |
usage()
Shows a usage message. |
protected abstract void |
version()
Shows the version number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String[] nonOptions
Constructor Detail |
---|
public Options(String name)
name
- the command name to pass to getoptMethod Detail |
---|
public boolean parseCommandLine(String[] argv)
argv
- the command line arguments
public boolean processOption(int code, Getopt g)
code
- g
- public String[] getOptions()
public void printOptions()
protected abstract void help()
protected abstract void version()
protected abstract void usage()
protected int getInt(Getopt g, int defaultValue)
protected String getString(Getopt g, String defaultValue)
public String getShortOptions()
public LongOpt[] getLongOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |