com.ashridgetech.saxon.debugger
Class CommandInterface.Command

java.lang.Object
  |
  +--com.ashridgetech.saxon.debugger.CommandInterface.Command
Direct Known Subclasses:
BreakCommand, CommentCommand, GoCommand, MoveCommand, NextCommand, PrintCommand, RemoveCommand, RepeatCommand, StepCommand, WhereCommand
Enclosing class:
CommandInterface

public abstract static class CommandInterface.Command
extends Object


Field Summary
protected  String abbreviation
           
protected  String name
           
protected  String text
           
 
Constructor Summary
protected CommandInterface.Command(boolean dummy, String name, String abbreviation)
           
protected CommandInterface.Command(String name, String text)
           
 
Method Summary
protected  void checkArgCount(List args, int argLimit)
           
protected  CommandInterface.Command create(String text)
           
abstract  void execute(SimpleDebugger debugger, CommandInterface commander)
           
static List extractArgs(String text)
           
static String extractName(String text)
           
 String getAbbreviation()
           
 String getName()
           
 String getText()
           
protected abstract  CommandInterface.Command makeNew(String text)
           
protected abstract  void parse(List args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

abbreviation

protected String abbreviation

text

protected String text
Constructor Detail

CommandInterface.Command

protected CommandInterface.Command(boolean dummy,
                                   String name,
                                   String abbreviation)

CommandInterface.Command

protected CommandInterface.Command(String name,
                                   String text)
                            throws CommandException
Method Detail

extractName

public static String extractName(String text)

extractArgs

public static List extractArgs(String text)

getAbbreviation

public String getAbbreviation()

getName

public String getName()

getText

public String getText()

checkArgCount

protected void checkArgCount(List args,
                             int argLimit)
                      throws CommandException

parse

protected abstract void parse(List args)
                       throws CommandException

create

protected CommandInterface.Command create(String text)
                                   throws CommandException

makeNew

protected abstract CommandInterface.Command makeNew(String text)
                                             throws CommandException

execute

public abstract void execute(SimpleDebugger debugger,
                             CommandInterface commander)
                      throws CommandException


Copyright © 2002 Ashridge Technologies Ltd. All Rights Reserved.