Class CallStackFrame

  • All Implemented Interfaces:
    org.htmlunit.corejs.javascript.debug.DebugFrame

    public class CallStackFrame
    extends Object
    implements org.htmlunit.corejs.javascript.debug.DebugFrame
    Stack frame.
    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • fnOrScript

        public final org.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript
        The function being executed.
    • Constructor Detail

      • CallStackFrame

        public CallStackFrame​(JavaScriptDebugger owner,
                              org.htmlunit.corejs.javascript.debug.DebuggableScript fnOrScript)
    • Method Detail

      • onEnter

        public void onEnter​(org.htmlunit.corejs.javascript.Context cx,
                            org.htmlunit.corejs.javascript.Scriptable activation,
                            org.htmlunit.corejs.javascript.Scriptable thisObj,
                            Object[] args)
        Specified by:
        onEnter in interface org.htmlunit.corejs.javascript.debug.DebugFrame
      • onExit

        public void onExit​(org.htmlunit.corejs.javascript.Context cx,
                           boolean byThrow,
                           Object resultOrException)
        Specified by:
        onExit in interface org.htmlunit.corejs.javascript.debug.DebugFrame
      • onLineChange

        public void onLineChange​(org.htmlunit.corejs.javascript.Context cx,
                                 int lineNumber)
        Specified by:
        onLineChange in interface org.htmlunit.corejs.javascript.debug.DebugFrame
      • onExceptionThrown

        public void onExceptionThrown​(org.htmlunit.corejs.javascript.Context cx,
                                      Throwable ex)
        Specified by:
        onExceptionThrown in interface org.htmlunit.corejs.javascript.debug.DebugFrame
      • onDebuggerStatement

        public void onDebuggerStatement​(org.htmlunit.corejs.javascript.Context cx)
        Specified by:
        onDebuggerStatement in interface org.htmlunit.corejs.javascript.debug.DebugFrame
      • toString

        public String toString()
        Formats this call stack, arguments, and its local variables as a human readable string.
        Overrides:
        toString in class Object