0
|
1 /*
|
|
2 * Copyright 1997-1999 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 *
|
|
5 * This code is free software; you can redistribute it and/or modify it
|
|
6 * under the terms of the GNU General Public License version 2 only, as
|
|
7 * published by the Free Software Foundation.
|
|
8 *
|
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
|
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
12 * version 2 for more details (a copy is included in the LICENSE file that
|
|
13 * accompanied this code).
|
|
14 *
|
|
15 * You should have received a copy of the GNU General Public License version
|
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
|
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
18 *
|
|
19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
20 * CA 95054 USA or visit www.sun.com if you need additional information or
|
|
21 * have any questions.
|
|
22 *
|
|
23 */
|
|
24
|
|
25 # include "incls/_precompiled.incl"
|
|
26 # include "incls/_constantTag.cpp.incl"
|
|
27
|
|
28 #ifndef PRODUCT
|
|
29
|
|
30 void constantTag::print_on(outputStream* st) const {
|
|
31 switch (_tag) {
|
|
32 case JVM_CONSTANT_Class :
|
|
33 st->print("Class");
|
|
34 break;
|
|
35 case JVM_CONSTANT_Fieldref :
|
|
36 st->print("Field");
|
|
37 break;
|
|
38 case JVM_CONSTANT_Methodref :
|
|
39 st->print("Method");
|
|
40 break;
|
|
41 case JVM_CONSTANT_InterfaceMethodref :
|
|
42 st->print("InterfaceMethod");
|
|
43 break;
|
|
44 case JVM_CONSTANT_String :
|
|
45 st->print("String");
|
|
46 break;
|
|
47 case JVM_CONSTANT_Integer :
|
|
48 st->print("Integer");
|
|
49 break;
|
|
50 case JVM_CONSTANT_Float :
|
|
51 st->print("Float");
|
|
52 break;
|
|
53 case JVM_CONSTANT_Long :
|
|
54 st->print("Long");
|
|
55 break;
|
|
56 case JVM_CONSTANT_Double :
|
|
57 st->print("Double");
|
|
58 break;
|
|
59 case JVM_CONSTANT_NameAndType :
|
|
60 st->print("NameAndType");
|
|
61 break;
|
|
62 case JVM_CONSTANT_Utf8 :
|
|
63 st->print("Utf8");
|
|
64 break;
|
|
65 case JVM_CONSTANT_UnresolvedClass :
|
|
66 st->print("Unresolved class");
|
|
67 break;
|
|
68 case JVM_CONSTANT_ClassIndex :
|
|
69 st->print("Unresolved class index");
|
|
70 break;
|
|
71 case JVM_CONSTANT_UnresolvedString :
|
|
72 st->print("Unresolved string");
|
|
73 break;
|
|
74 case JVM_CONSTANT_StringIndex :
|
|
75 st->print("Unresolved string index");
|
|
76 break;
|
|
77 default:
|
|
78 ShouldNotReachHere();
|
|
79 break;
|
|
80 }
|
|
81 }
|
|
82
|
|
83 #endif // PRODUCT
|