KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > debugger > base > CommandReceiver


1 /* -*- Mode: JDE; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2  *
3  * This file is part of the debugger and core tools for the AspectJ(tm)
4  * programming language; see http://aspectj.org
5  *
6  * The contents of this file are subject to the Mozilla Public License
7  * Version 1.1 (the "License"); you may not use this file except in
8  * compliance with the License. You may obtain a copy of the License at
9  * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/.
10  *
11  * Software distributed under the License is distributed on an "AS IS" basis,
12  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13  * for the specific language governing rights and limitations under the
14  * License.
15  *
16  * The Original Code is AspectJ.
17  *
18  * The Initial Developer of the Original Code is Xerox Corporation. Portions
19  * created by Xerox Corporation are Copyright (C) 1999-2002 Xerox Corporation.
20  * All Rights Reserved.
21  */

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 JavaDoc;
29
30 public interface CommandReceiver {
31
32     public Object JavaDoc runCommand(Options opts)
33         throws NoVMException, DebuggerException;
34     public Object JavaDoc runCommand(String JavaDoc className, String JavaDoc exArgs)
35         throws NoVMException, DebuggerException;
36     public Object JavaDoc runCommand(String JavaDoc className, String JavaDoc vmArgs, String JavaDoc exArgs,
37                              boolean isSuspended, int debugTraceMode)
38         throws NoVMException, DebuggerException;
39     public EventRequest clearAtCommand(String JavaDoc className, int line)
40         throws NoVMException, DebuggerException;
41     public EventRequest clearInCommand(String JavaDoc className, String JavaDoc methodProto)
42         throws NoVMException, DebuggerException;
43     public EventRequest clearOnCommand(String JavaDoc 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 JavaDoc className, int line)
50         throws NoVMException, DebuggerException;
51     public EventRequest stopInCommand(String JavaDoc className, String JavaDoc methodProto)
52         throws NoVMException, DebuggerException;
53     public EventRequest stopOnCommand(String JavaDoc sourceName, int line)
54         throws NoVMException, DebuggerException;
55     public List stopCommand()
56         throws NoVMException, DebuggerException;
57     public Object JavaDoc contCommand()
58         throws NoVMException, DebuggerException;
59     public List threadsCommand(String JavaDoc threadGroupName)
60         throws NoVMException, DebuggerException;
61     public List threadGroupsCommand()
62         throws NoVMException, DebuggerException;
63     public List fieldsCommand(String JavaDoc className)
64         throws NoVMException, DebuggerException;
65     public List methodsCommand(String JavaDoc className)
66         throws NoVMException, DebuggerException;
67     public List classesCommand()
68         throws NoVMException, DebuggerException;
69     public ReferenceType classCommand(String JavaDoc className)
70         throws NoVMException, DebuggerException;
71     public ThreadReference threadCommand(String JavaDoc threadName)
72         throws NoVMException, DebuggerException;
73     public ThreadGroupReference threadGroupCommand(String JavaDoc 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 JavaDoc threadName)
80         throws NoVMException, DebuggerException;
81     public List localsCommand()
82         throws NoVMException, DebuggerException;
83     public ThreadReference interruptCommand(String JavaDoc 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 JavaDoc valueRep)
98         throws NoVMException, DebuggerException;
99
100     public Value dumpCommand(Object JavaDoc valueRep)
101         throws NoVMException, DebuggerException;
102     public Value evalCommand(Object JavaDoc valueRep)
103         throws NoVMException, DebuggerException;
104     public Value setCommand(Object JavaDoc lvalue, Object JavaDoc rvalue)
105         throws NoVMException, DebuggerException;
106     public ClasspathRequest.Package classpathCommand()
107         throws NoVMException, DebuggerException;
108     public LockInformation lockCommand(Object JavaDoc valueRep)
109         throws NoVMException, DebuggerException;
110     public ThreadLockInformation threadlocksCommand(String JavaDoc threadName)
111         throws NoVMException, DebuggerException;
112     public WatchpointRequest watchAccessCommand(String JavaDoc className,
113                                                 String JavaDoc fieldName)
114         throws NoVMException, DebuggerException;
115     public WatchpointRequest watchAllCommand(String JavaDoc className,
116                                              String JavaDoc fieldName)
117         throws NoVMException, DebuggerException;
118     public WatchpointRequest unwatchAccessCommand(String JavaDoc className,
119                                                   String JavaDoc fieldName)
120         throws NoVMException, DebuggerException;
121     public WatchpointRequest unwatchAllCommand(String JavaDoc className,
122                                                String JavaDoc fieldName)
123         throws NoVMException, DebuggerException;
124     public ExceptionRequest catchCommand(String JavaDoc className)
125         throws NoVMException, DebuggerException;
126     public ExceptionRequest ignoreCommand(String JavaDoc className)
127         throws NoVMException, DebuggerException;
128     public TraceMethodsRequest.EntryExitPair traceMethodsCommand(String JavaDoc threadName)
129         throws NoVMException, DebuggerException;
130     public UntraceMethodsRequest.EntryExitPair untraceMethodsCommand(String JavaDoc threadName)
131         throws NoVMException, DebuggerException;
132     public List excludeCommand(List classNames)
133         throws NoVMException, DebuggerException;
134     public Object JavaDoc quitCommand()
135         throws NoVMException, DebuggerException;
136     public Object JavaDoc helpCommand()
137         throws NoVMException, DebuggerException;
138     public Object JavaDoc versionCommand()
139         throws NoVMException, DebuggerException;
140     public ThreadReference killCommand(String JavaDoc threadName, String JavaDoc valueRep)
141         throws NoVMException, DebuggerException;
142     public String JavaDoc useCommand(String JavaDoc sourcePath)
143         throws NoVMException, DebuggerException;
144     public String JavaDoc workingdirCommand(String JavaDoc workingdirPath)
145         throws NoVMException, DebuggerException;
146     public List listCommand()
147         throws NoVMException, DebuggerException;
148     public List listCommand(String JavaDoc sourceName)
149         throws NoVMException, DebuggerException;
150     public SourceManager.SourceLine listCommand(String JavaDoc sourceName, int lineNumber)
151         throws NoVMException, DebuggerException;
152     public List listCommand(String JavaDoc sourceName, int startLine, int endLine)
153         throws NoVMException, DebuggerException;
154     public String JavaDoc monitorCommand(String JavaDoc 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 JavaDoc sourceName)
161         throws NoVMException, DebuggerException;
162     public List readCommand(String JavaDoc sourceName, boolean silent)
163         throws NoVMException, DebuggerException;
164     public Object JavaDoc bangBangCommand(String JavaDoc lastCommand)
165         throws NoVMException, DebuggerException;
166     public Object JavaDoc importCommand(String JavaDoc importPath)
167         throws NoVMException, DebuggerException;
168     public Object JavaDoc deportCommand(String JavaDoc importPath)
169         throws NoVMException, DebuggerException;
170     public List viewCommand(String JavaDoc source)
171         throws NoVMException, DebuggerException;
172     public String JavaDoc tostringCommand()
173         throws NoVMException, DebuggerException;
174     public VirtualMachine connectCommand()
175         throws NoVMException, DebuggerException;
176     public File JavaDoc pwdCommand()
177         throws NoVMException, DebuggerException;
178     public List lsCommand(String JavaDoc fileName)
179         throws NoVMException, DebuggerException;
180
181     public Options getOptions();
182 }
183
Popular Tags