public abstract class ToolBase extends 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 String |
getDescription() |
protected String |
getName() |
static void |
legacyWarn(Class<?> legacy,
Class<?> replacement) |
protected void |
printHelp() |
protected void |
printHelp(boolean includeUndocumented) |
protected boolean |
processArgs(String... args) |
protected void |
registerHandler(ArgHandler handler) |
protected void checkJdkVersion()
protected String getDescription()
protected String getName()
protected void printHelp()
protected void printHelp(boolean includeUndocumented)
protected boolean processArgs(String... args)
protected void registerHandler(ArgHandler handler)
Copyright © 2018. All rights reserved.