finalize
public void finalize()
getLangFromFilename
public String getLangFromFilename(String fileName)
throws RemoteException
Determine the language of a script file by looking at the file
extension.
- the scripting language the file is in if the file extension
is known to me (must have been registered via
registerScriptingEngine).
isLanguageRegistered
public boolean isLanguageRegistered(String lang)
Determine whether a language is registered.
lang
- string identifying a language
- true iff it is
placeBreakpointAtLine
public void placeBreakpointAtLine(int brkptid,
String docname,
int lineno)
throws RemoteException
placeBreakpointAtOffset
public void placeBreakpointAtOffset(int brkptid,
String docname,
int offset)
throws RemoteException
registerDebugger
public void registerDebugger(String lang,
BSFDebugger debugger)
throws RemoteException
Register a debugger for a scripting engine.
lang
- string identifying language
registerManager
public void registerManager(BSFManager mger)
removeAllBreakpoints
public void removeAllBreakpoints()
removeBreakpoint
public void removeBreakpoint(String docname,
int brkptid)
throws RemoteException
revokedNotify
public void revokedNotify(RemoteService service)
Callback from the socket/stub layer.
A stub for a remote debugger is being revoked due
to a lost connection.
Since we support only one debuggers from only one
JVM, there is only one connection and therefore we
can drop all debuggers...
and then drop all breakpoints.
ATTENTION:
Breakpoints shall not be dropped if we extend this
implementation to multiple debuggers through multiple
socket connections.
- revokedNotify in interface RemoteServiceListener
setEntryExit
public void setEntryExit(String docname,
boolean on)
throws RemoteException
supportBreakpointAtLine
public boolean supportBreakpointAtLine(String lang)
throws RemoteException
supportBreakpointAtOffset
public boolean supportBreakpointAtOffset(String lang)
throws RemoteException
Allows a debugger to ask if the engine for a given language
will support either line or offset breakpoints.
Note: this will most likely provoke the loading of the engine.
terminate
public void terminate()
terminateEngineNotify
public void terminateEngineNotify(BSFManager mger,
BSFEngine eng,
String lang)
terminateManagerNotify
public void terminateManagerNotify(BSFManager mger)
unregisterDebugger
public void unregisterDebugger(String lang)
throws RemoteException