软件包 | 描述 |
---|---|
java.lang |
提供对java编程语言的设计基础课。
|
java.lang.management |
在java运行在java虚拟机和其他部件的监测和管理提供了管理接口。
|
Modifier and Type | Method and Description |
---|---|
StackTraceElement[] |
Thread.getStackTrace()
返回表示此线程的堆栈转储的堆栈跟踪元素的数组。
|
StackTraceElement[] |
Throwable.getStackTrace()
提供的堆栈跟踪信息的印刷
Throwable.printStackTrace() 编程访问。
|
Modifier and Type | Method and Description |
---|---|
void |
Throwable.setStackTrace(StackTraceElement[] stackTrace)
设置堆栈跟踪的元素将被退回
Throwable.getStackTrace() 和印刷
Throwable.printStackTrace() 和相关方法。
|
Modifier and Type | Method and Description |
---|---|
StackTraceElement |
MonitorInfo.getLockedStackFrame()
返回锁定对象监视器的堆栈帧。
|
StackTraceElement[] |
ThreadInfo.getStackTrace()
返回这个
ThreadInfo关联的线程的堆栈跟踪。
|
Constructor and Description |
---|
MonitorInfo(String className, int identityHashCode, int stackDepth, StackTraceElement stackFrame)
构建一个
MonitorInfo对象。
|
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 © 1993, 2014, Oracle and/or its affiliates. All rights reserved.