- java.lang.Object
-
- com.ibm.jvm.dtfjview.tools.Tool
-
- com.ibm.jvm.dtfjview.tools.impl.HelpTool
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMANDstatic StringCOMMAND_FORMATstatic StringHELP_DESCRIPTIONstatic StringJDMPVIEW_HELP_COMMANDstatic StringUSAGE
-
Constructor Summary
Constructors Constructor Description HelpTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(String command, String[] args)Determines if a command is accepted by current tool.StringgetArgumentDescription()To gets the tool's argument description.StringgetCommandName()To gets the tool's command name.StringgetHelpDescription()To gets the tool's help description.voidprintDetailedHelp(PrintStream out)To print the detailed help message.voidprocess(String command, String[] args, PrintStream redirector)Processes the command.
-
-
-
Field Detail
-
COMMAND
public static final String COMMAND
- See Also:
- Constant Field Values
-
HELP_DESCRIPTION
public static final String HELP_DESCRIPTION
- See Also:
- Constant Field Values
-
USAGE
public static final String USAGE
- See Also:
- Constant Field Values
-
JDMPVIEW_HELP_COMMAND
public static final String JDMPVIEW_HELP_COMMAND
- See Also:
- Constant Field Values
-
COMMAND_FORMAT
public static final String COMMAND_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public boolean accept(String command, String[] args)
Determines if a command is accepted by current tool.- Parameters:
command- The commandargs- The arguments taken by the command.- Returns:
trueif this is the correct tool for this command;falseotherwise.
-
process
public void process(String command, String[] args, PrintStream redirector) throws CommandException
Processes the command.- Parameters:
command- The command to be processed.args- The arguments taken by the command.out- The output channel.- Throws:
CommandException
-
printDetailedHelp
public void printDetailedHelp(PrintStream out)
To print the detailed help message.
-
getCommandName
public String getCommandName()
To gets the tool's command name.- Returns:
- The tool's command name.
-
getArgumentDescription
public String getArgumentDescription()
To gets the tool's argument description.- Returns:
- The tool's argument description.
-
getHelpDescription
public String getHelpDescription()
To gets the tool's help description.- Returns:
- The tool's help description.
-
-