|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bsf.engines.javascript.RhinoEngineDebugger
public class RhinoEngineDebugger
Constructor Summary | |
---|---|
RhinoEngineDebugger(JavaScriptEngine eng)
|
Method Summary | |
---|---|
void |
_handleBreakpointHit(DocumentCell cell,
int lineno)
|
void |
disconnectedDebuggerNotify()
Called when our debugger has been disconnected. |
java.lang.Object |
eval(java.lang.String docname,
java.lang.String fnOrScript,
int lineno)
|
JsContext |
getContext(int depth)
|
int |
getContextCount()
|
JsCallbacks |
getDebugger()
Return the current debugger. |
java.lang.Object |
getDebugInterface()
|
DocumentCell |
getDocumentCell(java.lang.String name)
|
JsObject |
getGlobalObject()
|
RhinoContextProxy |
getRhinoContextProxy()
|
java.lang.String |
getThread()
|
java.lang.String |
getThreadGroup()
|
JsObject |
getUndefinedValue()
|
void |
handleBreakpointHit(Context cx)
|
void |
handleCompilationDone(Context cx,
DebuggableScript fnOrScript,
java.lang.StringBuffer source)
|
void |
handleExceptionThrown(Context cx,
java.lang.Object exceptionThrown)
|
DocumentCell |
loadDocumentNotify(java.lang.String name)
|
void |
placeBreakpointAtLine(int brkptid,
java.lang.String docname,
int lineno)
|
void |
placeBreakpointAtOffset(int brkptid,
java.lang.String docname,
int offset)
|
void |
removeBreakpoint(java.lang.String docname,
int brkptid)
|
void |
run(JsEngineStub eng)
|
void |
setBreakNextLine(JsContext context,
boolean isLineStep)
Set whether the engine should break when it encounters the next line. |
void |
setDebugger(JsCallbacks debugger)
Set the associated debugger. |
void |
setEntryExit(java.lang.String docname,
boolean on)
|
void |
stepIn(JsEngineStub eng)
|
void |
stepOut(JsEngineStub eng)
|
void |
stepOver(JsEngineStub eng)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RhinoEngineDebugger(JavaScriptEngine eng) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public void disconnectedDebuggerNotify()
public DocumentCell getDocumentCell(java.lang.String name)
public DocumentCell loadDocumentNotify(java.lang.String name)
public void placeBreakpointAtLine(int brkptid, java.lang.String docname, int lineno)
public void placeBreakpointAtOffset(int brkptid, java.lang.String docname, int offset)
public void removeBreakpoint(java.lang.String docname, int brkptid) throws BSFException
BSFException
public void setEntryExit(java.lang.String docname, boolean on) throws BSFException
BSFException
public java.lang.Object eval(java.lang.String docname, java.lang.String fnOrScript, int lineno) throws java.rmi.RemoteException
java.rmi.RemoteException
public JsContext getContext(int depth)
public int getContextCount()
public JsCallbacks getDebugger()
public java.lang.Object getDebugInterface()
public JsObject getGlobalObject()
public RhinoContextProxy getRhinoContextProxy()
public JsObject getUndefinedValue()
public java.lang.String getThread()
public java.lang.String getThreadGroup()
public void handleBreakpointHit(Context cx)
public void _handleBreakpointHit(DocumentCell cell, int lineno)
public void run(JsEngineStub eng) throws java.lang.Exception
java.lang.Exception
public void stepIn(JsEngineStub eng) throws java.lang.Exception
java.lang.Exception
public void stepOut(JsEngineStub eng) throws java.lang.Exception
java.lang.Exception
public void stepOver(JsEngineStub eng) throws java.lang.Exception
java.lang.Exception
public void handleCompilationDone(Context cx, DebuggableScript fnOrScript, java.lang.StringBuffer source)
public void handleExceptionThrown(Context cx, java.lang.Object exceptionThrown)
public void setBreakNextLine(JsContext context, boolean isLineStep)
The engine will call the attached debugger's handleBreakpointHit method on the next line it executes if isLineStep is true. May be used from another thread to interrupt execution.
isLineStep
- if true, break next linepublic void setDebugger(JsCallbacks debugger)
debugger
- the debugger to be used on callbacks from
the engine.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |