org.apache.bsf.dbline

Class JsDb

Implemented Interfaces:
Runnable

public class JsDb
extends java.lang.Object
implements Runnable

Constructor Summary

JsDb(args[] )

Method Summary

void
addBreakpoint(String buffername, int lineno)
Buffer
addBuffer(String filename, String uri)
boolean
cmdParser(String line)
void
createdEngine(JsEngine engine)
void
deletedEngine(JsEngine engine)
void
down()
static void
exitDebugger(int status)
void
handleBreakpointHit(JsContext top)
initialize the engine.
void
handleEngineStopped(JsContext cx)
void
handleExceptionThrown(JsContext top, Object exception)
void
handleSteppingDone(JsContext top)
initialize the engine.
void
listBreakpoints()
void
listBuffer()
void
listBuffer(String buffername, int start)
void
listBufferLines(Buffer buffer, int start, int count, Context cx)
void
listBuffers()
void
listFrames()
static void
main(args[] )
boolean
parseCmd(String line)
Parses a command line.
String
readCmd()
void
run()
void
showCurrentFrame()
void
showObject(Integer oid, boolean all)
void
showPrototype(Integer oid, boolean all)
void
showScope(Integer oid, boolean all)
void
showThrInfo()
void
up()

Constructor Details

JsDb

public JsDb(args[] )
            throws RemoteException

Method Details

addBreakpoint

public void addBreakpoint(String buffername,
                          int lineno)
            throws RemoteException

addBuffer

public Buffer addBuffer(String filename,
                        String uri)

cmdParser

public boolean cmdParser(String line)
            throws RemoteException

createdEngine

public void createdEngine(JsEngine engine)
            throws RemoteException

deletedEngine

public void deletedEngine(JsEngine engine)

down

public void down()

exitDebugger

public static void exitDebugger(int status)

handleBreakpointHit

public void handleBreakpointHit(JsContext top)
            throws RemoteException
initialize the engine. put the manager into the context -> manager map hashtable too.

handleEngineStopped

public void handleEngineStopped(JsContext cx)

handleExceptionThrown

public void handleExceptionThrown(JsContext top,
                                  Object exception)
            throws RemoteException

handleSteppingDone

public void handleSteppingDone(JsContext top)
            throws RemoteException
initialize the engine. put the manager into the context -> manager map hashtable too.

listBreakpoints

public void listBreakpoints()

listBuffer

public void listBuffer()

listBuffer

public void listBuffer(String buffername,
                       int start)

listBufferLines

public void listBufferLines(Buffer buffer,
                            int start,
                            int count,
                            Context cx)

listBuffers

public void listBuffers()

listFrames

public void listFrames()

main

public static void main(args[] )

parseCmd

public boolean parseCmd(String line)
            throws RemoteException
Parses a command line. Returns true if input needs to be suspended, that is, if the command was to resume execution in the debugged engine.

readCmd

public String readCmd()

run

public void run()

showCurrentFrame

public void showCurrentFrame()
            throws RemoteException

showObject

public void showObject(Integer oid,
                       boolean all)
            throws RemoteException

showPrototype

public void showPrototype(Integer oid,
                          boolean all)
            throws RemoteException

showScope

public void showScope(Integer oid,
                      boolean all)
            throws RemoteException

showThrInfo

public void showThrInfo()

up

public void up()