Save This Page
Home » bsf-src-2.4.0 » org.apache.bsf.debug.meta » [javadoc | source]
org.apache.bsf.debug.meta
public class: JsEngineStub [javadoc | source]
java.lang.Object
   org.apache.bsf.debug.util.Stub
      org.apache.bsf.debug.meta.JsEngineStub

All Implemented Interfaces:
    JsEngine, RemoteService

Field Summary
 boolean fSuspended     
 JsCallbacks fCallbacks     
Fields inherited from org.apache.bsf.debug.util.Stub:
UNDEFINED,  NOT_FOUND,  m_tid,  m_uid,  m_revoked,  m_con
Constructor:
 public JsEngineStub(SocketConnection con,
    int tid,
    int uid) 
Method from org.apache.bsf.debug.meta.JsEngineStub Summary:
eval,   getContext,   getContextCount,   getDebugger,   getGlobalObject,   getThread,   getThreadGroup,   getUndefinedValue,   isSuspended,   poll,   run,   setDebugger,   stepIn,   stepOut,   stepOver,   suspended
Methods from org.apache.bsf.debug.util.Stub:
Init,   addListener,   completeFuture,   createFuture,   equals,   getConnection,   getTid,   getUid,   removeListener,   revokeFuture,   revoked,   suspendFuture,   swizzle
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.bsf.debug.meta.JsEngineStub Detail:
 public Object eval(String docname,
    String fnOrScript,
    int lineno) throws RemoteException 
    Allow the debugger to evaluate an expression within the current context.
 public JsContext getContext(int depth) throws RemoteException 
    Returns the JsContext at a certain depth. Depth zero is the top of the stack, that is, the inner execution context. This is a valid call only if the engine is stopped in a callback to the debugger (breakpoint or stepping completed).
 public int getContextCount() throws RemoteException 
    Returns the count of JsContext on the current stack. This is a valid call only if the engine is stopped in a callback to the debugger (breakpoint or stepping completed).
 public JsCallbacks getDebugger() throws RemoteException 
    Return the current debugger.
 public JsObject getGlobalObject() throws RemoteException 
    Any execution in JavaScript happen with respect to a global object, sort of the top-level name space for properties. This is global object return by this call.
 public String getThread() throws RemoteException 
 public String getThreadGroup() throws RemoteException 
 public JsObject getUndefinedValue() throws RemoteException 
    As per ECMA specification, each JavaScript execution defines a unique object for the undefined value.
 public boolean isSuspended() 
 public boolean poll() throws RemoteException 
 public  void run() throws RemoteException 
    Stepping commands: run: resume execution until it finishes or a breakpoint is hit. stepIn: steps to the next statement, considering callee's statement if any. stepOut: steps until the current JsContext exits. stepOver: steps to the next statement within the same JsContext.
 public  void setDebugger(JsCallbacks debugger) throws RemoteException 
    Set the associated debugger.
 public  void stepIn() throws RemoteException 
 public  void stepOut() throws RemoteException 
 public  void stepOver() throws RemoteException 
  void suspended(boolean suspended)