|
||||||||||
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<T>
public abstract class DocumentDebugAction<T extends com.sun.jdi.request.EventRequest>
Superclasses all DebugActions that are associated with specific OpenDefinitionsDocuments.
Field Summary | |
---|---|
protected String |
_className
|
protected OpenDefinitionsDocument |
_doc
|
protected String |
_exactClassName
|
protected File |
_file
|
protected int |
_offset
|
int |
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 | |
---|---|
DocumentDebugAction(JPDADebugger manager,
OpenDefinitionsDocument doc,
int offset)
Creates a new DocumentDebugAction. |
Method Summary | |
---|---|
protected abstract void |
_createRequests(Vector<com.sun.jdi.ReferenceType> refTypes)
Creates appropriate EventRequests from the EventRequestManager and stores them in the _requests field. |
protected void |
_initializeRequests(Vector<com.sun.jdi.ReferenceType> refTypes)
This should always be called from the constructor of the subclass. |
protected void |
_prepareRequest(T request)
Prepares this EventRequest with the current stored values. |
boolean |
createRequests(Vector<com.sun.jdi.ReferenceType> refTypes)
Creates EventRequests corresponding to this DebugAction, using the given ReferenceTypes. |
String |
getClassName()
Returns the class name this DebugAction occurs in. |
OpenDefinitionsDocument |
getDocument()
Returns the document this DebugAction occurs in. |
String |
getExactClassName()
|
File |
getFile()
Returns the file this DebugAction occurs in. |
int |
getOffset()
|
Methods inherited from class edu.rice.cs.drjava.model.debug.jpda.DebugAction |
---|
_createRequests, _initializeRequests, _prepareRequests, createRequests, getLineNumber, getRequests, isEnabled, setEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected volatile String _className
protected volatile String _exactClassName
protected volatile File _file
protected volatile OpenDefinitionsDocument _doc
protected int _offset
public final int SHORT_DOC_MAX_LENGTH
Constructor Detail |
---|
public DocumentDebugAction(JPDADebugger manager, OpenDefinitionsDocument doc, int offset) throws DebugException
manager
- JPDADebugger in chargedoc
- Document this action corresponds tooffset
- Offset into the document that the action affects
DebugException
Method Detail |
---|
public String getClassName()
public File getFile()
public OpenDefinitionsDocument getDocument()
public int getOffset()
public String getExactClassName()
public boolean createRequests(Vector<com.sun.jdi.ReferenceType> refTypes) throws DebugException
DebugException
protected void _initializeRequests(Vector<com.sun.jdi.ReferenceType> refTypes) throws DebugException
DebugException
protected abstract void _createRequests(Vector<com.sun.jdi.ReferenceType> refTypes) throws DebugException
refTypes
- All (identical) ReferenceTypes to which this action applies. (There may be multiple if a custom
class loader is in use.)
DebugException
- if the requests could not be created.protected void _prepareRequest(T request)
_prepareRequest
in class DebugAction<T extends com.sun.jdi.request.EventRequest>
request
- the EventRequest to prepare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |