|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.flow.javascript.LocationTrackingDebugger
public class LocationTrackingDebugger
A Rhino debugger that tracks location information when an exception is raised in some JavaScript code.
It's purpose is to build a ProcessingException that holds the stacktrace
in the JavaScript code.
This debugger implementation is designed to be as lightweight and fast as possible, in order to have a negligible impact on the performances of the Rhino interpreter.
| Field Summary | |
|---|---|
protected List |
locations
|
protected Throwable |
throwable
|
| Constructor Summary | |
|---|---|
LocationTrackingDebugger()
|
|
| Method Summary | |
|---|---|
org.mozilla.javascript.debug.DebugFrame |
enterFrame(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.debug.DebuggableScript fnOrScript)
Rhino+cont API |
Exception |
getException(String description,
Exception originalException)
Get an exception that reflects the known location stack |
org.mozilla.javascript.debug.DebugFrame |
getFrame(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript)
Rhino 1.6 API |
void |
handleCompilationDone(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript,
String source)
Rhino 1.6 API |
void |
handleCompilationDone(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript,
StringBuffer source)
Rhino+cont API |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List locations
protected Throwable throwable
| Constructor Detail |
|---|
public LocationTrackingDebugger()
| Method Detail |
|---|
public void handleCompilationDone(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript,
StringBuffer source)
public org.mozilla.javascript.debug.DebugFrame enterFrame(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args,
org.mozilla.javascript.debug.DebuggableScript fnOrScript)
public void handleCompilationDone(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript,
String source)
handleCompilationDone in interface org.mozilla.javascript.debug.Debugger
public org.mozilla.javascript.debug.DebugFrame getFrame(org.mozilla.javascript.Context cx,
org.mozilla.javascript.debug.DebuggableScript fnOrScript)
getFrame in interface org.mozilla.javascript.debug.Debugger
public Exception getException(String description,
Exception originalException)
throws ProcessingException
description - a description for the exceptionoriginalException - the original exception
ProcessingExceptionProcessingException.throwLocated(String, Throwable, Location)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||