java.lang.Object
com.ibm.jvm.dtfjview.tools.Tool
com.ibm.jvm.dtfjview.tools.impl.HistoryTool
- All Implemented Interfaces:
ITool
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if a command is accepted by the current tool.To gets the tool's argument description.To gets the tool's command name.To gets the tool's help description.voidTo print the detailed help message.voidprocess(String command, String[] args, PrintStream out) Processes the command.voidTo record a history command.
-
Field Details
-
COMMAND
- See Also:
-
COMMAND_SHORT
- See Also:
-
DEFAULT_DISPLAY_N
public static final int DEFAULT_DISPLAY_N- See Also:
-
ARGUMENT_DESCRIPTION
- See Also:
-
HELP_DESCRIPTION
- See Also:
-
USAGE
- See Also:
-
-
Constructor Details
-
HistoryTool
public HistoryTool()
-
-
Method Details
-
record
To record a history command.- Parameters:
cmd- The command to be recorded.
-
process
Processes the command.- Parameters:
command- The command to be processed.args- The arguments taken by the command.out- The output channel.- Throws:
CommandException
-
accept
Determines if a command is accepted by the current tool.- Parameters:
command- The commandargs- The arguments taken by the command.- Returns:
trueif this is the correct tool for this command;falseotherwise.
-
printDetailedHelp
To print the detailed help message. -
getCommandName
To gets the tool's command name.- Returns:
- The tool's command name.
-
getArgumentDescription
To gets the tool's argument description.- Returns:
- The tool's argument description.
-
getHelpDescription
To gets the tool's help description.- Returns:
- The tool's help description.
-