Class SimpleRedirectorCommand

All Implemented Interfaces:
ICommand
Direct Known Subclasses:
InfoCommand, SetCommand, ShowCommand

public abstract class SimpleRedirectorCommand extends BaseJdmpviewCommand
There are a number of jdmpview commands which just act as routing commands onto other more specific commands. This class provides an abstract superclass for these commands to inherit from.
  • Field Details

  • Constructor Details

    • SimpleRedirectorCommand

      public SimpleRedirectorCommand()
  • Method Details

    • getCmdName

      protected abstract String getCmdName()
      Get the base command name which triggers this routing
      Returns:
    • run

      public void run(String command, String[] args, IContext context, PrintStream out) throws CommandException
      Description copied from interface: ICommand
      Executes the command
      Parameters:
      command - Command string e.g. !j9x
      args - Arguments for command
      context - Context to work in
      out - PrintStream to write command output on
      Throws:
      CommandException - If there is any problem running the command (incorrect usage, CorruptData etc.)