public class ThreadReferenceImpl extends ObjectReferenceImpl implements com.sun.jdi.ThreadReference, JVMTIThreadState
Modifier and Type | Field and Description |
---|---|
protected VirtualMachineImpl |
vm |
THREAD_STATUS_MONITOR, THREAD_STATUS_NOT_STARTED, THREAD_STATUS_RUNNING, THREAD_STATUS_SLEEPING, THREAD_STATUS_UNKNOWN, THREAD_STATUS_WAIT, THREAD_STATUS_ZOMBIE
INVOKE_NONVIRTUAL, INVOKE_SINGLE_THREADED
JVMTI_THREAD_STATE_ALIVE, JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER, JVMTI_THREAD_STATE_IN_NATIVE, JVMTI_THREAD_STATE_IN_OBJECT_WAIT, JVMTI_THREAD_STATE_INTERRUPTED, JVMTI_THREAD_STATE_PARKED, JVMTI_THREAD_STATE_RUNNABLE, JVMTI_THREAD_STATE_SLEEPING, JVMTI_THREAD_STATE_SUSPENDED, JVMTI_THREAD_STATE_TERMINATED, JVMTI_THREAD_STATE_WAITING, JVMTI_THREAD_STATE_WAITING_INDEFINITELY, JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT
Modifier and Type | Method and Description |
---|---|
com.sun.jdi.ObjectReference |
currentContendedMonitor() |
protected java.lang.String |
description() |
void |
forceEarlyReturn(com.sun.jdi.Value returnValue) |
com.sun.jdi.StackFrame |
frame(int index) |
int |
frameCount() |
java.util.List |
frames() |
java.util.List |
frames(int start,
int length) |
void |
interrupt() |
boolean |
isAtBreakpoint() |
boolean |
isSuspended() |
java.lang.String |
name()
Note that we only cache the name string while suspended because
it can change via Thread.setName arbitrarily
|
java.util.List |
ownedMonitors() |
java.util.List |
ownedMonitorsAndFrames() |
void |
popFrames(com.sun.jdi.StackFrame frame) |
void |
resume() |
int |
status() |
void |
stop(com.sun.jdi.ObjectReference throwable) |
void |
suspend() |
int |
suspendCount() |
com.sun.jdi.ThreadGroupReference |
threadGroup() |
java.lang.String |
toString() |
com.sun.jdi.VirtualMachine |
virtualMachine() |
disableCollection, enableCollection, entryCount, equals, getValue, getValues, hashCode, invokeMethod, isCollected, owningThread, ref, referenceType, referringObjects, setValue, type, uniqueID, waitingThreads
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected VirtualMachineImpl vm
protected java.lang.String description()
public java.lang.String name()
name
in interface com.sun.jdi.ThreadReference
public void suspend()
suspend
in interface com.sun.jdi.ThreadReference
public void resume()
resume
in interface com.sun.jdi.ThreadReference
public int suspendCount()
suspendCount
in interface com.sun.jdi.ThreadReference
public void stop(com.sun.jdi.ObjectReference throwable) throws com.sun.jdi.InvalidTypeException
stop
in interface com.sun.jdi.ThreadReference
com.sun.jdi.InvalidTypeException
public void interrupt()
interrupt
in interface com.sun.jdi.ThreadReference
public int status()
status
in interface com.sun.jdi.ThreadReference
public boolean isSuspended()
isSuspended
in interface com.sun.jdi.ThreadReference
public boolean isAtBreakpoint()
isAtBreakpoint
in interface com.sun.jdi.ThreadReference
public com.sun.jdi.ThreadGroupReference threadGroup()
threadGroup
in interface com.sun.jdi.ThreadReference
public int frameCount() throws com.sun.jdi.IncompatibleThreadStateException
frameCount
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public java.util.List frames() throws com.sun.jdi.IncompatibleThreadStateException
frames
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public com.sun.jdi.StackFrame frame(int index) throws com.sun.jdi.IncompatibleThreadStateException
frame
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public java.util.List frames(int start, int length) throws com.sun.jdi.IncompatibleThreadStateException
frames
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public java.util.List ownedMonitors() throws com.sun.jdi.IncompatibleThreadStateException
ownedMonitors
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public java.util.List ownedMonitorsAndFrames() throws com.sun.jdi.IncompatibleThreadStateException
ownedMonitorsAndFrames
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public com.sun.jdi.ObjectReference currentContendedMonitor() throws com.sun.jdi.IncompatibleThreadStateException
currentContendedMonitor
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public void popFrames(com.sun.jdi.StackFrame frame) throws com.sun.jdi.IncompatibleThreadStateException
popFrames
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public void forceEarlyReturn(com.sun.jdi.Value returnValue) throws com.sun.jdi.IncompatibleThreadStateException
forceEarlyReturn
in interface com.sun.jdi.ThreadReference
com.sun.jdi.IncompatibleThreadStateException
public java.lang.String toString()
toString
in interface com.sun.jdi.Mirror
toString
in class ObjectReferenceImpl
public com.sun.jdi.VirtualMachine virtualMachine()
virtualMachine
in interface com.sun.jdi.Mirror
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.