Class Dim.ContextData
- java.lang.Object
-
- org.mozilla.javascript.tools.debugger.Dim.ContextData
-
- Enclosing class:
- Dim
public static class Dim.ContextData extends java.lang.Object
Class to store information about a stack.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
breakNextLine
Whether the debugger should break at the next line in this context.private boolean
eventThreadFlag
Whether this context is in the event thread.private ObjArray
frameStack
The stack frames.private java.lang.Throwable
lastProcessedException
The last exception that was processed.private int
stopAtFrameDepth
The frame depth the debugger should stop at.
-
Constructor Summary
Constructors Constructor Description ContextData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
frameCount()
Returns the number of stack frames.static Dim.ContextData
get(Context cx)
Returns the ContextData for the given Context.Dim.StackFrame
getFrame(int frameNumber)
Returns the stack frame with the given index.private void
popFrame()
Pops a stack frame from the stack.private void
pushFrame(Dim.StackFrame frame)
Pushes a stack frame on to the stack.
-
-
-
Field Detail
-
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 java.lang.Throwable lastProcessedException
The last exception that was processed.
-
-
Method Detail
-
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.
-
-