org.apache.bsf.dbline
Class JsDb

java.lang.Object
  extended by org.apache.bsf.dbline.JsDb
All Implemented Interfaces:
java.lang.Runnable

public class JsDb
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
JsDb(java.lang.String[] args)
           
 
Method Summary
 void addBreakpoint(java.lang.String buffername, int lineno)
           
 Buffer addBuffer(java.lang.String filename, java.lang.String uri)
           
 boolean cmdParser(java.lang.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, java.lang.Object exception)
           
 void handleSteppingDone(JsContext top)
          initialize the engine.
 void listBreakpoints()
           
 void listBuffer()
           
 void listBuffer(java.lang.String buffername, int start)
           
 void listBufferLines(Buffer buffer, int start, int count, Context cx)
           
 void listBuffers()
           
 void listFrames()
           
static void main(java.lang.String[] args)
           
 boolean parseCmd(java.lang.String line)
          Parses a command line.
 java.lang.String readCmd()
           
 void run()
           
 void showCurrentFrame()
           
 void showObject(java.lang.Integer oid, boolean all)
           
 void showPrototype(java.lang.Integer oid, boolean all)
           
 void showScope(java.lang.Integer oid, boolean all)
           
 void showThrInfo()
           
 void up()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsDb

public JsDb(java.lang.String[] args)
     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

readCmd

public java.lang.String readCmd()

parseCmd

public boolean parseCmd(java.lang.String line)
                 throws java.rmi.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.

Throws:
java.rmi.RemoteException

cmdParser

public boolean cmdParser(java.lang.String line)
                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

addBreakpoint

public void addBreakpoint(java.lang.String buffername,
                          int lineno)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

addBuffer

public Buffer addBuffer(java.lang.String filename,
                        java.lang.String uri)

createdEngine

public void createdEngine(JsEngine engine)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

deletedEngine

public void deletedEngine(JsEngine engine)

down

public void down()

showThrInfo

public void showThrInfo()

exitDebugger

public static void exitDebugger(int status)

handleBreakpointHit

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

Throws:
java.rmi.RemoteException

handleEngineStopped

public void handleEngineStopped(JsContext cx)

handleExceptionThrown

public void handleExceptionThrown(JsContext top,
                                  java.lang.Object exception)
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

handleSteppingDone

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

Throws:
java.rmi.RemoteException

listBreakpoints

public void listBreakpoints()

listBuffer

public void listBuffer()

listBuffer

public void listBuffer(java.lang.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(java.lang.String[] args)

showCurrentFrame

public void showCurrentFrame()
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

showObject

public void showObject(java.lang.Integer oid,
                       boolean all)
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

showScope

public void showScope(java.lang.Integer oid,
                      boolean all)
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

showPrototype

public void showPrototype(java.lang.Integer oid,
                          boolean all)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

up

public void up()