public final class PolyglotException.StackFrame extends Object
Modifier and Type | Method and Description |
---|---|
Language |
getLanguage()
Returns the language of this stack frame.
|
String |
getRootName()
Returns the root name of this stack frame.
|
SourceSection |
getSourceLocation()
Returns the source location of the stack frame or
null if no source location
is available. |
boolean |
isGuestFrame()
Returns true if the stack frame originates from the guest language.
|
boolean |
isHostFrame()
Returns true if the stack frame originates from the host language.
|
StackTraceElement |
toHostFrame()
Returns a Java stack trace element representation of the polyglot stack trace element.
|
String |
toString()
Returns a string representation of this stack frame.
|
public boolean isHostFrame()
source location
. Instead the Java stack frame can
be accessed using PolyglotException.StackFrame.toHostFrame()
.public boolean isGuestFrame()
public StackTraceElement toHostFrame()
public SourceSection getSourceLocation()
null
if no source location
is available. Host frames do never provide a source location.public String getRootName()
public Language getLanguage()