org.mozilla.javascript.tools.debugger
Class Dim.StackFrame

java.lang.Object
  extended by org.mozilla.javascript.tools.debugger.Dim.StackFrame
All Implemented Interfaces:
net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame
Enclosing class:
Dim

public static class Dim.StackFrame
extends java.lang.Object
implements net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame

Object to represent one stack frame.


Method Summary
 Dim.ContextData contextData()
          Returns the ContextData object for the Context.
 int getLineNumber()
          Returns the current line number.
 java.lang.String getUrl()
          Returns the source URL.
 void onDebuggerStatement(net.sourceforge.htmlunit.corejs.javascript.Context cx)
          Called when a 'debugger' statement is executed.
 void onEnter(net.sourceforge.htmlunit.corejs.javascript.Context cx, net.sourceforge.htmlunit.corejs.javascript.Scriptable scope, net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj, java.lang.Object[] args)
          Called when the stack frame is entered.
 void onExceptionThrown(net.sourceforge.htmlunit.corejs.javascript.Context cx, java.lang.Throwable exception)
          Called when an exception has been thrown.
 void onExit(net.sourceforge.htmlunit.corejs.javascript.Context cx, boolean byThrow, java.lang.Object resultOrException)
          Called when the stack frame has been left.
 void onLineChange(net.sourceforge.htmlunit.corejs.javascript.Context cx, int lineno)
          Called when the current position has changed.
 java.lang.Object scope()
          Returns the scope object for this frame.
 Dim.SourceInfo sourceInfo()
          Returns the SourceInfo object for the function.
 java.lang.Object thisObj()
          Returns the 'this' object for this frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

onEnter

public void onEnter(net.sourceforge.htmlunit.corejs.javascript.Context cx,
                    net.sourceforge.htmlunit.corejs.javascript.Scriptable scope,
                    net.sourceforge.htmlunit.corejs.javascript.Scriptable thisObj,
                    java.lang.Object[] args)
Called when the stack frame is entered.

Specified by:
onEnter in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame

onLineChange

public void onLineChange(net.sourceforge.htmlunit.corejs.javascript.Context cx,
                         int lineno)
Called when the current position has changed.

Specified by:
onLineChange in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame

onExceptionThrown

public void onExceptionThrown(net.sourceforge.htmlunit.corejs.javascript.Context cx,
                              java.lang.Throwable exception)
Called when an exception has been thrown.

Specified by:
onExceptionThrown in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame

onExit

public void onExit(net.sourceforge.htmlunit.corejs.javascript.Context cx,
                   boolean byThrow,
                   java.lang.Object resultOrException)
Called when the stack frame has been left.

Specified by:
onExit in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame

onDebuggerStatement

public void onDebuggerStatement(net.sourceforge.htmlunit.corejs.javascript.Context cx)
Called when a 'debugger' statement is executed.

Specified by:
onDebuggerStatement in interface net.sourceforge.htmlunit.corejs.javascript.debug.DebugFrame

sourceInfo

public Dim.SourceInfo sourceInfo()
Returns the SourceInfo object for the function.


contextData

public Dim.ContextData contextData()
Returns the ContextData object for the Context.


scope

public java.lang.Object scope()
Returns the scope object for this frame.


thisObj

public java.lang.Object thisObj()
Returns the 'this' object for this frame.


getUrl

public java.lang.String getUrl()
Returns the source URL.


getLineNumber

public int getLineNumber()
Returns the current line number.



Copyright © 2010. All Rights Reserved.