1 /* 2 * Copyright (C) 2007 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.dx.cf.cst; 18 19 /** 20 * Tags for constant pool constants. 21 */ 22 public interface ConstantTags { 23 /** tag for a {@code CONSTANT_Utf8_info} */ 24 int CONSTANT_Utf8 = 1; 25 26 /** tag for a {@code CONSTANT_Integer_info} */ 27 int CONSTANT_Integer = 3; 28 29 /** tag for a {@code CONSTANT_Float_info} */ 30 int CONSTANT_Float = 4; 31 32 /** tag for a {@code CONSTANT_Long_info} */ 33 int CONSTANT_Long = 5; 34 35 /** tag for a {@code CONSTANT_Double_info} */ 36 int CONSTANT_Double = 6; 37 38 /** tag for a {@code CONSTANT_Class_info} */ 39 int CONSTANT_Class = 7; 40 41 /** tag for a {@code CONSTANT_String_info} */ 42 int CONSTANT_String = 8; 43 44 /** tag for a {@code CONSTANT_Fieldref_info} */ 45 int CONSTANT_Fieldref = 9; 46 47 /** tag for a {@code CONSTANT_Methodref_info} */ 48 int CONSTANT_Methodref = 10; 49 50 /** tag for a {@code CONSTANT_InterfaceMethodref_info} */ 51 int CONSTANT_InterfaceMethodref = 11; 52 53 /** tag for a {@code CONSTANT_NameAndType_info} */ 54 int CONSTANT_NameAndType = 12; 55 56 /** tag for a {@code CONSTANT_MethodHandle} */ 57 int CONSTANT_MethodHandle = 15; 58 59 /** tag for a {@code CONSTANT_MethodType} */ 60 int CONSTANT_MethodType = 16; 61 62 /** tag for a {@code CONSTANT_InvokeDynamic} */ 63 int CONSTANT_InvokeDynamic = 18; 64 } 65