public final class DebugStackTraceElement extends Object
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
.
DebugException.getDebugStackTrace()
Modifier and Type | Method and Description |
---|---|
StackTraceElement |
getHostTraceElement()
Provides a host element.
|
String |
getName()
A description of the trace element.
|
DebugScope |
getScope()
Get the current inner-most scope.
|
SourceSection |
getSourceSection()
Returns the source section location of this trace element.
|
boolean |
isHost()
Returns
true if this element is a host element. |
boolean |
isInternal()
Returns whether this trace element is a language implementation artifact.
|
public boolean isInternal()
The decision to mark a method as internal is language-specific, reflects judgments about tool usability, and is subject to change.
public boolean isHost()
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
.
DebuggerSession.setShowHostStackFrames(boolean)
public StackTraceElement getHostTraceElement()
host
element.null
when not a host element.DebugStackTraceElement.isHost()
public String getName()
null
is returned.public SourceSection getSourceSection()
null
if the source location is not available.public DebugScope getScope()
null
when no language is associated with this frame
location, or when no local scope exists.