edu.rice.cs.drjava.model.debug
Class Breakpoint

java.lang.Object
  |
  +--edu.rice.cs.drjava.model.debug.DebugAction
        |
        +--edu.rice.cs.drjava.model.debug.DocumentDebugAction
              |
              +--edu.rice.cs.drjava.model.debug.Breakpoint

public class Breakpoint
extends DocumentDebugAction

The breakpoint object which has references to its OpenDefinitionsDocument and its BreakpointRequest


Field Summary
private  Position _endPos
           
private  Position _startPos
           
 
Fields inherited from class edu.rice.cs.drjava.model.debug.DocumentDebugAction
_className, _doc, _file
 
Fields inherited from class edu.rice.cs.drjava.model.debug.DebugAction
_countFilter, _enabled, _lineNumber, _manager, _requests, _suspendPolicy, ANY_LINE
 
Constructor Summary
Breakpoint(OpenDefinitionsDocument doc, int offset, int lineNumber, DebugManager manager)
           
 
Method Summary
protected  void _createRequests(gj.util.Vector refTypes)
          Creates appropriate EventRequests from the EventRequestManager and stores them in the _requests field.
protected  void _prepareRequest(com.sun.jdi.request.EventRequest x0)
          Prepares this EventRequest with the current stored values.
 int getEndOffset()
          Accessor for the offset of this breakpoint's end position
 int getStartOffset()
          Accessor for the offset of this breakpoint's start position
 String toString()
           
 
Methods inherited from class edu.rice.cs.drjava.model.debug.DocumentDebugAction
_initializeRequests, createRequests, getClassName, getDocument, getFile
 
Methods inherited from class edu.rice.cs.drjava.model.debug.DebugAction
_createRequests, _initializeRequests, _prepareRequests, createRequests, getLineNumber, getRequests
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

_startPos

private Position _startPos

_endPos

private Position _endPos
Constructor Detail

Breakpoint

public Breakpoint(OpenDefinitionsDocument doc,
                  int offset,
                  int lineNumber,
                  DebugManager manager)
           throws DebugException
Throws:
DebugException - if the document does not have a file
Method Detail

_createRequests

protected void _createRequests(gj.util.Vector refTypes)
                        throws DebugException
Creates appropriate EventRequests from the EventRequestManager and stores them in the _requests field.
Overrides:
_createRequests in class DocumentDebugAction
Parameters:
refTypes - All (identical) ReferenceTypes to which this action applies. (There may be multiple if a custom class loader is in use.)
Throws:
DebugException - if the requests could not be created.

getStartOffset

public int getStartOffset()
Accessor for the offset of this breakpoint's start position
Returns:
the start offset

getEndOffset

public int getEndOffset()
Accessor for the offset of this breakpoint's end position
Returns:
the end offset

toString

public String toString()
Overrides:
toString in class Object

_prepareRequest

protected void _prepareRequest(com.sun.jdi.request.EventRequest x0)
Description copied from class: DocumentDebugAction
Prepares this EventRequest with the current stored values.
Overrides:
_prepareRequest in class DocumentDebugAction
Following copied from class: edu.rice.cs.drjava.model.debug.DocumentDebugAction
Parameters:
request - the EventRequest to prepare