edu.rice.cs.drjava.model.debug
Class DebugTest.DebugTestListener

java.lang.Object
  |
  +--edu.rice.cs.drjava.model.debug.DebugTest.DebugTestListener
All Implemented Interfaces:
DebugListener
Direct Known Subclasses:
DebugTest.DebugStartAndStopListener
Enclosing class:
DebugTest

class DebugTest.DebugTestListener
extends Object
implements DebugListener

Listens to events from the debugger to ensure that they happen at the correct times.


Field Summary
protected  int breakpointReachedCount
           
protected  int breakpointRemovedCount
           
protected  int breakpointSetCount
           
protected  int currThreadDiedCount
           
protected  int currThreadResumedCount
           
protected  int currThreadSuspendedCount
           
protected  int debuggerShutdownCount
           
protected  int debuggerStartedCount
           
protected  int stepRequestedCount
           
protected  int threadLocationUpdatedCount
           
 
Constructor Summary
(package private) DebugTest.DebugTestListener()
           
 
Method Summary
 void assertBreakpointReachedCount(int i)
           
 void assertBreakpointRemovedCount(int i)
           
 void assertBreakpointSetCount(int i)
           
 void assertCurrThreadDiedCount(int i)
           
 void assertCurrThreadResumedCount(int i)
           
 void assertCurrThreadSuspendedCount(int i)
           
 void assertDebuggerShutdownCount(int i)
           
 void assertDebuggerStartedCount(int i)
           
 void assertStepRequestedCount(int i)
           
 void assertThreadLocationUpdatedCount(int i)
           
 void breakpointReached(Breakpoint bp)
          Called when a breakpoint is reached during execution.
 void breakpointRemoved(Breakpoint bp)
          Called when a breakpoint is removed from a document.
 void breakpointSet(Breakpoint bp)
          Called when a breakpoint is set in a document.
 void currThreadDied()
          Called when the current thread dies
 void currThreadResumed()
          Called when the current thread is resumed
 void currThreadSuspended()
          Called when the current thread is suspended
 void debuggerShutdown()
          Called when debugger mode has been disabled.
 void debuggerStarted()
          Called when debugger mode has been enabled.
 void stepRequested()
          Called when a step is requested on the current thread.
 void threadLocationUpdated(OpenDefinitionsDocument doc, int lineNumber)
          Called when the given line is reached by the current thread in the debugger, to request that the line be displayed.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

debuggerStartedCount

protected int debuggerStartedCount

debuggerShutdownCount

protected int debuggerShutdownCount

threadLocationUpdatedCount

protected int threadLocationUpdatedCount

breakpointSetCount

protected int breakpointSetCount

breakpointReachedCount

protected int breakpointReachedCount

breakpointRemovedCount

protected int breakpointRemovedCount

stepRequestedCount

protected int stepRequestedCount

currThreadSuspendedCount

protected int currThreadSuspendedCount

currThreadResumedCount

protected int currThreadResumedCount

currThreadDiedCount

protected int currThreadDiedCount
Constructor Detail

DebugTest.DebugTestListener

DebugTest.DebugTestListener()
Method Detail

assertDebuggerStartedCount

public void assertDebuggerStartedCount(int i)

assertDebuggerShutdownCount

public void assertDebuggerShutdownCount(int i)

assertThreadLocationUpdatedCount

public void assertThreadLocationUpdatedCount(int i)

assertBreakpointSetCount

public void assertBreakpointSetCount(int i)

assertBreakpointReachedCount

public void assertBreakpointReachedCount(int i)

assertBreakpointRemovedCount

public void assertBreakpointRemovedCount(int i)

assertStepRequestedCount

public void assertStepRequestedCount(int i)

assertCurrThreadSuspendedCount

public void assertCurrThreadSuspendedCount(int i)

assertCurrThreadResumedCount

public void assertCurrThreadResumedCount(int i)

assertCurrThreadDiedCount

public void assertCurrThreadDiedCount(int i)

debuggerStarted

public void debuggerStarted()
Description copied from interface: DebugListener
Called when debugger mode has been enabled.
Specified by:
debuggerStarted in interface DebugListener

debuggerShutdown

public void debuggerShutdown()
Description copied from interface: DebugListener
Called when debugger mode has been disabled.
Specified by:
debuggerShutdown in interface DebugListener

threadLocationUpdated

public void threadLocationUpdated(OpenDefinitionsDocument doc,
                                  int lineNumber)
Description copied from interface: DebugListener
Called when the given line is reached by the current thread in the debugger, to request that the line be displayed.
Specified by:
threadLocationUpdated in interface DebugListener
Following copied from interface: edu.rice.cs.drjava.model.debug.DebugListener
Parameters:
doc - Document to display
lineNumber - Line to display or highlight

breakpointSet

public void breakpointSet(Breakpoint bp)
Description copied from interface: DebugListener
Called when a breakpoint is set in a document.
Specified by:
breakpointSet in interface DebugListener
Following copied from interface: edu.rice.cs.drjava.model.debug.DebugListener
Parameters:
bp - the breakpoint

breakpointReached

public void breakpointReached(Breakpoint bp)
Description copied from interface: DebugListener
Called when a breakpoint is reached during execution.
Specified by:
breakpointReached in interface DebugListener
Following copied from interface: edu.rice.cs.drjava.model.debug.DebugListener
Parameters:
bp - the breakpoint

breakpointRemoved

public void breakpointRemoved(Breakpoint bp)
Description copied from interface: DebugListener
Called when a breakpoint is removed from a document.
Specified by:
breakpointRemoved in interface DebugListener
Following copied from interface: edu.rice.cs.drjava.model.debug.DebugListener
Parameters:
bp - the breakpoint

stepRequested

public void stepRequested()
Description copied from interface: DebugListener
Called when a step is requested on the current thread.
Specified by:
stepRequested in interface DebugListener

currThreadSuspended

public void currThreadSuspended()
Description copied from interface: DebugListener
Called when the current thread is suspended
Specified by:
currThreadSuspended in interface DebugListener

currThreadResumed

public void currThreadResumed()
Description copied from interface: DebugListener
Called when the current thread is resumed
Specified by:
currThreadResumed in interface DebugListener

currThreadDied

public void currThreadDied()
Description copied from interface: DebugListener
Called when the current thread dies
Specified by:
currThreadDied in interface DebugListener