1 package jde.debugger.command;
2 import com.sun.jdi.ObjectReference;
3 import jde.debugger.Etc;
4 import jde.debugger.JDEException;
5 import jde.debugger.Rep;
9 * 'get_object_monitors' command. Information about the monitors
10 * corresponding to a particular object.
15 * get_object_monitors objectID
20 * (jde-dbo-command-result cmd_id
21 * {@link Rep#getObjectMonitorsRep(ObjectReference) object-monitors-info})
24 * Copyright (c) 2000, 2001, 2003 Paul Kinnucan
26 * @author Paul Kinnucan
27 * @version $Revision: 1.2 $
30 public class GetObjectMonitors extends DebugProcessCommand {
34 * @exception jde.debugger.JDEException <description>
36 public void doCommand() throws JDEException {
37 if (m_args.size() != 1)
38 throw new JDEException("Insufficient arguments");
40 Long uniqueID = Etc.safeGetLong(m_args.remove(0), "object ID");
41 ObjectReference oRef = m_debugger.getStore().get(uniqueID);
43 throw new JDEException("No such object exists");
45 m_debugger.signalCommandResult(m_cmdID, Rep.getObjectMonitorsRep(oRef), CMD_OK, NOQUOTE);
50 public Object clone() {return new GetObjectMonitors();}
52 } // GetObjectMonitors
55 * $Log: GetObjectMonitors.java,v $
56 * Revision 1.2 2003/01/15 05:56:26 paulk
57 * Add Petter Mahlen's changes.
59 * Revision 1.1 2001/03/24 05:52:14 paulk
65 // End of GetObjectMonitors.java