public final class ctlCommand extends Command
COMMA_DELIMITERS, m_args, m_exit, m_out, m_propertyFile, m_propertyOverrides, m_usageCommandName, PATH_DELIMITERS, RC_OK, RC_UNEXPECTED, RC_USAGE, STDOUT_WIDTH, USAGE_OPT_NAMES| 构造器和说明 |
|---|
ctlCommand(String usageToolName,
String[] args) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
run()
Implemented by subclasses to handle this command's unit of work and command
line arguments.
|
static String[] |
tokenize(String s,
String delimiters,
boolean trim)
A helper method for tokenizing a string based on given delimiters.
|
protected String |
usageArgsMsg()
Implemented by actual Command classes to specify the string that
should follow command name prefix when dumping usage.
|
create, exit, getCanonicalCommandName, getListOptValue, getOptionalBooleanOptValue, getOptParser, processCmdPropertyOverrides, processFilePropertyOverrides, processOpt, usageexit, usageMsgPrefixpublic void run()
CommandCommand.exit(boolean, String, Throwable, int).public static String[] tokenize(String s, String delimiters, boolean trim)
s - input string [may not be null]delimiters - string of delimiters [may not be null]trim - if 'true', all tokens will be white space-trimmed before
returnedprotected String usageArgsMsg()
CommandusageArgsMsg 在类中 CommandCopyright © 2018. All rights reserved.