01: /*
02:
03: Derby - Class org.apache.derby.iapi.services.classfile.VMDescriptor
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to you under the Apache License, Version 2.0
09: (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 VOID = "V";
27: char C_BOOLEAN = 'Z';
28: String BOOLEAN = "Z";
29: char C_BYTE = 'B';
30: String BYTE = "B";
31: char C_CHAR = 'C';
32: String CHAR = "C";
33: char C_SHORT = 'S';
34: String SHORT = "S";
35: char C_INT = 'I';
36: String INT = "I";
37: char C_LONG = 'J';
38: String LONG = "J";
39: char C_FLOAT = 'F';
40: String FLOAT = "F";
41: char C_DOUBLE = 'D';
42: String DOUBLE = "D";
43: char C_ARRAY = '[';
44: String ARRAY = "[";
45: char C_CLASS = 'L';
46: String CLASS = "L";
47: char C_METHOD = '(';
48: String METHOD = "(";
49: char C_ENDCLASS = ';';
50: String ENDCLASS = ";";
51: char C_ENDMETHOD = ')';
52: String ENDMETHOD = ")";
53: char C_PACKAGE = '/';
54: String 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: /** Magic number for class file format - page 84 */
73: int JAVA_CLASS_FORMAT_MAGIC = 0xCAFEBABE;
74:
75: /** Major and minor versions numbers - 1.0.2 release - page 85 */
76: int JAVA_CLASS_FORMAT_MAJOR_VERSION = 45;
77: int JAVA_CLASS_FORMAT_MINOR_VERSION = 3;
78: }
|