edu.rice.cs.drjava.model.debug
Class DebugTestCase.BreakpointTestListener

java.lang.Object
  extended by edu.rice.cs.drjava.model.debug.DebugTestCase.DebugTestListener
      extended by edu.rice.cs.drjava.model.debug.DebugTestCase.DebugStartAndStopListener
          extended by edu.rice.cs.drjava.model.debug.DebugTestCase.BreakpointTestListener
All Implemented Interfaces:
DebugListener, RegionManagerListener<Breakpoint>
Direct Known Subclasses:
DebugTestCase.StepTestListener
Enclosing class:
DebugTestCase

protected class DebugTestCase.BreakpointTestListener
extends DebugTestCase.DebugStartAndStopListener

DebugTestListener for all tests setting breakpoints.


Field Summary
 
Fields inherited from class edu.rice.cs.drjava.model.debug.DebugTestCase.DebugTestListener
breakpointReachedCount, currThreadDiedCount, currThreadResumedCount, currThreadSetCount, currThreadSuspendedCount, debuggerShutdownCount, debuggerStartedCount, nonCurrThreadDiedCount, regionAddedCount, regionChangedCount, regionRemovedCount, stepRequestedCount, threadLocationUpdatedCount, threadStartedCount, watchRemovedCount, watchSetCount
 
Constructor Summary
DebugTestCase.BreakpointTestListener()
           
 
Method Summary
 void breakpointReached(Breakpoint bp)
          Called when a breakpoint is reached during execution.
 void currThreadDied()
          Called when the current thread dies.
 void currThreadResumed()
          Called when the current thread is resumed.
 void currThreadSet(DebugThreadData dtd)
          Called when the current (selected) thread is set in the debugger.
 void currThreadSuspended()
          Called when the current thread is suspended.
 void regionAdded(Breakpoint bp)
          Called when a region is added in a document.
 void regionRemoved(Breakpoint bp)
          Called when a region is removed from a document.
 void threadLocationUpdated(OpenDefinitionsDocument doc, int lineNumber, boolean shouldHighlight)
          Called when the given line is reached by the current thread in the debugger, to request that the line be displayed.
 void watchRemoved(DebugWatchData w)
          Called when a watch is removed.
 void watchSet(DebugWatchData w)
          Called when a watch is set.
 
Methods inherited from class edu.rice.cs.drjava.model.debug.DebugTestCase.DebugStartAndStopListener
debuggerShutdown, debuggerStarted
 
Methods inherited from class edu.rice.cs.drjava.model.debug.DebugTestCase.DebugTestListener
assertBreakpointReachedCount, assertCurrThreadDiedCount, assertCurrThreadResumedCount, assertCurrThreadSetCount, assertCurrThreadSuspendedCount, assertDebuggerShutdownCount, assertDebuggerStartedCount, assertNonCurrThreadDiedCount, assertRegionAddedCount, assertRegionChangedCount, assertRegionRemovedCount, assertStepFinishedCount, assertStepRequestedCount, assertThreadLocationUpdatedCount, assertThreadStartedCount, assertWatchRemovedCount, assertWatchSetCount, nonCurrThreadDied, regionChanged, stepRequested, threadStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugTestCase.BreakpointTestListener

public DebugTestCase.BreakpointTestListener()
Method Detail

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
Overrides:
breakpointReached in class DebugTestCase.DebugTestListener
Parameters:
bp - the breakpoint

regionAdded

public void regionAdded(Breakpoint bp)
Description copied from interface: RegionManagerListener
Called when a region is added in a document. Must be executed in event thread.

Specified by:
regionAdded in interface RegionManagerListener<Breakpoint>
Overrides:
regionAdded in class DebugTestCase.DebugTestListener
Parameters:
bp - the region

regionRemoved

public void regionRemoved(Breakpoint bp)
Description copied from interface: RegionManagerListener
Called when a region is removed from a document. Must be executed in event thread.

Specified by:
regionRemoved in interface RegionManagerListener<Breakpoint>
Overrides:
regionRemoved in class DebugTestCase.DebugTestListener
Parameters:
bp - the region

currThreadSuspended

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

Specified by:
currThreadSuspended in interface DebugListener
Overrides:
currThreadSuspended in class DebugTestCase.DebugTestListener

currThreadResumed

public void currThreadResumed()
Description copied from interface: DebugListener
Called when the current thread is resumed. Must be executed in event thread.

Specified by:
currThreadResumed in interface DebugListener
Overrides:
currThreadResumed in class DebugTestCase.DebugTestListener

currThreadSet

public void currThreadSet(DebugThreadData dtd)
Description copied from interface: DebugListener
Called when the current (selected) thread is set in the debugger.

Specified by:
currThreadSet in interface DebugListener
Overrides:
currThreadSet in class DebugTestCase.DebugTestListener
Parameters:
dtd - the thread that was set as current

currThreadDied

public void currThreadDied()
Description copied from interface: DebugListener
Called when the current thread dies. Must be executed in event thread.

Specified by:
currThreadDied in interface DebugListener
Overrides:
currThreadDied in class DebugTestCase.DebugTestListener

threadLocationUpdated

public void threadLocationUpdated(OpenDefinitionsDocument doc,
                                  int lineNumber,
                                  boolean shouldHighlight)
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. Must be executed only in the event thread.

Specified by:
threadLocationUpdated in interface DebugListener
Overrides:
threadLocationUpdated in class DebugTestCase.DebugTestListener
Parameters:
doc - Document to display
lineNumber - Line to display or highlight
shouldHighlight - true iff the line should be highlighted.

watchSet

public void watchSet(DebugWatchData w)
Description copied from interface: DebugListener
Called when a watch is set. Must be executed in event thread.

Specified by:
watchSet in interface DebugListener
Overrides:
watchSet in class DebugTestCase.DebugTestListener
Parameters:
w - the watch

watchRemoved

public void watchRemoved(DebugWatchData w)
Description copied from interface: DebugListener
Called when a watch is removed. Must be executed in event thread.

Specified by:
watchRemoved in interface DebugListener
Overrides:
watchRemoved in class DebugTestCase.DebugTestListener
Parameters:
w - the watch