edu.rice.cs.drjava.model.debug.jpda
Class JPDAThreadData
java.lang.Object
edu.rice.cs.drjava.model.debug.DebugThreadData
edu.rice.cs.drjava.model.debug.jpda.JPDAThreadData
public class JPDAThreadData
- extends DebugThreadData
Class for keeping track of the currently running threads.
- Version:
- $Id: JPDAThreadData.java 5175 2010-01-20 08:46:32Z mgricken $
|
Field Summary |
private com.sun.jdi.ThreadReference |
_thread
|
|
Constructor Summary |
JPDAThreadData(com.sun.jdi.ThreadReference thread)
Object for keeping track of a thread in the debuggee JVM. |
|
Method Summary |
boolean |
isSuspended()
Tells whether or not the thread is suspended. |
private static boolean |
safeIsSuspended(com.sun.jdi.ThreadReference t)
Invoke t.isSuspended() under the protection of a try-catch block |
private static String |
threadName(com.sun.jdi.ThreadReference thread)
|
private static String |
threadStatus(com.sun.jdi.ThreadReference thread)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_thread
private final com.sun.jdi.ThreadReference _thread
JPDAThreadData
public JPDAThreadData(com.sun.jdi.ThreadReference thread)
- Object for keeping track of a thread in the debuggee JVM.
- Parameters:
thread - JPDA's reference to the thread
threadName
private static String threadName(com.sun.jdi.ThreadReference thread)
threadStatus
private static String threadStatus(com.sun.jdi.ThreadReference thread)
isSuspended
public boolean isSuspended()
- Tells whether or not the thread is suspended.
- Specified by:
isSuspended in class DebugThreadData
- Returns:
- true iff the thread is suspended
safeIsSuspended
private static boolean safeIsSuspended(com.sun.jdi.ThreadReference t)
- Invoke
t.isSuspended() under the protection of a try-catch block