1:
38:
39:
40: package ;
41:
42:
47: public class JdwpConstants
48: {
49: public static final class Version
50: {
51: public static final int MAJOR = 1;
52: public static final int MINOR = 4;
53: }
54:
55:
56:
57:
58:
59: public static final class CommandSet
60: {
61: public static final class VirtualMachine
62: {
63: public static final byte CS_VALUE = 1;
64:
65:
66: public static final byte VERSION = 1;
67: public static final byte CLASSES_BY_SIGNATURE = 2;
68: public static final byte ALL_CLASSES = 3;
69: public static final byte ALL_THREADS = 4;
70: public static final byte TOP_LEVEL_THREAD_GROUPS = 5;
71: public static final byte DISPOSE = 6;
72: public static final byte IDSIZES = 7;
73: public static final byte SUSPEND = 8;
74: public static final byte RESUME = 9;
75: public static final byte EXIT = 10;
76: public static final byte CREATE_STRING = 11;
77: public static final byte CAPABILITIES = 12;
78: public static final byte CLASS_PATHS = 13;
79: public static final byte DISPOSE_OBJECTS = 14;
80: public static final byte HOLD_EVENTS = 15;
81: public static final byte RELEASE_EVENTS = 16;
82: public static final byte CAPABILITIES_NEW = 17;
83: public static final byte REDEFINE_CLASSES = 18;
84: public static final byte SET_DEFAULT_STRATUM = 19;
85: public static final byte ALL_CLASSES_WITH_GENERIC = 20;
86: }
87:
88: public static final class ReferenceType
89: {
90: public static final byte CS_VALUE = 2;
91:
92:
93: public static final byte SIGNATURE= 1;
94: public static final byte CLASS_LOADER= 2;
95: public static final byte MODIFIERS = 3;
96: public static final byte FIELDS = 4;
97: public static final byte METHODS = 5;
98: public static final byte GET_VALUES = 6;
99: public static final byte SOURCE_FILE = 7;
100: public static final byte NESTED_TYPES = 8;
101: public static final byte STATUS = 9;
102: public static final byte INTERFACES= 10;
103: public static final byte CLASS_OBJECT = 11;
104: public static final byte SOURCE_DEBUG_EXTENSION = 12;
105: public static final byte SIGNATURE_WITH_GENERIC = 13;
106: public static final byte FIELDS_WITH_GENERIC = 14;
107: public static final byte METHODS_WITH_GENERIC = 15;
108: }
109:
110: public static final class ClassType
111: {
112: public static final byte CS_VALUE = 3;
113:
114:
115: public static final byte SUPERCLASS = 1;
116: public static final byte SET_VALUES = 2;
117: public static final byte INVOKE_METHOD = 3;
118: public static final byte NEW_INSTANCE = 4;
119: }
120:
121: public static final class ArrayType
122: {
123: public static final byte CS_VALUE = 4;
124:
125:
126: public static final byte NEW_INSTANCE = 1;
127: }
128:
129: public static final class InterfaceType
130: {
131: public static final byte CS_VALUE = 5;
132:
133:
134: }
135:
136: public static final class Method
137: {
138: public static final byte CS_VALUE = 6;
139:
140:
141: public static final byte LINE_TABLE = 1;
142: public static final byte VARIABLE_TABLE = 2;
143: public static final byte BYTE_CODES = 3;
144: public static final byte IS_OBSOLETE = 4;
145: public static final byte VARIABLE_TABLE_WITH_GENERIC = 5;
146: }
147:
148: public static final class Field
149: {
150: public static final byte CS_VALUE = 8;
151:
152:
153: }
154:
155: public static final class ObjectReference
156: {
157: public static final byte CS_VALUE = 9;
158:
159:
160: public static final byte REFERENCE_TYPE = 1;
161: public static final byte GET_VALUES = 2;
162: public static final byte SET_VALUES = 3;
163: public static final byte MONITOR_INFO = 5;
164: public static final byte INVOKE_METHOD = 6;
165: public static final byte DISABLE_COLLECTION = 7;
166: public static final byte ENABLE_COLLECTION = 8;
167: public static final byte IS_COLLECTED = 9;
168: }
169:
170: public static final class StringReference
171: {
172: public static final byte CS_VALUE = 10;
173:
174:
175: public static final byte VALUE = 1;
176: }
177:
178: public static final class ThreadReference
179: {
180: public static final byte CS_VALUE = 11;
181:
182:
183: public static final byte NAME = 1;
184: public static final byte SUSPEND = 2;
185: public static final byte RESUME = 3;
186: public static final byte STATUS = 4;
187: public static final byte THREAD_GROUP = 5;
188: public static final byte FRAMES = 6;
189: public static final byte FRAME_COUNT = 7;
190: public static final byte OWNED_MONITORS = 8;
191: public static final byte CURRENT_CONTENDED_MONITOR = 9;
192: public static final byte STOP = 10;
193: public static final byte INTERRUPT = 11;
194: public static final byte SUSPEND_COUNT = 12;
195: }
196:
197: public static final class ThreadGroupReference
198: {
199: public static final byte CS_VALUE = 12;
200:
201:
202: public static final byte NAME = 1;
203: public static final byte PARENT = 2;
204: public static final byte CHILDREN = 3;
205: }
206:
207: public static final class ArrayReference
208: {
209: public static final byte CS_VALUE = 13;
210:
211:
212: public static final byte LENGTH = 1;
213: public static final byte GET_VALUES = 2;
214: public static final byte SET_VALUES = 3;
215: }
216:
217: public static final class ClassLoaderReference
218: {
219: public static final byte CS_VALUE = 14;
220:
221:
222: public static final byte VISIBLE_CLASSES = 1;
223: }
224:
225: public static final class EventRequest
226: {
227: public static final byte CS_VALUE = 15;
228:
229:
230: public static final byte SET = 1;
231: public static final byte CLEAR = 2;
232: public static final byte CLEAR_ALL_BREAKPOINTS = 3;
233: }
234:
235: public static final class StackFrame
236: {
237: public static final byte CS_VALUE = 16;
238:
239:
240: public static final byte GET_VALUES = 1;
241: public static final byte SET_VALUES = 2;
242: public static final byte THIS_OBJECT = 3;
243: public static final byte POP_FRAMES = 4;
244: }
245:
246: public static final class ClassObjectReference
247: {
248: public static final byte CS_VALUE = 17;
249:
250:
251: public static final byte REFLECTED_TYPE = 1;
252: }
253:
254: public static final int MAXIMUM = ClassObjectReference.CS_VALUE;
255:
256: public static final class Event
257: {
258: public static final byte CS_VALUE = 64;
259:
260:
261: public static final byte COMPOSITE = 100;
262: }
263: }
264:
265:
266:
267:
268:
269:
272: public static final class Error
273: {
274:
277: public static final short NONE = 0;
278:
279:
282: public static final short INVALID_THREAD = 10;
283:
284:
287: public static final short INVALID_THREAD_GROUP = 11;
288:
289:
292: public static final short INVALID_PRIORITY = 12;
293:
294:
297: public static final short THREAD_NOT_SUSPENDED = 13;
298:
299:
302: public static final short THREAD_SUSPENDED = 14;
303:
304:
307: public static final short INVALID_OBJECT = 20;
308:
309:
312: public static final short INVALID_CLASS = 21;
313:
314:
317: public static final short CLASS_NOT_PREPARED = 22;
318:
319:
322: public static final short INVALID_METHODID = 23;
323:
324:
327: public static final short INVALID_LOCATION = 24;
328:
329:
332: public static final short INVALID_FIELDID = 25;
333:
334:
337: public static final short INVALID_FRAMEID = 30;
338:
339:
342: public static final short NO_MORE_FRAMES = 31;
343:
344:
347: public static final short OPAQUE_FRAME = 32;
348:
349:
352: public static final short NOT_CURRENT_FRAME = 33;
353:
354:
357: public static final short TYPE_MISMATCH = 34;
358:
359:
362: public static final short INVALID_SLOT = 35;
363:
364:
367: public static final short DUPLICATE = 40;
368:
369:
372: public static final short NOT_FOUND = 41;
373:
374:
377: public static final short INVALID_MONITOR = 50;
378:
379:
382: public static final short NOT_MONITOR_OWNER = 51;
383:
384:
387: public static final short INTERRUPT = 52;
388:
389:
394: public static final short INVALID_CLASS_FORMAT = 60;
395:
396:
399: public static final short CIRCULAR_CLASS_DEFINITION = 61;
400:
401:
405: public static final short FAILS_VERIFICATION = 62;
406:
407:
410: public static final short ADD_METHOD_NOT_IMPLEMENTED = 63;
411:
412:
415: public static final short SCHEMA_CHANGE_NOT_IMPLEMENTED = 64;
416:
417:
420: public static final short INVALID_TYPESTATE = 65;
421:
422:
427: public static final short HIERARCHY_CHANGE_NOT_IMPLEMENTED = 66;
428:
429:
434: public static final short DELETE_METHOD_NOT_IMPLEMENTED = 67;
435:
436:
439: public static final short UNSUPPORTED_VERSION = 68;
440:
441:
445: public static final short NAMES_DONT_MATCH = 69;
446:
447:
451: public static final short CLASS_MODIFIERS_CHANGE_NOT_IMPLEMENTED = 70;
452:
453:
458: public static final short METHOD_MODIFIERS_CHANGE_NOT_IMPLEMENTED = 71;
459:
460:
463: public static final short NOT_IMPLEMENTED = 99;
464:
465:
468: public static final short NULL_POINTER = 100;
469:
470:
473: public static final short ABSENT_INFORMATION = 101;
474:
475:
478: public static final short INVALID_EVENT_TYPE = 102;
479:
480:
483: public static final short ILLEGAL_ARGUMENT = 103;
484:
485:
489: public static final short OUT_OF_MEMORY = 110;
490:
491:
495: public static final short ACCESS_DENIED = 111;
496:
497:
500: public static final short VM_DEAD = 112;
501:
502:
505: public static final short INTERNAL = 113;
506:
507:
511: public static final short UNATTACHED_THREAD = 115;
512:
513:
516: public static final short INVALID_TAG = 500;
517:
518:
521: public static final short ALREADY_INVOKING = 502;
522:
523:
526: public static final short INVALID_INDEX = 503;
527:
528:
531: public static final short INVALID_LENGTH = 504;
532:
533:
536: public static final short INVALID_STRING = 506;
537:
538:
541: public static final short INVALID_CLASS_LOADER = 507;
542:
543:
546: public static final short INVALID_ARRAY = 508;
547:
548:
551: public static final short TRANSPORT_LOAD = 509;
552:
553:
556: public static final short TRANSPORT_INIT = 510;
557:
558:
561: public static final short NATIVE_METHOD = 511;
562:
563:
566: public static final short INVALID_COUNT = 512;
567: }
568:
569:
572: public static final class EventKind
573: {
574: public static final byte SINGLE_STEP = 1;
575: public static final byte BREAKPOINT = 2;
576: public static final byte FRAME_POP = 3;
577: public static final byte EXCEPTION = 4;
578: public static final byte USER_DEFINED = 5;
579: public static final byte THREAD_START = 6;
580: public static final byte THREAD_END = 7;
581: public static final byte CLASS_PREPARE = 8;
582: public static final byte CLASS_UNLOAD = 9;
583: public static final byte CLASS_LOAD = 10;
584: public static final byte FIELD_ACCESS = 20;
585: public static final byte FIELD_MODIFICATION = 21;
586: public static final byte EXCEPTION_CATCH = 30;
587: public static final byte METHOD_ENTRY = 40;
588: public static final byte METHOD_EXIT = 41;
589: public static final byte VM_INIT = 90;
590: public static final byte VM_DEATH = 99;
591: public static final byte VM_DISCONNECTED = 100;
592:
593: public static final byte VM_START = VM_INIT;
594: public static final byte THREAD_DEATH = THREAD_END;
595: }
596:
597:
600: public static final class ModKind
601: {
602:
606: public static final byte COUNT = 1;
607:
608:
611: public static final byte CONDITIONAL = 2;
612:
613:
617: public static final byte THREAD_ONLY = 3;
618:
619:
633: public static final byte CLASS_ONLY = 4;
634:
635:
645: public static final byte CLASS_MATCH = 5;
646:
647:
657: public static final byte CLASS_EXCLUDE = 6;
658:
659:
665: public static final byte LOCATION_ONLY = 7;
666:
667:
673: public static final byte EXCEPTION_ONLY = 8;
674:
675:
680: public static final byte FIELD_ONLY = 9;
681:
682:
688: public static final byte STEP = 10;
689:
690:
697: public static final byte INSTANCE_ONLY = 11;
698: }
699:
700:
703: public static final class ThreadStatus
704: {
705: public static final int ZOMBIE = 0;
706: public static final int RUNNING = 1;
707: public static final int SLEEPING = 2;
708: public static final int MONITOR = 3;
709: public static final int WAIT = 4;
710: }
711:
712:
715: public static final class SuspendStatus
716: {
717: public static final byte SUSPENDED = 1;
718: }
719:
720:
723: public static final class ClassStatus
724: {
725: public static final int VERIFIED = 1;
726: public static final int PREPARED = 2;
727: public static final int INITIALIZED = 4;
728: public static final int ERROR = 8;
729: }
730:
731:
734: public static final class TypeTag
735: {
736: public static final byte CLASS = 1;
737: public static final byte INTERFACE = 2;
738: public static final byte ARRAY = 3;
739: }
740:
741:
744: public static final class Tag
745: {
746:
749: public static final byte ARRAY = '[';
750:
751:
754: public static final byte BYTE = 'B';
755:
756:
759: public static final byte CHAR = 'C';
760:
761:
764: public static final byte OBJECT = 'L';
765:
766:
769: public static final byte FLOAT = 'F';
770:
771:
774: public static final byte DOUBLE = 'D';
775:
776:
779: public static final byte INT = 'I';
780:
781:
784: public static final byte LONG = 'J';
785:
786:
789: public static final byte SHORT = 'S';
790:
791:
794: public static final byte VOID = 'V';
795:
796:
799: public static final byte BOOLEAN = 'Z';
800:
801:
804: public static final byte STRING = 's';
805:
806:
809: public static final byte THREAD = 't';
810:
811:
814: public static final byte THREAD_GROUP = 'g';
815:
816:
819: public static final byte CLASS_LOADER = 'l';
820:
821:
824: public static final byte CLASS_OBJECT = 'c';
825: }
826:
827:
830: public static final class StepDepth
831: {
832:
835: public static final int INTO = 0;
836:
837:
840: public static final int OVER = 1;
841:
842:
845: public static final int OUT = 2;
846: }
847:
848:
851: public static final class StepSize
852: {
853:
856: public static final int MIN = 0;
857:
858:
862: public static final int LINE = 1;
863: }
864:
865:
868: public static final class SuspendPolicy
869: {
870:
873: public static final byte NONE = 0;
874:
875:
878: public static final byte EVENT_THREAD = 1;
879:
880:
883: public static final byte ALL = 2;
884: }
885:
886:
889: public static final class InvokeOptions
890: {
891:
894: public static final int INVOKE_SINGLE_THREADED = 0x1;
895:
896:
899: public static final int INVOKE_NONVIRTUAL = 0x2;
900: }
901: }