|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.monitorenter.cpdetector.ACmdLineArgsInheritor
public abstract class ACmdLineArgsInheritor
Base class for inheritance of command line arguments.
| Constructor Summary | |
|---|---|
ACmdLineArgsInheritor()
|
|
| Method Summary | |
|---|---|
protected void |
addCmdLineOption(String key,
jargs.gnu.CmdLineParser.Option option)
Subclasses have to call from their constructor and implant their desired options. |
protected Object |
getParsedCmdLineOption(String key)
Returns the option value of a parsed command line option. |
void |
parseArgs(String[] cmdLineArgs)
This method has to be called initially by the code using this instance in order to configure. |
protected abstract void |
usage()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACmdLineArgsInheritor()
| Method Detail |
|---|
protected final void addCmdLineOption(String key,
jargs.gnu.CmdLineParser.Option option)
key - The same key as used for getParsedCmdLineOption(String key)
protected final Object getParsedCmdLineOption(String key)
throws IllegalArgumentException
IllegalArgumentException
public void parseArgs(String[] cmdLineArgs)
throws Exception
This method has to be called initially by the code using this instance in order to configure.
Every subclass has to call super.parseArgs(cmdLineArgs) and then retrieve the options needed from
the returned CmdLineParser!
cmdLineArgs -
Exceptionprotected abstract void usage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||