Package org.pkl.core
Class StackFrame
java.lang.Object
org.pkl.core.StackFrame
An element of a Pkl stack trace.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the end column number (1-based) corresponding to this frame.intReturns the end line number (1-based) corresponding to this frame.Returns the qualified name of the property or function corresponding to this frame, if any.Returns the module URI to display for this frame.Returns the lines of source code corresponding to this frame.intReturns the start column number (1-based) corresponding to this frame.intReturns the start line number (1-based) corresponding to this frame.inthashCode()withModuleUri(String moduleUri) Returns a copy of this frame with the given module URI.
-
Constructor Details
-
StackFrame
-
-
Method Details
-
getModuleUri
Returns the module URI to display for this frame. May not be a syntactically valid URI. -
withModuleUri
Returns a copy of this frame with the given module URI. -
getMemberName
Returns the qualified name of the property or function corresponding to this frame, if any. -
getSourceLines
Returns the lines of source code corresponding to this frame. The first line has line numbergetStartLine(). The last line has line numbergetEndLine(). -
getStartLine
public int getStartLine()Returns the start line number (1-based) corresponding to this frame. -
getStartColumn
public int getStartColumn()Returns the start column number (1-based) corresponding to this frame. -
getEndLine
public int getEndLine()Returns the end line number (1-based) corresponding to this frame. -
getEndColumn
public int getEndColumn()Returns the end column number (1-based) corresponding to this frame. -
equals
-
hashCode
public int hashCode()
-