public static class Dim.StackFrame extends java.lang.Object implements DebugFrame
Modifier and Type | Method and Description |
---|---|
Dim.ContextData |
contextData()
Returns the ContextData object for the Context.
|
java.lang.String |
getFunctionName()
Returns the current function name.
|
int |
getLineNumber()
Returns the current line number.
|
java.lang.String |
getUrl()
Returns the source URL.
|
void |
onDebuggerStatement(Context cx)
Called when a 'debugger' statement is executed.
|
void |
onEnter(Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
Called when the stack frame is entered.
|
void |
onExceptionThrown(Context cx,
java.lang.Throwable exception)
Called when an exception has been thrown.
|
void |
onExit(Context cx,
boolean byThrow,
java.lang.Object resultOrException)
Called when the stack frame has been left.
|
void |
onLineChange(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.
|
public void onEnter(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
onEnter
in interface DebugFrame
cx
- current Context for this threadscope
- the activation scope for the function or script.thisObj
- value of the JavaScript this
objectargs
- the array of argumentspublic void onLineChange(Context cx, int lineno)
onLineChange
in interface DebugFrame
cx
- current Context for this threadlineno
- current line number in the script sourcepublic void onExceptionThrown(Context cx, java.lang.Throwable exception)
onExceptionThrown
in interface DebugFrame
cx
- current Context for this threadexception
- exception objectpublic void onExit(Context cx, boolean byThrow, java.lang.Object resultOrException)
onExit
in interface DebugFrame
cx
- current Context for this threadbyThrow
- if true function will leave by throwing exception, otherwise it
will execute normal returnresultOrException
- function result in case of normal return or
exception object if about to throw exceptionpublic void onDebuggerStatement(Context cx)
onDebuggerStatement
in interface DebugFrame
cx
- current Context for this threadpublic Dim.SourceInfo sourceInfo()
public Dim.ContextData contextData()
public java.lang.Object scope()
public java.lang.Object thisObj()
public java.lang.String getUrl()
public int getLineNumber()
public java.lang.String getFunctionName()
Copyright © 2010 - 2020 Adobe. All Rights Reserved