|
||||||||||
| 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.
| Field Summary | |
|---|---|
private OpenDefinitionsDocument |
_doc
Note that _position, which records the breakpoint position, is inherited from DocumentDebugAction. |
private Position |
_endPos
|
private Position |
_position
|
private Position |
_startPos
|
| 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,
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 |
getLineNumber()
Returns the line number this DebugAction occurs on |
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()
Update _startPos, _endPos and _lineNumber from the position that moves with the document. |
| 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, 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, isEnabled |
| Methods inherited from interface edu.rice.cs.drjava.model.IDocumentRegion |
|---|
getDocument |
| Field Detail |
|---|
private volatile Position _position
private volatile Position _startPos
private volatile Position _endPos
private volatile OpenDefinitionsDocument _doc
| Constructor Detail |
|---|
public JPDABreakpoint(OpenDefinitionsDocument doc,
int offset,
boolean isEnabled,
JPDADebugger manager)
throws DebugException
DebugException - if the document does not have a file| Method 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 Regionpublic int getEndOffset()
getEndOffset in interface Regionpublic int getLineStartOffset()
getLineStartOffset in interface OrderedDocumentRegionpublic int getLineEndOffset()
getLineEndOffset in interface OrderedDocumentRegionpublic void update()
update in interface Breakpointupdate in interface OrderedDocumentRegionpublic boolean isEmpty()
isEmpty in interface OrderedDocumentRegionpublic final boolean equals(Object o)
equals in class Objectpublic int compareTo(OrderedDocumentRegion r)
compareTo in interface Comparable<OrderedDocumentRegion>public int getLineNumber()
getLineNumber in interface DebugBreakpointDatagetLineNumber in class DebugAction<com.sun.jdi.request.BreakpointRequest>public void setEnabled(boolean isEnabled)
setEnabled in interface BreakpointsetEnabled 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 | |||||||||