--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.iapi.services.classfile.VMDescriptor\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.iapi.services.classfile;\r
+\r
+public interface VMDescriptor {\r
+ char C_VOID = 'V';\r
+ String VOID = "V";\r
+ char C_BOOLEAN = 'Z';\r
+ String BOOLEAN = "Z";\r
+ char C_BYTE = 'B';\r
+ String BYTE = "B";\r
+ char C_CHAR = 'C';\r
+ String CHAR = "C";\r
+ char C_SHORT = 'S';\r
+ String SHORT = "S";\r
+ char C_INT = 'I';\r
+ String INT = "I";\r
+ char C_LONG = 'J';\r
+ String LONG = "J";\r
+ char C_FLOAT = 'F';\r
+ String FLOAT = "F";\r
+ char C_DOUBLE = 'D';\r
+ String DOUBLE = "D";\r
+ char C_ARRAY = '[';\r
+ String ARRAY = "[";\r
+ char C_CLASS = 'L';\r
+ String CLASS = "L";\r
+ char C_METHOD = '(';\r
+ String METHOD = "(";\r
+ char C_ENDCLASS = ';';\r
+ String ENDCLASS = ";";\r
+ char C_ENDMETHOD = ')';\r
+ String ENDMETHOD = ")";\r
+ char C_PACKAGE = '/';\r
+ String PACKAGE = "/";\r
+\r
+ /*\r
+ ** Constants for the constant pool tags.\r
+ */\r
+ \r
+ int CONSTANT_Class = 7;\r
+ int CONSTANT_Fieldref = 9;\r
+ int CONSTANT_Methodref = 10;\r
+ int CONSTANT_InterfaceMethodref = 11;\r
+ int CONSTANT_String = 8;\r
+ int CONSTANT_Integer = 3;\r
+ int CONSTANT_Float = 4;\r
+ int CONSTANT_Long = 5;\r
+ int CONSTANT_Double = 6;\r
+ int CONSTANT_NameAndType = 12;\r
+ int CONSTANT_Utf8 = 1;\r
+\r
+\r
+ /** Magic number for class file format - page 84 */\r
+ int JAVA_CLASS_FORMAT_MAGIC = 0xCAFEBABE;\r
+\r
+ /** Major and minor versions numbers - 1.0.2 release - page 85 */\r
+ int JAVA_CLASS_FORMAT_MAJOR_VERSION = 45;\r
+ int JAVA_CLASS_FORMAT_MINOR_VERSION = 3;\r
+}\r