|
||||||||||
| 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.PendingRequestManager
public class PendingRequestManager
Keeps track of DocumentDebugActions that are waiting to be resolved when the classes they corresponed to are prepared. (Only DocumentDebugActions have reference types which can be prepared.)
| Field Summary | |
|---|---|
private JPDADebugger |
_manager
|
private HashMap<String,Vector<DocumentDebugAction<?>>> |
_pendingActions
|
| Constructor Summary | |
|---|---|
PendingRequestManager(JPDADebugger manager)
|
|
| Method Summary | |
|---|---|
void |
addPendingRequest(DocumentDebugAction<?> action)
Called if a breakpoint is set before its class is prepared |
void |
classPrepared(com.sun.jdi.event.ClassPrepareEvent event)
Called by the EventHandler whenever a ClassPrepareEvent occurs. |
int |
LLDDALineNum(DocumentDebugAction<?> dda)
Method to change Language Level line numbers into their java file counterparts |
private boolean |
recursiveFindLineNumber(int lineNumber,
com.sun.jdi.ReferenceType rt)
Recursively look through all nested types to see if the line number exists. |
void |
removePendingRequest(DocumentDebugAction<?> action)
Called if a breakpoint is set and removed before its class is prepared |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private JPDADebugger _manager
private HashMap<String,Vector<DocumentDebugAction<?>>> _pendingActions
| Constructor Detail |
|---|
public PendingRequestManager(JPDADebugger manager)
| Method Detail |
|---|
public void addPendingRequest(DocumentDebugAction<?> action)
action - The DebugAction that is pendingpublic void removePendingRequest(DocumentDebugAction<?> action)
action - The DebugAction that was set and removed
private boolean recursiveFindLineNumber(int lineNumber,
com.sun.jdi.ReferenceType rt)
lineNumber - line number to look forrt - reference type to start at
public int LLDDALineNum(DocumentDebugAction<?> dda)
dda - the DocumentDebugAction whose line needs to be adjusted
public void classPrepared(com.sun.jdi.event.ClassPrepareEvent event)
throws DebugException
event - The ClassPrepareEvent that just occured
DebugException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||