/*******************************************************************************
* Copyright (c) 2002,2006 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package x10.sncode;
/**
* This interface defines .sn file constants. The names and
* values are taken directly from the JVM spec.
*/
public interface SnConstants {
public static final int MAGIC = 0x10decaff;
public static final int MAJOR = 1;
public static final int MINOR = 0;
/** Size in bytes of a constant pool index. */
public static final int CP_INDEX_SIZE = 4;
/** Size in bytes of a length field in the class file. */
public static final int LENGTH_SIZE = 4;
public static final byte CONSTANT_Null = 0;
public static final byte CONSTANT_Utf8 = 1;
public static final byte CONSTANT_ByteArray = 2;
public static final byte CONSTANT_Integer = 3;
public static final byte CONSTANT_Float = 4;
public static final byte CONSTANT_Long = 5;
public static final byte CONSTANT_Double = 6;
public static final byte CONSTANT_Class = 7;
public static final byte CONSTANT_String = 8;
public static final byte CONSTANT_FieldRef = 9;
public static final byte CONSTANT_MethodRef = 10;
public static final byte CONSTANT_NameAndType = 12;
public static final byte CONSTANT_Constraint = 13;
public static final byte CONSTANT_Type = 14;
public static final byte CONSTANT_Array = 15;
public static final byte CONSTANT_Boolean = 16;
}