Class HistoryTool

java.lang.Object
com.ibm.jvm.dtfjview.tools.Tool
com.ibm.jvm.dtfjview.tools.impl.HistoryTool
All Implemented Interfaces:
ITool

public class HistoryTool extends Tool
  • Field Details

  • Constructor Details

    • HistoryTool

      public HistoryTool()
  • Method Details

    • record

      public void record(String cmd)
      To record a history command.

      Parameters:
      cmd - The command to be recorded.
    • process

      public 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
    • accept

      public 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:
      true if this is the correct tool for this command; false otherwise.
    • 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.