public abstract class ToolBase
extends java.lang.Object
registerHandler(ArgHandler)
repeatedly to register particular command line arguments and options.public static void main(String[] args) { MyShell myShell = new MyShell(); if (myShell.processArgs(args)) { // main program operation } System.exit(1); }
Constructor and Description |
---|
ToolBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkJdkVersion()
Log deprecation warning on old JREs.
|
protected java.lang.String |
getDescription() |
protected java.lang.String |
getName() |
protected void |
printHelp() |
protected void |
printHelp(boolean includeUndocumented) |
protected boolean |
processArgs(java.lang.String... args) |
protected void |
registerHandler(ArgHandler handler) |
protected void checkJdkVersion()
protected java.lang.String getDescription()
protected java.lang.String getName()
protected void printHelp()
protected void printHelp(boolean includeUndocumented)
protected boolean processArgs(java.lang.String... args)
protected void registerHandler(ArgHandler handler)