DebugStackTraceElement
public final class DebugStackTraceElement- Inheritance
ObjectDebugStackTraceElement
Represents a trace element in the guest language stack trace. A guest language trace element consists of a name, the current source location and scopes containing local variables and arguments.
The difference between this class and DebugStackFrame is the limited life-time of DebugStackFrame, that is associated with a SuspendedEvent.
Methods6
boolean isInternal()
isInternal
since 19.0public boolean isInternal()Returns whether this trace element is a language implementation artifact.
The decision to mark a method as internal is language-specific, reflects judgments about tool usability, and is subject to change.
Returns
boolean- No description.
boolean isHost()
isHost
since 20.3public boolean isHost()Returns true if this element is a host element. Host elements provide stack trace element, have no scope, and no source section.
Host elements are provided only when host info is set to true.
Returns
boolean- No description.
StackTraceElement getHostTraceElement()
getHostTraceElement
since 20.3public StackTraceElement getHostTraceElement()Provides a host element. Returns the host stack trace element if and only if this is host element.
Returns
StackTraceElement- the host stack trace element, or
nullwhen not a host element.
See also
String getName()
SourceSection getSourceSection()
getSourceSection
since 19.0public SourceSection getSourceSection()Returns the source section location of this trace element. The source section is null if the source location is not available.
Returns
SourceSection- No description.
DebugScope getScope()
getScope
since 19.0public DebugScope getScope()Get the current inner-most scope. The scope might not provide valid information if the execution path diverges from this trace element.
Returns
DebugScope- the scope, or
nullwhen no language is associated with this frame location, or when no local scope exists.