01: /*
02: *
03: *
04: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
05: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License version
09: * 2 only, as published by the Free Software Foundation.
10: *
11: * This program is distributed in the hope that it will be useful, but
12: * WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * General Public License version 2 for more details (a copy is
15: * included at /legal/license.txt).
16: *
17: * You should have received a copy of the GNU General Public License
18: * version 2 along with this work; if not, write to the Free Software
19: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA
21: *
22: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23: * Clara, CA 95054 or visit www.sun.com if you need additional
24: * information or have any questions.
25: */
26:
27: package com.sun.cldchi.tools.memoryprofiler.jdwp;
28:
29: /**
30: * This class contains JDWP constants and parameters.
31: */
32:
33: class jdwp {
34:
35: /** EventKind constant. */
36: public static final int evVM_INIT = 0x5a;
37: /** EventKind constant. */
38: public static final int evSINGLE_STEP = 0x01;
39: /** EventKind constant. */
40: public static final int evBREAKPOINT = 0x02;
41: /** EventKind constant. */
42: public static final int evEXCEPTION = 0x04;
43: /** EventKind constant. */
44: public static final int evCLASS_PREPARE = 0x08;
45: /** EventKind constant. */
46: public static final int evVM_DEATH = 0x63;
47: /** EventKind constant. */
48: public static final int evVM_METHOD_ENTRY = 0x28;
49:
50: /** TypeTag constant. */
51: public static final int ttCLASS = 0x01;
52: /** TypeTag constant. */
53: public static final int ttINTERFACE = 0x02;
54: /** TypeTag constant. */
55: public static final int ttARRAY = 0x03;
56:
57: /** Tag constant. */
58: public static final int tagARRAY = 91;
59: /** Tag constant. */
60: public static final int tagBYTE = 66;
61: /** Tag constant. */
62: public static final int tagOBJECT = 76;
63: /** Tag constant. */
64: public static final int tagINT = 73;
65: /** Tag constant. */
66: public static final int tagSHORT = 83;
67: /** Tag constant. */
68: public static final int tagVOID = 86;
69: /** Tag constant. */
70: public static final int tagBOOLEAN = 90;
71: /** Tag constant. */
72: public static final int tagLONG = 74;
73: /** Tag constant. */
74: public static final int tagSTRING = 115;
75: /** Tag constant. */
76: public static final int tagCHAR = 67;
77:
78: // VM-dependent sizes
79:
80: /** FieldID size in bytes. */
81: public static int fieldIDSize = 4;
82: /** MethodID size in bytes. */
83: public static int methodIDSize = 4;
84: /** ObjectID size in bytes. */
85: public static int objectIDSize = 4;
86: /** ReferenceTypeID size in bytes. */
87: public static int referenceTypeIDSize = 4;
88: /** FrameID size in bytes. */
89: public static int frameIDSize = 4;
90: }
|