1 55 56 package org.apache.bsf.debug.meta; 57 58 import java.rmi.RemoteException ; 59 import org.apache.bsf.debug.jsdi.*; 60 import org.apache.bsf.debug.util.*; 61 62 public class JsCodeStub extends JsObjectStub implements JsCode { 63 64 boolean fIsFunction; 65 66 protected JsCodeStub( 67 SocketConnection con, 68 int tid, int uid, 69 boolean isFunction) { 70 super(con,tid,uid); 71 72 fIsFunction = isFunction; 73 } 74 75 79 public int[] getLineNumbers() throws RemoteException { 80 81 ResultCell cell; 82 try { 83 cell = m_con.prepareOutgoingInvoke(this,DebugConstants.JS_CODE_TID,DebugConstants.JC_GET_LINE_NUMBERS); 84 return (int[])cell.waitForValueObject(); 85 86 } catch (Exception ex) { 87 throw new RemoteException ("Marshalling error", ex); 88 } 89 } 90 94 public String getSourceName() throws RemoteException { 95 96 ResultCell cell; 97 try { 98 cell = m_con.prepareOutgoingInvoke(this,DebugConstants.JS_CODE_TID,DebugConstants.CX_GET_SOURCE_NAME); 99 return (String )cell.waitForValueObject(); 100 101 } catch (Exception ex) { 102 throw new RemoteException ("Marshalling error", ex); 103 } 104 } 105 106 } 107 | Popular Tags |