All Implemented Interfaces:
ICommand
Direct Known Subclasses:
XDCommand, XJCommand, XKCommand, XXCommand

public abstract class XCommand extends BaseJdmpviewCommand
Abstract superclass for all x/ commands
  • Field Details

    • argUnitSize

      protected int argUnitSize
    • argUnitNumber

      protected int argUnitNumber
    • argDisplayFormat

      protected String argDisplayFormat
  • Constructor Details

    • XCommand

      public XCommand()
  • Method Details

    • 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.)
    • doCommand

      protected abstract void doCommand(String[] args)
    • parseArgs

      protected void parseArgs(String arg)
    • printDetailedHelp

      public void printDetailedHelp(PrintStream out)
      Description copied from class: BaseJdmpviewCommand
      Print detailed help for a given command
      Specified by:
      printDetailedHelp in class BaseJdmpviewCommand
      Parameters:
      out - stream to write the output to