public final class TruffleStackTraceElement extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
fillIn(Throwable throwable)
Fills in the guest language stack frames from the current frames on the stack.
|
Frame |
getFrame()
Returns the materialized frame.
|
Node |
getLocation()
Returns a node representing the callsite on the stack.
|
static List<TruffleStackTraceElement> |
getStackTrace(Throwable throwable)
Returns the guest language frames that are stored in this throwable or
null if
no guest language frames are available. |
RootCallTarget |
getTarget()
Returns the call target on the stack.
|
public Node getLocation()
null if no
detailed callsite information is available.public RootCallTarget getTarget()
null.public Frame getFrame()
null if the initial RootNode
that filled in the stack trace did not request frames to be captured by overriding
RootNode.isCaptureFramesForTrace().public static List<TruffleStackTraceElement> getStackTrace(Throwable throwable)
null if
no guest language frames are available. Guest language frames are automatically added by the
Truffle runtime the first time the exception is passed through a call
target and the frames are not yet set. Therefore no guest language frames are available
immediately after the exception was constructed. The returned list is not modifiable. The
number stack trace elements that are filled in can be customized by implementing
TruffleException.getStackTraceElementLimit() .throwable - the throwable instance to look for guest language framesTo force early filling of guest language stack frames.public static void fillIn(Throwable throwable)
cause
chain of the exception. The number stack trace elements that are filled in can be customized
by implementing TruffleException.getStackTraceElementLimit() .throwable - the throwable to fill