Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.management |
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
|
Modifier and Type | Method and Description |
---|---|
StackTraceElement[] |
Throwable.getStackTrace()
Answers an array of StackTraceElement.
|
StackTraceElement[] |
Thread.getStackTrace()
Returns an array of StackTraceElement, where each element of the array represents a frame
on the Java stack.
|
Modifier and Type | Method and Description |
---|---|
void |
Throwable.setStackTrace(StackTraceElement[] trace)
Sets the array of StackTraceElements.
|
Modifier and Type | Method and Description |
---|---|
StackTraceElement |
MonitorInfo.getLockedStackFrame()
The complete
StackTraceElement in which the monitor was locked. |
StackTraceElement[] |
ThreadInfo.getStackTrace()
If available, returns the stack trace for the thread represented by this
ThreadInfo instance. |
Constructor and Description |
---|
MonitorInfo(String className,
int identityHashCode,
int stackDepth,
StackTraceElement stackFrame)
Creates a new
MonitorInfo instance. |
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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.