01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package com.sun.jdi;
11:
12: import java.util.List;
13:
14: public interface ThreadReference extends ObjectReference {
15: public static final int THREAD_STATUS_UNKNOWN = -1;
16: public static final int THREAD_STATUS_ZOMBIE = 0;
17: public static final int THREAD_STATUS_RUNNING = 1;
18: public static final int THREAD_STATUS_SLEEPING = 2;
19: public static final int THREAD_STATUS_MONITOR = 3;
20: public static final int THREAD_STATUS_WAIT = 4;
21: public static final int THREAD_STATUS_NOT_STARTED = 5;
22:
23: public ObjectReference currentContendedMonitor()
24: throws IncompatibleThreadStateException;
25:
26: public StackFrame frame(int arg1)
27: throws IncompatibleThreadStateException;
28:
29: public int frameCount() throws IncompatibleThreadStateException;
30:
31: public List frames() throws IncompatibleThreadStateException;
32:
33: public List frames(int arg1, int arg2)
34: throws IncompatibleThreadStateException;
35:
36: public void interrupt();
37:
38: public boolean isAtBreakpoint();
39:
40: public boolean isSuspended();
41:
42: public String name();
43:
44: public List ownedMonitors() throws IncompatibleThreadStateException;
45:
46: public void popFrames(StackFrame frame)
47: throws IncompatibleThreadStateException;
48:
49: public void resume();
50:
51: public int status();
52:
53: public void stop(ObjectReference arg1) throws InvalidTypeException;
54:
55: public void suspend();
56:
57: public int suspendCount();
58:
59: public ThreadGroupReference threadGroup();
60:
61: public void forceEarlyReturn(Value arg1)
62: throws InvalidTypeException, ClassNotLoadedException,
63: IncompatibleThreadStateException;
64:
65: public List ownedMonitorsAndFrames()
66: throws IncompatibleThreadStateException;
67: }
|