1 /*
2 * Copyright (c) 1998, 2005, Oracle and/or its affiliates. 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. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
50 char SIGC_FLOAT = 'F';
51 String SIG_FLOAT = "F";
52 char SIGC_DOUBLE = 'D';
53 String SIG_DOUBLE = "D";
54 char SIGC_ARRAY = '[';
55 String SIG_ARRAY = "[";
56 char SIGC_CLASS = 'L';
57 String SIG_CLASS = "L";
58 char SIGC_METHOD = '(';
59 String SIG_METHOD = "(";
60 char SIGC_ENDCLASS = ';';
61 String SIG_ENDCLASS = ";";
62 char SIGC_ENDMETHOD = ')';
63 String SIG_ENDMETHOD = ")";
64 char SIGC_PACKAGE = '/';
65 String SIG_PACKAGE = "/";
66
67 /* Class File Constants */
68 int JAVA_MAGIC = 0xcafebabe;
69 int JAVA_MIN_SUPPORTED_VERSION = 45;
70 int JAVA_MAX_SUPPORTED_VERSION = 51;
71 int JAVA_MAX_SUPPORTED_MINOR_VERSION = 0;
72
73 /* Generate class file version for 1.1 by default */
74 int JAVA_DEFAULT_VERSION = 45;
75 int JAVA_DEFAULT_MINOR_VERSION = 3;
76
77 /* Constant table */
78 int CONSTANT_UTF8 = 1;
79 int CONSTANT_UNICODE = 2;
80 int CONSTANT_INTEGER = 3;
81 int CONSTANT_FLOAT = 4;
82 int CONSTANT_LONG = 5;
83 int CONSTANT_DOUBLE = 6;
84 int CONSTANT_CLASS = 7;
85 int CONSTANT_STRING = 8;
86 int CONSTANT_FIELD = 9;
87 int CONSTANT_METHOD = 10;
88 int CONSTANT_INTERFACEMETHOD = 11;
89 int CONSTANT_NAMEANDTYPE = 12;
90
|
1 /*
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. 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. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
50 char SIGC_FLOAT = 'F';
51 String SIG_FLOAT = "F";
52 char SIGC_DOUBLE = 'D';
53 String SIG_DOUBLE = "D";
54 char SIGC_ARRAY = '[';
55 String SIG_ARRAY = "[";
56 char SIGC_CLASS = 'L';
57 String SIG_CLASS = "L";
58 char SIGC_METHOD = '(';
59 String SIG_METHOD = "(";
60 char SIGC_ENDCLASS = ';';
61 String SIG_ENDCLASS = ";";
62 char SIGC_ENDMETHOD = ')';
63 String SIG_ENDMETHOD = ")";
64 char SIGC_PACKAGE = '/';
65 String SIG_PACKAGE = "/";
66
67 /* Class File Constants */
68 int JAVA_MAGIC = 0xcafebabe;
69 int JAVA_MIN_SUPPORTED_VERSION = 45;
70 int JAVA_MAX_SUPPORTED_VERSION = 52;
71 int JAVA_MAX_SUPPORTED_MINOR_VERSION = 0;
72
73 /* Generate class file version for 1.1 by default */
74 int JAVA_DEFAULT_VERSION = 45;
75 int JAVA_DEFAULT_MINOR_VERSION = 3;
76
77 /* Constant table */
78 int CONSTANT_UTF8 = 1;
79 int CONSTANT_UNICODE = 2;
80 int CONSTANT_INTEGER = 3;
81 int CONSTANT_FLOAT = 4;
82 int CONSTANT_LONG = 5;
83 int CONSTANT_DOUBLE = 6;
84 int CONSTANT_CLASS = 7;
85 int CONSTANT_STRING = 8;
86 int CONSTANT_FIELD = 9;
87 int CONSTANT_METHOD = 10;
88 int CONSTANT_INTERFACEMETHOD = 11;
89 int CONSTANT_NAMEANDTYPE = 12;
90
|