KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > iapi > services > classfile > VMDescriptor


1 /*
2
3    Derby - Class org.apache.derby.iapi.services.classfile.VMDescriptor
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to you under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20  */

21
22 package org.apache.derby.iapi.services.classfile;
23
24 public interface VMDescriptor {
25     char C_VOID = 'V';
26     String JavaDoc VOID = "V";
27     char C_BOOLEAN = 'Z';
28     String JavaDoc BOOLEAN = "Z";
29     char C_BYTE = 'B';
30     String JavaDoc BYTE = "B";
31     char C_CHAR = 'C';
32     String JavaDoc CHAR = "C";
33     char C_SHORT = 'S';
34     String JavaDoc SHORT = "S";
35     char C_INT = 'I';
36     String JavaDoc INT = "I";
37     char C_LONG = 'J';
38     String JavaDoc LONG = "J";
39     char C_FLOAT = 'F';
40     String JavaDoc FLOAT = "F";
41     char C_DOUBLE = 'D';
42     String JavaDoc DOUBLE = "D";
43     char C_ARRAY = '[';
44     String JavaDoc ARRAY = "[";
45     char C_CLASS = 'L';
46     String JavaDoc CLASS = "L";
47     char C_METHOD = '(';
48     String JavaDoc METHOD = "(";
49     char C_ENDCLASS = ';';
50     String JavaDoc ENDCLASS = ";";
51     char C_ENDMETHOD = ')';
52     String JavaDoc ENDMETHOD = ")";
53     char C_PACKAGE = '/';
54     String JavaDoc PACKAGE = "/";
55
56     /*
57     ** Constants for the constant pool tags.
58     */

59         
60     int CONSTANT_Class = 7;
61     int CONSTANT_Fieldref = 9;
62     int CONSTANT_Methodref = 10;
63     int CONSTANT_InterfaceMethodref = 11;
64     int CONSTANT_String = 8;
65     int CONSTANT_Integer = 3;
66     int CONSTANT_Float = 4;
67     int CONSTANT_Long = 5;
68     int CONSTANT_Double = 6;
69     int CONSTANT_NameAndType = 12;
70     int CONSTANT_Utf8 = 1;
71
72
73     /** Magic number for class file format - page 84 */
74     int JAVA_CLASS_FORMAT_MAGIC = 0xCAFEBABE;
75
76     /** Major and minor versions numbers - 1.0.2 release - page 85 */
77     int JAVA_CLASS_FORMAT_MAJOR_VERSION = 45;
78     int JAVA_CLASS_FORMAT_MINOR_VERSION = 3;
79 }
80
Popular Tags