Uses of Class
java.lang.StackTraceElement
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
Contains interfaces and classes that are used to link an
invokedynamic
call site.Defines the Service Provider Interface for pluggable JShell execution engines.
-
Uses of StackTraceElement in java.lang
Modifier and TypeMethodDescriptionThread.getStackTrace()
Returns an array of stack trace elements representing the stack dump of this thread.Throwable.getStackTrace()
Provides programmatic access to the stack trace information printed byThrowable.printStackTrace()
.StackWalker.StackFrame.toStackTraceElement()
Gets aStackTraceElement
for this stack frame.Modifier and TypeMethodDescriptionvoid
Throwable.setStackTrace(StackTraceElement[] stackTrace)
Sets the stack trace elements that will be returned byThrowable.getStackTrace()
and printed byThrowable.printStackTrace()
and related methods. -
Uses of StackTraceElement in java.lang.management
Modifier and TypeMethodDescriptionMonitorInfo.getLockedStackFrame()
Returns the stack frame that locked the object monitor.ThreadInfo.getStackTrace()
Returns the stack trace of the thread associated with thisThreadInfo
.ModifierConstructorDescriptionMonitorInfo(String className, int identityHashCode, int stackDepth, StackTraceElement stackFrame)
Construct aMonitorInfo
object. -
Uses of StackTraceElement in jdk.dynalink
Modifier and TypeMethodDescriptionstatic StackTraceElement
DynamicLinker.getLinkedCallSiteLocation()
Returns a stack trace element describing the location of theinvokedynamic
call site currently being linked on the current thread. -
Uses of StackTraceElement in jdk.jshell.spi
ModifierConstructorDescriptionResolutionException(int id, StackTraceElement[] stackElements)
Constructs an exception indicating that aDeclarationSnippet
with unresolved references has been encountered.UserException(String message, String causeExceptionClass, StackTraceElement[] stackElements)