com.google.testing.threadtester
Class SinglePositionBreakpoint

java.lang.Object
  extended by com.google.testing.threadtester.AbstractBreakpoint
      extended by com.google.testing.threadtester.SinglePositionBreakpoint
All Implemented Interfaces:
Breakpoint

public class SinglePositionBreakpoint
extends AbstractBreakpoint

A Breakpoint based on a single CodePosition.

Author:
alasdair.mackintosh@gmail.com (Alasdair Mackintosh)
See Also:
MultiPositionBreakpoint

Field Summary
 
Fields inherited from class com.google.testing.threadtester.AbstractBreakpoint
blocked, enabled, limit, numHits, thread
 
Constructor Summary
SinglePositionBreakpoint(Thread thread, CodePosition position)
           
 
Method Summary
protected  boolean doesMatch(CodePosition otherPosition)
          Returns true if this Breakpoint matches the given CodePosition.
protected  String getPositionDescription()
          Gets a String describing the position of this Breakpoint.
 String toString()
           
 
Methods inherited from class com.google.testing.threadtester.AbstractBreakpoint
await, disable, enable, finishWaiting, getHits, getId, getLimit, getThread, hitBreakpoint, isBlocked, isEnabled, reset, resume, resume, setHandler, setLimit, setThreadImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SinglePositionBreakpoint

public SinglePositionBreakpoint(Thread thread,
                                CodePosition position)
Method Detail

doesMatch

protected boolean doesMatch(CodePosition otherPosition)
Returns true if this Breakpoint matches the given CodePosition. This method should be overridden by subclasses.


getPositionDescription

protected String getPositionDescription()
Gets a String describing the position of this Breakpoint. Used for debugging, and for implementing toString.


toString

public String toString()
Overrides:
toString in class AbstractBreakpoint


Copyright © 2013. All Rights Reserved.