1 22 package org.aspectj.debugger.base; 23 24 import org.aspectj.debugger.request.*; 25 import com.sun.jdi.*; 26 import com.sun.jdi.request.*; 27 import java.util.*; 28 import java.io.File ; 29 30 public interface CommandReceiver { 31 32 public Object runCommand(Options opts) 33 throws NoVMException, DebuggerException; 34 public Object runCommand(String className, String exArgs) 35 throws NoVMException, DebuggerException; 36 public Object runCommand(String className, String vmArgs, String exArgs, 37 boolean isSuspended, int debugTraceMode) 38 throws NoVMException, DebuggerException; 39 public EventRequest clearAtCommand(String className, int line) 40 throws NoVMException, DebuggerException; 41 public EventRequest clearInCommand(String className, String methodProto) 42 throws NoVMException, DebuggerException; 43 public EventRequest clearOnCommand(String sourceName, int line) 44 throws NoVMException, DebuggerException; 45 public List clearCommand() 46 throws NoVMException, DebuggerException; 47 public List clearAllCommand() 48 throws NoVMException, DebuggerException; 49 public EventRequest stopAtCommand(String className, int line) 50 throws NoVMException, DebuggerException; 51 public EventRequest stopInCommand(String className, String methodProto) 52 throws NoVMException, DebuggerException; 53 public EventRequest stopOnCommand(String sourceName, int line) 54 throws NoVMException, DebuggerException; 55 public List stopCommand() 56 throws NoVMException, DebuggerException; 57 public Object contCommand() 58 throws NoVMException, DebuggerException; 59 public List threadsCommand(String threadGroupName) 60 throws NoVMException, DebuggerException; 61 public List threadGroupsCommand() 62 throws NoVMException, DebuggerException; 63 public List fieldsCommand(String className) 64 throws NoVMException, DebuggerException; 65 public List methodsCommand(String className) 66 throws NoVMException, DebuggerException; 67 public List classesCommand() 68 throws NoVMException, DebuggerException; 69 public ReferenceType classCommand(String className) 70 throws NoVMException, DebuggerException; 71 public ThreadReference threadCommand(String threadName) 72 throws NoVMException, DebuggerException; 73 public ThreadGroupReference threadGroupCommand(String threadGroupName) 74 throws NoVMException, DebuggerException; 75 public List suspendCommand(List threadNames) 76 throws NoVMException, DebuggerException; 77 public List resumeCommand(List threadNames) 78 throws NoVMException, DebuggerException; 79 public List whereCommand(String threadName) 80 throws NoVMException, DebuggerException; 81 public List localsCommand() 82 throws NoVMException, DebuggerException; 83 public ThreadReference interruptCommand(String threadName) 84 throws NoVMException, DebuggerException; 85 public StackFrame upCommand(int frames) 86 throws NoVMException, DebuggerException; 87 public StackFrame downCommand(int frames) 88 throws NoVMException, DebuggerException; 89 public StepRequest stepCommand() 90 throws NoVMException, DebuggerException; 91 public StepRequest stepUpCommand() 92 throws NoVMException, DebuggerException; 93 public StepRequest stepiCommand() 94 throws NoVMException, DebuggerException; 95 public StepRequest nextCommand() 96 throws NoVMException, DebuggerException; 97 public Value printCommand(Object valueRep) 98 throws NoVMException, DebuggerException; 99 100 public Value dumpCommand(Object valueRep) 101 throws NoVMException, DebuggerException; 102 public Value evalCommand(Object valueRep) 103 throws NoVMException, DebuggerException; 104 public Value setCommand(Object lvalue, Object rvalue) 105 throws NoVMException, DebuggerException; 106 public ClasspathRequest.Package classpathCommand() 107 throws NoVMException, DebuggerException; 108 public LockInformation lockCommand(Object valueRep) 109 throws NoVMException, DebuggerException; 110 public ThreadLockInformation threadlocksCommand(String threadName) 111 throws NoVMException, DebuggerException; 112 public WatchpointRequest watchAccessCommand(String className, 113 String fieldName) 114 throws NoVMException, DebuggerException; 115 public WatchpointRequest watchAllCommand(String className, 116 String fieldName) 117 throws NoVMException, DebuggerException; 118 public WatchpointRequest unwatchAccessCommand(String className, 119 String fieldName) 120 throws NoVMException, DebuggerException; 121 public WatchpointRequest unwatchAllCommand(String className, 122 String fieldName) 123 throws NoVMException, DebuggerException; 124 public ExceptionRequest catchCommand(String className) 125 throws NoVMException, DebuggerException; 126 public ExceptionRequest ignoreCommand(String className) 127 throws NoVMException, DebuggerException; 128 public TraceMethodsRequest.EntryExitPair traceMethodsCommand(String threadName) 129 throws NoVMException, DebuggerException; 130 public UntraceMethodsRequest.EntryExitPair untraceMethodsCommand(String threadName) 131 throws NoVMException, DebuggerException; 132 public List excludeCommand(List classNames) 133 throws NoVMException, DebuggerException; 134 public Object quitCommand() 135 throws NoVMException, DebuggerException; 136 public Object helpCommand() 137 throws NoVMException, DebuggerException; 138 public Object versionCommand() 139 throws NoVMException, DebuggerException; 140 public ThreadReference killCommand(String threadName, String valueRep) 141 throws NoVMException, DebuggerException; 142 public String useCommand(String sourcePath) 143 throws NoVMException, DebuggerException; 144 public String workingdirCommand(String workingdirPath) 145 throws NoVMException, DebuggerException; 146 public List listCommand() 147 throws NoVMException, DebuggerException; 148 public List listCommand(String sourceName) 149 throws NoVMException, DebuggerException; 150 public SourceManager.SourceLine listCommand(String sourceName, int lineNumber) 151 throws NoVMException, DebuggerException; 152 public List listCommand(String sourceName, int startLine, int endLine) 153 throws NoVMException, DebuggerException; 154 public String monitorCommand(String command) 155 throws NoVMException, DebuggerException; 156 public List monitorCommand() 157 throws NoVMException, DebuggerException; 158 public MonitorRequest unmonitorCommand(int number) 159 throws NoVMException, DebuggerException; 160 public List readCommand(String sourceName) 161 throws NoVMException, DebuggerException; 162 public List readCommand(String sourceName, boolean silent) 163 throws NoVMException, DebuggerException; 164 public Object bangBangCommand(String lastCommand) 165 throws NoVMException, DebuggerException; 166 public Object importCommand(String importPath) 167 throws NoVMException, DebuggerException; 168 public Object deportCommand(String importPath) 169 throws NoVMException, DebuggerException; 170 public List viewCommand(String source) 171 throws NoVMException, DebuggerException; 172 public String tostringCommand() 173 throws NoVMException, DebuggerException; 174 public VirtualMachine connectCommand() 175 throws NoVMException, DebuggerException; 176 public File pwdCommand() 177 throws NoVMException, DebuggerException; 178 public List lsCommand(String fileName) 179 throws NoVMException, DebuggerException; 180 181 public Options getOptions(); 182 } 183 | Popular Tags |