1 22 23 package org.aspectj.debugger.base; 24 25 import org.aspectj.debugger.request.*; 26 import com.sun.jdi.*; 27 import com.sun.jdi.event.*; 28 import com.sun.jdi.request.*; 29 import java.io.*; 30 import java.util.*; 31 32 40 41 public interface DebuggerApp { 42 public void runCommand(String className, String exArgs) 43 throws NoVMException, DebuggerException; 44 public void runCommand(String className, String vmArgs, String exArgs, 45 boolean isSuspended, int debugTraceMode) 46 throws NoVMException, DebuggerException; 47 public void clearAtCommand(String className, int line, EventRequest request) 48 throws NoVMException, DebuggerException; 49 public void clearInCommand(String className, String methodProto, EventRequest request) 50 throws NoVMException, DebuggerException; 51 public void clearOnCommand(String sourceName, int line, EventRequest request) 52 throws NoVMException, DebuggerException; 53 public void clearCommand(List breakpoints) 54 throws NoVMException, DebuggerException; 55 public void clearAllCommand(List breakpoints) 56 throws NoVMException, DebuggerException; 57 public void stopAtCommand(String className, int line, EventRequest request) 58 throws NoVMException, DebuggerException; 59 public void stopInCommand(String className, String methodProto, EventRequest request) 60 throws NoVMException, DebuggerException; 61 public void stopOnCommand(String sourceName, int line, EventRequest request) 62 throws NoVMException, DebuggerException; 63 public void stopCommand(List breakpoints) 64 throws NoVMException, DebuggerException; 65 public void contCommand() 66 throws NoVMException, DebuggerException; 67 public void threadsCommand(String threadGroupName, List threads) 68 throws NoVMException, DebuggerException; 69 public void threadGroupsCommand(List threadGroups) 70 throws NoVMException, DebuggerException; 71 public void fieldsCommand(String className, List fields) 72 throws NoVMException, DebuggerException; 73 public void methodsCommand(String className, List methods) 74 throws NoVMException, DebuggerException; 75 public void classesCommand(List classes) 76 throws NoVMException, DebuggerException; 77 public void classCommand(String className, ReferenceType refType) 78 throws NoVMException, DebuggerException; 79 public void threadCommand(String threadName, ThreadReference threadRef) 80 throws NoVMException, DebuggerException; 81 public void threadGroupCommand(String threadGroupName, ThreadGroupReference threadGroupRef) 82 throws NoVMException, DebuggerException; 83 public void suspendCommand(List threadNames, List threads) 84 throws NoVMException, DebuggerException; 85 public void resumeCommand(List threadNames, List threads) 86 throws NoVMException, DebuggerException; 87 public void whereCommand(String threadName, List frames) 88 throws NoVMException, DebuggerException; 89 public void localsCommand(List locals) 90 throws NoVMException, DebuggerException; 91 public void interruptCommand(String threadName, ThreadReference threadRef) 92 throws NoVMException, DebuggerException; 93 public void upCommand(int frames, StackFrame currentFrame) 94 throws NoVMException, DebuggerException; 95 public void downCommand(int frames, StackFrame currentFrame) 96 throws NoVMException, DebuggerException; 97 public void stepCommand(StepRequest request) 98 throws NoVMException, DebuggerException; 99 public void stepUpCommand(StepRequest request) 100 throws NoVMException, DebuggerException; 101 public void stepiCommand(StepRequest request) 102 throws NoVMException, DebuggerException; 103 public void nextCommand(StepRequest request) 104 throws NoVMException, DebuggerException; 105 public void printCommand(Object valueRep, Value value) 106 throws NoVMException, DebuggerException; 107 public void dumpCommand(Object valueRep, Value value) 108 throws NoVMException, DebuggerException; 109 public void evalCommand(Object valueRep, Value value) 110 throws NoVMException, DebuggerException; 111 public void setCommand(Object lvalue, Object rvalue, Value oldValue, Value newValue) 112 throws NoVMException, DebuggerException; 113 public void classpathCommand(String baseDirectory, List paths) 114 throws NoVMException, DebuggerException; 115 public void lockCommand(Object valueRep, LockInformation lockInfo) 116 throws NoVMException, DebuggerException; 117 public void threadlocksCommand(String threadName, ThreadLockInformation threadLockInfo) 118 throws NoVMException, DebuggerException; 119 public void watchAccessCommand(String className, String fieldName, WatchpointRequest request) 120 throws NoVMException, DebuggerException; 121 public void watchAllCommand(String className, String fieldName, WatchpointRequest request) 122 throws NoVMException, DebuggerException; 123 public void unwatchAccessCommand(String className, String fieldName, WatchpointRequest request) 124 throws NoVMException, DebuggerException; 125 public void unwatchAllCommand(String className, String fieldName, WatchpointRequest request) 126 throws NoVMException, DebuggerException; 127 public void catchCommand(String className, ExceptionRequest request) 128 throws NoVMException, DebuggerException; 129 public void ignoreCommand(String className, ExceptionRequest request) 130 throws NoVMException, DebuggerException; 131 public void traceMethodsCommand(String threadName, TraceMethodsRequest.EntryExitPair pair) 132 throws NoVMException, DebuggerException; 133 public void untraceMethodsCommand(String threadName, UntraceMethodsRequest.EntryExitPair pair) 134 throws NoVMException, DebuggerException; 135 public void excludeCommand(List classNames, List classes) 136 throws NoVMException, DebuggerException; 137 public void quitCommand() 138 throws NoVMException, DebuggerException; 139 public void helpCommand(String helpString) 140 throws NoVMException, DebuggerException; 141 public void versionCommand(Object version) 142 throws NoVMException, DebuggerException; 143 public void killCommand(String threadName, String valueRep, ThreadReference threadRef) 144 throws NoVMException, DebuggerException; 145 public void useCommand(String sourcePath, String newSourcePath) 146 throws NoVMException, DebuggerException; 147 public void workingdirCommand(String workingdirPath, String newWorkingdirPath) 148 throws NoVMException, DebuggerException; 149 public void listCommand(List sourceLines) 150 throws NoVMException, DebuggerException; 151 public void listCommand(String sourceName, List sourceLines) 152 throws NoVMException, DebuggerException; 153 public void listCommand(String sourceName, int lineNumber, SourceManager.SourceLine sl) 154 throws NoVMException, DebuggerException; 155 public void listCommand(String sourceName, int startLine, int endLine, List sourceLines) 156 throws NoVMException, DebuggerException; 157 public void monitorCommand(String command, String result) 158 throws NoVMException, DebuggerException; 159 public void monitorCommand(List monitors) 160 throws NoVMException, DebuggerException; 161 public void unmonitorCommand(int number, MonitorRequest request) 162 throws NoVMException, DebuggerException; 163 public void readCommand(String fileName, List commands) 164 throws NoVMException, DebuggerException; 165 public void viewCommand(String sourceName, List lines) 166 throws NoVMException, DebuggerException; 167 public void tostringCommand(String tostring) 168 throws NoVMException, DebuggerException; 169 public void connectCommand(VirtualMachine vm) 170 throws NoVMException, DebuggerException; 171 public void pwdCommand(File file) 172 throws NoVMException, DebuggerException; 173 public void lsCommand(String dir, List files) 174 throws NoVMException, DebuggerException; 175 176 177 178 public void handleParseException(ParseException e); 179 public void handleNoVMException(NoVMException e); 180 public void handleDebuggerException(DebuggerException e); 181 public void handleVMDisconnectedException(VMDisconnectedException e); 182 public void handleInternalException(Throwable t); 183 184 public boolean wantsToExit(); 185 public boolean canRestart(); 186 187 public PrintStream getOutputStream(); 188 public void outln(Object o); 189 public void log(Object o); 190 191 public VirtualMachine connect(String vmArgs, String className, String commandLine); 193 } 194 | Popular Tags |