org.apache.bsf.dbline

Class JsDb

public class JsDb extends Object implements Runnable

Constructor Summary
JsDb(String[] args)
Method Summary
voidaddBreakpoint(String buffername, int lineno)
BufferaddBuffer(String filename, String uri)
booleancmdParser(String line)
voidcreatedEngine(JsEngine engine)
voiddeletedEngine(JsEngine engine)
voiddown()
static voidexitDebugger(int status)
voidhandleBreakpointHit(JsContext top)
initialize the engine. put the manager into the context -> manager map hashtable too.
voidhandleEngineStopped(JsContext cx)
voidhandleExceptionThrown(JsContext top, Object exception)
voidhandleSteppingDone(JsContext top)
initialize the engine. put the manager into the context -> manager map hashtable too.
voidlistBreakpoints()
voidlistBuffer()
voidlistBuffer(String buffername, int start)
voidlistBufferLines(Buffer buffer, int start, int count, Context cx)
voidlistBuffers()
voidlistFrames()
static voidmain(String[] args)
booleanparseCmd(String line)
Parses a command line.
StringreadCmd()
voidrun()
voidshowCurrentFrame()
voidshowObject(Integer oid, boolean all)
voidshowPrototype(Integer oid, boolean all)
voidshowScope(Integer oid, boolean all)
voidshowThrInfo()
voidup()

Constructor Detail

JsDb

public JsDb(String[] args)

Method Detail

addBreakpoint

public void addBreakpoint(String buffername, int lineno)

addBuffer

public Buffer addBuffer(String filename, String uri)

cmdParser

public boolean cmdParser(String line)

createdEngine

public void createdEngine(JsEngine engine)

deletedEngine

public void deletedEngine(JsEngine engine)

down

public void down()

exitDebugger

public static void exitDebugger(int status)

handleBreakpointHit

public void handleBreakpointHit(JsContext top)
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)

handleSteppingDone

public void handleSteppingDone(JsContext top)
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(String[] args)

parseCmd

public boolean parseCmd(String line)
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()

showObject

public void showObject(Integer oid, boolean all)

showPrototype

public void showPrototype(Integer oid, boolean all)

showScope

public void showScope(Integer oid, boolean all)

showThrInfo

public void showThrInfo()

up

public void up()