Class Dim.StackFrame
- java.lang.Object
- 
- org.mozilla.javascript.tools.debugger.Dim.StackFrame
 
- 
- All Implemented Interfaces:
- DebugFrame
 - Enclosing class:
- Dim
 
 public static class Dim.StackFrame extends java.lang.Object implements DebugFrame Object to represent one stack frame.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Dim.ContextDatacontextData()Returns the ContextData object for the Context.java.lang.StringgetFunctionName()Returns the current function name.intgetLineNumber()Returns the current line number.java.lang.StringgetUrl()Returns the source URL.voidonDebuggerStatement(Context cx)Called when a 'debugger' statement is executed.voidonEnter(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)Called when the stack frame is entered.voidonExceptionThrown(Context cx, java.lang.Throwable exception)Called when an exception has been thrown.voidonExit(Context cx, boolean byThrow, java.lang.Object resultOrException)Called when the stack frame has been left.voidonLineChange(Context cx, int lineno)Called when the current position has changed.java.lang.Objectscope()Returns the scope object for this frame.Dim.SourceInfosourceInfo()Returns the SourceInfo object for the function.java.lang.ObjectthisObj()Returns the 'this' object for this frame.
 
- 
- 
- 
Method Detail- 
onEnterpublic void onEnter(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args) Called when the stack frame is entered.- Specified by:
- onEnterin interface- DebugFrame
- Parameters:
- cx- current Context for this thread
- scope- the activation scope for the function or script.
- thisObj- value of the JavaScript- thisobject
- args- the array of arguments
 
 - 
onLineChangepublic void onLineChange(Context cx, int lineno) Called when the current position has changed.- Specified by:
- onLineChangein interface- DebugFrame
- Parameters:
- cx- current Context for this thread
- lineno- current line number in the script source
 
 - 
onExceptionThrownpublic void onExceptionThrown(Context cx, java.lang.Throwable exception) Called when an exception has been thrown.- Specified by:
- onExceptionThrownin interface- DebugFrame
- Parameters:
- cx- current Context for this thread
- exception- exception object
 
 - 
onExitpublic void onExit(Context cx, boolean byThrow, java.lang.Object resultOrException) Called when the stack frame has been left.- Specified by:
- onExitin interface- DebugFrame
- Parameters:
- cx- current Context for this thread
- byThrow- if true function will leave by throwing exception, otherwise it will execute normal return
- resultOrException- function result in case of normal return or exception object if about to throw exception
 
 - 
onDebuggerStatementpublic void onDebuggerStatement(Context cx) Called when a 'debugger' statement is executed.- Specified by:
- onDebuggerStatementin interface- DebugFrame
- Parameters:
- cx- current Context for this thread
 
 - 
sourceInfopublic Dim.SourceInfo sourceInfo() Returns the SourceInfo object for the function.
 - 
contextDatapublic Dim.ContextData contextData() Returns the ContextData object for the Context.
 - 
scopepublic java.lang.Object scope() Returns the scope object for this frame.
 - 
thisObjpublic java.lang.Object thisObj() Returns the 'this' object for this frame.
 - 
getUrlpublic java.lang.String getUrl() Returns the source URL.
 - 
getLineNumberpublic int getLineNumber() Returns the current line number.
 - 
getFunctionNamepublic java.lang.String getFunctionName() Returns the current function name.
 
- 
 
-