|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.SwitchDictionary
public class SwitchDictionary
Constructor Summary | |
---|---|
SwitchDictionary()
|
Method Summary | |
---|---|
void |
addCommandLineSwitch(CommandLineSwitch cls)
Add a command line switch to the dictionary of available command line switches. |
java.lang.String[] |
executeCommandLineSwitches(java.lang.String[] arguments)
Execute the command line switches from arguments and return the unprocessed command line arguments. |
boolean |
getHelpPrinted()
Return true iff the help text was printed. |
void |
printHelpText()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwitchDictionary()
Method Detail |
---|
public boolean getHelpPrinted()
true
iff the help text was printed.
public void addCommandLineSwitch(CommandLineSwitch cls) throws NameCollisionException
addCommandLineSwitch
in interface CommandLineDictionary
cls
- a non-null command line switch to add to the dictionary.
NameCollisionException
- this indicates
that cls
has the same long name as a
CommandLineSwitch
already in the dictionary.
This exception is never generated due to collisions in the
short form.public void printHelpText()
public java.lang.String[] executeCommandLineSwitches(java.lang.String[] arguments) throws InvalidOptionException
arguments
- the command line arguments to execute.
InvalidOptionException
- when this
exception is thrown, it indicates that the Babel run should be
ended. Assume the error has already been reported to System.err
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |