Class Dim.ContextData
- java.lang.Object
-
- org.htmlunit.corejs.javascript.tools.debugger.Dim.ContextData
-
- Enclosing class:
- Dim
public static class Dim.ContextData extends java.lang.ObjectClass to store information about a stack.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbreakNextLineWhether the debugger should break at the next line in this context.private booleaneventThreadFlagWhether this context is in the event thread.private ObjArrayframeStackThe stack frames.private java.lang.ThrowablelastProcessedExceptionThe last exception that was processed.private intstopAtFrameDepthThe 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 intframeCount()Returns the number of stack frames.static Dim.ContextDataget(Context cx)Returns the ContextData for the given Context.Dim.StackFramegetFrame(int frameNumber)Returns the stack frame with the given index.private voidpopFrame()Pops a stack frame from the stack.private voidpushFrame(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.
-
-