OSDN Git Service

Basic facility to read/write bytecode.
[android-x86/dalvik.git] / dx / src / com / android / dx / io / IndexType.java
1 /*
2  * Copyright (C) 2011 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.io;
18
19 /**
20  * The various types that an index in a Dalvik instruction might refer to.
21  */
22 public enum IndexType {
23     /** "It depends." Used for {@code throw-verification-error}. */
24     VARIES,
25
26     /** type reference index */
27     TYPE_REF,
28
29     /** string reference index */
30     STRING_REF,
31
32     /** method reference index */
33     METHOD_REF,
34
35     /** field reference index */
36     FIELD_REF,
37
38     /** inline method index (for inline linked method invocations) */
39     INLINE_METHOD,
40
41     /** direct vtable offset (for static linked method invocations) */
42     VTABLE_OFFSET,
43
44     /** direct field offset (for static linked field accesses) */
45     FIELD_OFFSET;
46 }