001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: *
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018:
019: /**
020: * @author Aleksey V. Yantsen
021: * @version $Revision: 1.3 $
022: */
023:
024: /**
025: * Created on 12.03.2004
026: */package org.apache.harmony.jpda.tests.framework.jdwp;
027:
028: /**
029: * This class defines constants for JDWP commands and command sets.
030: */
031: public class JDWPCommands {
032:
033: /**
034: * JDWP VirtualMachine Command Set constants.
035: */
036: public class VirtualMachineCommandSet {
037:
038: public static final byte CommandSetID = 1;
039:
040: public static final byte VersionCommand = 1;
041:
042: public static final byte ClassesBySignatureCommand = 2;
043:
044: public static final byte AllClassesCommand = 3;
045:
046: public static final byte AllThreadsCommand = 4;
047:
048: public static final byte TopLevelThreadGroupsCommand = 5;
049:
050: public static final byte DisposeCommand = 6;
051:
052: public static final byte IDSizesCommand = 7;
053:
054: public static final byte SuspendCommand = 8;
055:
056: public static final byte ResumeCommand = 9;
057:
058: public static final byte ExitCommand = 10;
059:
060: public static final byte CreateStringCommand = 11;
061:
062: public static final byte CapabilitiesCommand = 12;
063:
064: public static final byte ClassPathsCommand = 13;
065:
066: public static final byte DisposeObjectsCommand = 14;
067:
068: public static final byte HoldEventsCommand = 15;
069:
070: public static final byte ReleaseEventsCommand = 16;
071:
072: public static final byte CapabilitiesNewCommand = 17;
073:
074: public static final byte RedefineClassesCommand = 18;
075:
076: public static final byte SetDefaultStratumCommand = 19;
077:
078: public static final byte AllClassesWithGenericCommand = 20;
079: }
080:
081: /**
082: * JDWP ReferenceType Command Set constants.
083: */
084: public class ReferenceTypeCommandSet {
085:
086: public static final byte CommandSetID = 2;
087:
088: public static final byte SignatureCommand = 1;
089:
090: public static final byte ClassLoaderCommand = 2;
091:
092: public static final byte ModifiersCommand = 3;
093:
094: public static final byte FieldsCommand = 4;
095:
096: public static final byte MethodsCommand = 5;
097:
098: public static final byte GetValuesCommand = 6;
099:
100: public static final byte SourceFileCommand = 7;
101:
102: public static final byte NestedTypesCommand = 8;
103:
104: public static final byte StatusCommand = 9;
105:
106: public static final byte InterfacesCommand = 10;
107:
108: public static final byte ClassObjectCommand = 11;
109:
110: public static final byte SourceDebugExtensionCommand = 12;
111:
112: public static final byte SignatureWithGenericCommand = 13;
113:
114: public static final byte FieldsWithGenericCommand = 14;
115:
116: public static final byte MethodsWithGenericCommand = 15;
117: }
118:
119: /**
120: * JDWP ClassType Command Set constants.
121: */
122: public class ClassTypeCommandSet {
123:
124: public static final byte CommandSetID = 3;
125:
126: public static final byte SuperclassCommand = 1;
127:
128: public static final byte SetValuesCommand = 2;
129:
130: public static final byte InvokeMethodCommand = 3;
131:
132: public static final byte NewInstanceCommand = 4;
133: }
134:
135: /**
136: * JDWP ArrayType Command Set constants.
137: */
138: public class ArrayTypeCommandSet {
139:
140: public static final byte CommandSetID = 4;
141:
142: public static final byte NewInstanceCommand = 1;
143: }
144:
145: /**
146: * JDWP InterfaceType Command Set constants.
147: */
148: public class InterfaceTypeCommandSet {
149: public static final byte CommandSetID = 5;
150: }
151:
152: /**
153: * JDWP Method Command Set constants.
154: */
155: public class MethodCommandSet {
156:
157: public static final byte CommandSetID = 6;
158:
159: public static final byte LineTableCommand = 1;
160:
161: public static final byte VariableTableCommand = 2;
162:
163: public static final byte BytecodesCommand = 3;
164:
165: public static final byte IsObsoleteCommand = 4;
166:
167: public static final byte VariableTableWithGenericCommand = 5;
168: }
169:
170: /**
171: * JDWP Field Command Set constants.
172: */
173: public class FieldCommandSet {
174:
175: public static final byte CommandSetID = 8;
176: }
177:
178: /**
179: * JDWP ObjectReference Command Set constants.
180: */
181: public class ObjectReferenceCommandSet {
182:
183: public static final byte CommandSetID = 9;
184:
185: public static final byte ReferenceTypeCommand = 1;
186:
187: public static final byte GetValuesCommand = 2;
188:
189: public static final byte SetValuesCommand = 3;
190:
191: public static final byte MonitorInfoCommand = 5;
192:
193: public static final byte InvokeMethodCommand = 6;
194:
195: public static final byte DisableCollectionCommand = 7;
196:
197: public static final byte EnableCollectionCommand = 8;
198:
199: public static final byte IsCollectedCommand = 9;
200: }
201:
202: /**
203: * JDWP String Command Set constants.
204: */
205: public class StringReferenceCommandSet {
206:
207: public static final byte CommandSetID = 10;
208:
209: public static final byte ValueCommand = 1;
210: }
211:
212: /**
213: * JDWP ThreadReference Command Set constants.
214: */
215: public class ThreadReferenceCommandSet {
216:
217: public static final byte CommandSetID = 11;
218:
219: public static final byte NameCommand = 1;
220:
221: public static final byte SuspendCommand = 2;
222:
223: public static final byte ResumeCommand = 3;
224:
225: public static final byte StatusCommand = 4;
226:
227: public static final byte ThreadGroupCommand = 5;
228:
229: public static final byte FramesCommand = 6;
230:
231: public static final byte FrameCountCommand = 7;
232:
233: public static final byte OwnedMonitorsCommand = 8;
234:
235: public static final byte CurrentContendedMonitorCommand = 9;
236:
237: public static final byte StopCommand = 10;
238:
239: public static final byte InterruptCommand = 11;
240:
241: public static final byte SuspendCountCommand = 12;
242: }
243:
244: /**
245: * JDWP ThreadGroupReference Command Set constants.
246: */
247: public class ThreadGroupReferenceCommandSet {
248:
249: public static final byte CommandSetID = 12;
250:
251: public static final byte NameCommand = 1;
252:
253: public static final byte ParentCommand = 2;
254:
255: public static final byte ChildrenCommand = 3;
256: }
257:
258: /**
259: * JDWP ArrayReference Command Set constants.
260: */
261: public class ArrayReferenceCommandSet {
262:
263: public static final byte CommandSetID = 13;
264:
265: public static final byte LengthCommand = 1;
266:
267: public static final byte GetValuesCommand = 2;
268:
269: public static final byte SetValuesCommand = 3;
270: }
271:
272: /**
273: * JDWP ClassLoaderReference Command Set constants.
274: */
275: public class ClassLoaderReferenceCommandSet {
276:
277: public static final byte CommandSetID = 14;
278:
279: public static final byte VisibleClassesCommand = 1;
280: }
281:
282: /**
283: * JDWP EventRequest Command Set constants.
284: */
285: public class EventRequestCommandSet {
286:
287: public static final byte CommandSetID = 15;
288:
289: public static final byte SetCommand = 1;
290:
291: public static final byte ClearCommand = 2;
292:
293: public static final byte ClearAllBreakpointsCommand = 3;
294: }
295:
296: /**
297: * JDWP StackFrame Command Set constants.
298: */
299: public class StackFrameCommandSet {
300:
301: public static final byte CommandSetID = 16;
302:
303: public static final byte GetValuesCommand = 1;
304:
305: public static final byte SetValuesCommand = 2;
306:
307: public static final byte ThisObjectCommand = 3;
308:
309: public static final byte PopFramesCommand = 4;
310: }
311:
312: /**
313: * JDWP ClassObjectReference Command Set constants.
314: */
315: public class ClassObjectReferenceCommandSet {
316:
317: public static final byte CommandSetID = 17;
318:
319: public static final byte ReflectedTypeCommand = 1;
320: }
321:
322: /**
323: * JDWP Event Command Set constants.
324: */
325: public class EventCommandSet {
326:
327: public static final byte CommandSetID = 64;
328:
329: public static final byte CompositeCommand = 100;
330: }
331:
332: }
|