- java.lang.Object
- 
- com.ibm.jvm.dtfjview.tools.Tool
- 
- com.ibm.jvm.dtfjview.tools.impl.HistoryTool
 
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringARGUMENT_DESCRIPTIONstatic StringCOMMANDstatic StringCOMMAND_SHORTstatic intDEFAULT_DISPLAY_Nstatic StringHELP_DESCRIPTIONstatic StringUSAGE
 - 
Constructor SummaryConstructors Constructor Description HistoryTool()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(String command, String[] args)Determines if a command is accepted by the 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 out)Processes the command.voidrecord(String cmd)To record a history command.
 
- 
- 
- 
Field Detail- 
COMMANDpublic static final String COMMAND - See Also:
- Constant Field Values
 
 - 
COMMAND_SHORTpublic static final String COMMAND_SHORT - See Also:
- Constant Field Values
 
 - 
DEFAULT_DISPLAY_Npublic static final int DEFAULT_DISPLAY_N - See Also:
- Constant Field Values
 
 - 
ARGUMENT_DESCRIPTIONpublic static final String ARGUMENT_DESCRIPTION - See Also:
- Constant Field Values
 
 - 
HELP_DESCRIPTIONpublic static final String HELP_DESCRIPTION - See Also:
- Constant Field Values
 
 - 
USAGEpublic static final String USAGE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
recordpublic void record(String cmd) To record a history command.- Parameters:
- cmd- The command to be recorded.
 
 - 
processpublic void process(String command, String[] args, PrintStream out) 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
 
 - 
acceptpublic boolean accept(String command, String[] args) Determines if a command is accepted by the current tool.- Parameters:
- command- The command
- args- The arguments taken by the command.
- Returns:
- trueif this is the correct tool for this command;- falseotherwise.
 
 - 
printDetailedHelppublic void printDetailedHelp(PrintStream out) To print the detailed help message.
 - 
getCommandNamepublic String getCommandName() To gets the tool's command name.- Returns:
- The tool's command name.
 
 - 
getArgumentDescriptionpublic String getArgumentDescription() To gets the tool's argument description.- Returns:
- The tool's argument description.
 
 - 
getHelpDescriptionpublic String getHelpDescription() To gets the tool's help description.- Returns:
- The tool's help description.
 
 
- 
 
-