类的用途
com.sun.jdi.IncompatibleThreadStateException
-
IncompatibleThreadStateException 在 com.sun.jdi 中的用法
修饰符和类型方法描述ThreadReference.currentContendedMonitor()为监视器返回一个ObjectReference,如果有的话,这个线程当前正在等待。intObjectReference.entryCount()返回当前所属线程进入此对象监视器的次数。voidThreadReference.forceEarlyReturn(Value value) 强制方法在到达返回语句之前返回。ThreadReference.frame(int index) 返回线程当前调用堆栈中给定索引处的StackFrame。intThreadReference.frameCount()返回线程当前调用堆栈中的堆栈帧数。ThreadReference.frames()返回一个列表,其中包含线程当前调用堆栈中的每个StackFrame。ThreadReference.frames(int start, int length) 返回一个列表,其中包含来自线程当前调用堆栈的一系列StackFrame镜像。ClassType.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中调用指定的静态Method。default ValueInterfaceType.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中调用指定的静态Method。ObjectReference.invokeMethod(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 在目标 VM 中的此对象上调用指定的Method。ClassType.newInstance(ThreadReference thread, Method method, List<? extends Value> arguments, int options) 使用目标 VM 中的给定构造函数Method构造此类型的新实例。ThreadReference.ownedMonitors()为线程拥有的每个监视器返回一个包含ObjectReference的列表。ThreadReference.ownedMonitorsAndFrames()返回一个列表,其中包含线程拥有的每个监视器的MonitorInfo对象。ObjectReference.owningThread()返回当前拥有此对象监视器的线程的ThreadReference(如果有)。voidThreadReference.popFrames(StackFrame frame) 弹出堆栈帧。ObjectReference.waitingThreads()为当前等待此对象监视器的每个线程返回一个包含ThreadReference的列表。