|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.model.debug.jpda.DebugAction<T>
edu.rice.cs.drjava.model.debug.jpda.DocumentDebugAction<com.sun.jdi.request.BreakpointRequest>
edu.rice.cs.drjava.model.debug.jpda.JPDABreakpoint
public class JPDABreakpoint
The breakpoint object which has references to its OpenDefinitionsDocument and its BreakpointRequest. See the WARNING below about hashing on this type or its subtypes. TODO: _lineNumber, _startPos, and _endPos should be computed dynamically from _position. Editing a document with breakpoint set can change the proper value for these fields.
Field Summary |
---|
Fields inherited from class edu.rice.cs.drjava.model.debug.jpda.DocumentDebugAction |
---|
_className, _exactClassName, _file, _offset, SHORT_DOC_MAX_LENGTH |
Fields inherited from class edu.rice.cs.drjava.model.debug.jpda.DebugAction |
---|
_countFilter, _isEnabled, _lineNumber, _manager, _requests, _suspendPolicy, ANY_LINE |
Constructor Summary | |
---|---|
JPDABreakpoint(OpenDefinitionsDocument doc,
int offset,
int lineNumber,
boolean isEnabled,
JPDADebugger manager)
|
Method Summary | |
---|---|
protected void |
_createRequests(Vector<com.sun.jdi.ReferenceType> refTypes)
Creates appropriate EventRequests from the EventRequestManager and stores them in the _requests field. |
int |
compareTo(OrderedDocumentRegion r)
Totally orders regions lexicographically based on (_doc, endOffset, startOffset). |
boolean |
equals(Object o)
Defines the equality relation on DocumentRegions. |
int |
getEndOffset()
Accessor for the offset of this breakpoint's end position |
int |
getLineEndOffset()
Accessor for the offset of this breakpoint's end position |
int |
getLineStartOffset()
Accessor for the offset of this breakpoint's start position |
int |
getStartOffset()
Accessor for the offset of this breakpoint's start position |
String |
getString()
Returns the String used on the JTree label for this breakpoint. |
boolean |
isEmpty()
|
void |
setEnabled(boolean isEnabled)
Enable/disable the breakpoint. |
String |
toString()
|
void |
update()
|
Methods inherited from class edu.rice.cs.drjava.model.debug.jpda.DocumentDebugAction |
---|
_initializeRequests, _prepareRequest, createRequests, getClassName, getDocument, getExactClassName, getFile, getOffset |
Methods inherited from class edu.rice.cs.drjava.model.debug.jpda.DebugAction |
---|
_createRequests, _initializeRequests, _prepareRequests, createRequests, getLineNumber, getRequests, isEnabled |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.rice.cs.drjava.model.debug.Breakpoint |
---|
getClassName |
Methods inherited from interface edu.rice.cs.drjava.model.debug.DebugBreakpointData |
---|
getFile, getLineNumber, isEnabled |
Methods inherited from interface edu.rice.cs.drjava.model.IDocumentRegion |
---|
getDocument |
Constructor Detail |
---|
public JPDABreakpoint(OpenDefinitionsDocument doc, int offset, int lineNumber, boolean isEnabled, JPDADebugger manager) throws DebugException
DebugException
- if the document does not have a fileMethod Detail |
---|
public String getString()
getString
in interface OrderedDocumentRegion
protected void _createRequests(Vector<com.sun.jdi.ReferenceType> refTypes) throws DebugException
_createRequests
in class DocumentDebugAction<com.sun.jdi.request.BreakpointRequest>
refTypes
- All (identical) ReferenceTypes to which this action applies. (There may be multiples if a custom
class loader is in use.)
DebugException
- if the requests could not be created.public int getStartOffset()
getStartOffset
in interface Region
public int getEndOffset()
getEndOffset
in interface Region
public int getLineStartOffset()
getLineStartOffset
in interface OrderedDocumentRegion
public int getLineEndOffset()
getLineEndOffset
in interface OrderedDocumentRegion
public void update()
update
in interface OrderedDocumentRegion
public boolean isEmpty()
isEmpty
in interface OrderedDocumentRegion
public final boolean equals(Object o)
equals
in class Object
public int compareTo(OrderedDocumentRegion r)
compareTo
in interface Comparable<OrderedDocumentRegion>
public void setEnabled(boolean isEnabled)
setEnabled
in interface Breakpoint
setEnabled
in class DebugAction<com.sun.jdi.request.BreakpointRequest>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |