1 package jde.debugger.command;
3 import jde.debugger.JDEException;
4 import jde.debugger.Protocol;
8 * Class of debugger commands.
10 * Command-line syntax:
12 * app_id cmd_id cmd_name [arg]*
14 * Copyright (c) 2000, 2001, 2003 Paul Kinnucan
16 * @author Paul Kinnucan
17 * @version $Revision: 1.3 $
20 abstract public class DebugCommand implements Protocol, Cloneable {
26 public DebugCommand() { }
28 public void init(Integer cmdID, String cmdName, List args) throws JDEException {
34 public Integer getID() {
38 public String toString() {
39 return m_cmdID.toString() + " " + m_cmdName;
42 public boolean equals(Object o) {
43 if (!(o instanceof DebugCommand)) {
47 return m_cmdID.equals(((DebugCommand) o).getID());
50 abstract protected void doCommand() throws JDEException;
51 abstract public Object clone();
56 * $Log: DebugCommand.java,v $
57 * Revision 1.3 2003/01/15 05:56:26 paulk
58 * Add Petter Mahlen's changes.
60 * Revision 1.2 2001/03/24 05:42:36 paulk
61 * Updated to reflect reorganization of debugger code.
63 * Revision 1.1 2000/01/30 12:31:51 paulk
68 // End of DebugCommand.java