freemarker.debug
Interface Debugger

All Superinterfaces:
java.rmi.Remote

public interface Debugger
extends java.rmi.Remote

The main debugger interface. Allows management of breakpoints as well as installation of listeners for debug events.

Version:
$Id: Debugger.java,v 1.1 2003/05/02 15:55:48 szegedia Exp $
Author:
Attila Szegedi

Field Summary
static int DEFAULT_PORT
           
 
Method Summary
 void addBreakpoint(Breakpoint breakpoint)
          Adds a breakpoint
 java.lang.Object addDebuggerListener(DebuggerListener listener)
          Adds a listener for debugger events.
 java.util.List getBreakpoints()
          Retrieves a list of all Breakpoint objects.
 java.util.List getBreakpoints(java.lang.String templateName)
          Retrieves a list of all Breakpoint objects for the specified template.
 java.util.Collection getSuspendedEnvironments()
          Retrieves a collection of all DebuggedEnvironment objects that are currently suspended.
 void removeBreakpoint(Breakpoint breakpoint)
          Removes a single breakpoint
 void removeBreakpoints()
          Removes all breakpoints
 void removeBreakpoints(java.lang.String templateName)
          Removes all breakpoints for a specific template
 void removeDebuggerListener(java.lang.Object id)
          Removes a previously added debugger listener.
 

Field Detail

DEFAULT_PORT

static final int DEFAULT_PORT
See Also:
Constant Field Values
Method Detail

addBreakpoint

void addBreakpoint(Breakpoint breakpoint)
                   throws java.rmi.RemoteException
Adds a breakpoint

Parameters:
breakpoint - the breakpoint to add
Throws:
java.rmi.RemoteException

removeBreakpoint

void removeBreakpoint(Breakpoint breakpoint)
                      throws java.rmi.RemoteException
Removes a single breakpoint

Parameters:
breakpoint - the breakpoint to remove
Throws:
java.rmi.RemoteException

removeBreakpoints

void removeBreakpoints(java.lang.String templateName)
                       throws java.rmi.RemoteException
Removes all breakpoints for a specific template

Parameters:
templateName -
Throws:
java.rmi.RemoteException

removeBreakpoints

void removeBreakpoints()
                       throws java.rmi.RemoteException
Removes all breakpoints

Throws:
java.rmi.RemoteException

getBreakpoints

java.util.List getBreakpoints()
                              throws java.rmi.RemoteException
Retrieves a list of all Breakpoint objects.

Throws:
java.rmi.RemoteException

getBreakpoints

java.util.List getBreakpoints(java.lang.String templateName)
                              throws java.rmi.RemoteException
Retrieves a list of all Breakpoint objects for the specified template.

Throws:
java.rmi.RemoteException

getSuspendedEnvironments

java.util.Collection getSuspendedEnvironments()
                                              throws java.rmi.RemoteException
Retrieves a collection of all DebuggedEnvironment objects that are currently suspended.

Throws:
java.rmi.RemoteException

addDebuggerListener

java.lang.Object addDebuggerListener(DebuggerListener listener)
                                     throws java.rmi.RemoteException
Adds a listener for debugger events.

Returns:
an identification token that should be passed to removeDebuggerListener(Object) to remove this listener.
Throws:
java.rmi.RemoteException

removeDebuggerListener

void removeDebuggerListener(java.lang.Object id)
                            throws java.rmi.RemoteException
Removes a previously added debugger listener.

Parameters:
id - the identification token for the listener that was returned from a prior call to addDebuggerListener(DebuggerListener).
Throws:
java.rmi.RemoteException