|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.util.CmdlineGenericConsumer
visad.install.Main
| Constructor Summary | |
Main(String[] args)
|
|
| Method Summary | |
int |
checkOption(String mainName,
char ch,
String arg)
Handle subclass-specific command line options and their arguments. If -abc -d efg -h -1 -i is specified, this method will be called a maximum of 5 times: checkOption(mainName, 'a', "bc"); checkOption(mainName, 'd', "efg"); checkOption(mainName, 'h', "-1"); checkOption(mainName, '1', "-i"); checkOption(mainName, 'i', null); Note that either of the last two method calls may not happen if the preceeding method call claims to have used the following argument (by returning 2. For example, if the third call (where ch is set to 'h') returns 0 or 1, the next call will contain '1' and "-i". |
void |
initializeArgs()
Method used to initialize any instance variables which may be changed by a cmdline option. This is needed when arguments are processed inside the constructor. |
static void |
main(String[] args)
|
String |
optionUsage()
A short string included in the usage message to indicate valid options. |
| Methods inherited from class visad.util.CmdlineGenericConsumer |
checkKeyword, finalizeArgs, keywordUsage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Main(String[] args)
| Method Detail |
public int checkOption(String mainName,
char ch,
String arg)
CmdlineGenericConsumer
checkOption in interface CmdlineConsumercheckOption in class CmdlineGenericConsumermainName - The name of the main class (useful for
error messages.)ch - Option character. If -a is specified
on the command line, 'a' would be passed to
this method.)arg - The argument associated with this option.
public void initializeArgs()
CmdlineGenericConsumerCmdlineParser will be run
before any instance variables for the extending
class are initialized.
initializeArgs in interface CmdlineConsumerinitializeArgs in class CmdlineGenericConsumerpublic String optionUsage()
CmdlineGenericConsumer
optionUsage in interface CmdlineConsumeroptionUsage in class CmdlineGenericConsumerpublic static final void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||