Class StackFrame

java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.StackFrame

public class StackFrame extends JSONBase
A Stackframe contains the source location.
  • Method Details

    • getId

      public int getId()
      An identifier for the stack frame. It must be unique across all threads. This id can be used to retrieve the scopes of the frame with the 'scopesRequest' or to restart the execution of a stackframe.
    • setId

      public StackFrame setId(int id)
    • getName

      public String getName()
      The name of the stack frame, typically a method name.
    • setName

      public StackFrame setName(String name)
    • getSource

      public Source getSource()
      The optional source of the frame.
    • setSource

      public StackFrame setSource(Source source)
    • getLine

      public int getLine()
      The line within the file of the frame. If source is null or doesn't exist, line is 0 and must be ignored.
    • setLine

      public StackFrame setLine(int line)
    • getColumn

      public int getColumn()
      The column within the line. If source is null or doesn't exist, column is 0 and must be ignored.
    • setColumn

      public StackFrame setColumn(int column)
    • getEndLine

      public Integer getEndLine()
      An optional end line of the range covered by the stack frame.
    • setEndLine

      public StackFrame setEndLine(Integer endLine)
    • getEndColumn

      public Integer getEndColumn()
      An optional end column of the range covered by the stack frame.
    • setEndColumn

      public StackFrame setEndColumn(Integer endColumn)
    • getInstructionPointerReference

      public String getInstructionPointerReference()
      Optional memory reference for the current instruction pointer in this frame.
    • setInstructionPointerReference

      public StackFrame setInstructionPointerReference(String instructionPointerReference)
    • getModuleId

      public Object getModuleId()
      The module associated with this frame, if any.
    • setModuleId

      public StackFrame setModuleId(Object moduleId)
    • getPresentationHint

      public String getPresentationHint()
      An optional hint for how to present this frame in the UI. A value of 'label' can be used to indicate that the frame is an artificial frame that is used as a visual label or separator. A value of 'subtle' can be used to change the appearance of a frame in a 'subtle' way.
    • setPresentationHint

      public StackFrame setPresentationHint(String presentationHint)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static StackFrame create(Integer id, String name, Integer line, Integer column)