Class Dim.ContextData

java.lang.Object
org.mozilla.javascript.tools.debugger.Dim.ContextData
Enclosing class:
Dim

public static class Dim.ContextData extends Object
Class to store information about a stack.
  • Field Details

    • frameStack

      private ObjArray frameStack
      The stack frames.
    • breakNextLine

      private boolean breakNextLine
      Whether the debugger should break at the next line in this context.
    • stopAtFrameDepth

      private int stopAtFrameDepth
      The frame depth the debugger should stop at. Used to implement "step over" and "step out".
    • eventThreadFlag

      private boolean eventThreadFlag
      Whether this context is in the event thread.
    • lastProcessedException

      private Throwable lastProcessedException
      The last exception that was processed.
  • Constructor Details

    • ContextData

      public ContextData()
  • Method Details

    • get

      public static Dim.ContextData get(Context cx)
      Returns the ContextData for the given Context.
    • frameCount

      public int frameCount()
      Returns the number of stack frames.
    • getFrame

      public Dim.StackFrame getFrame(int frameNumber)
      Returns the stack frame with the given index.
    • pushFrame

      private void pushFrame(Dim.StackFrame frame)
      Pushes a stack frame on to the stack.
    • popFrame

      private void popFrame()
      Pops a stack frame from the stack.