src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/InstructionConst.java
author joehw
Wed, 26 Jun 2019 05:49:59 +0000
changeset 55496 8e0ae3830fca
parent 47216 71c04702a3d5
permissions -rw-r--r--
8224157: BCEL: update to version 6.3.1 Reviewed-by: dfuchs, lancea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46174
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     1
/*
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     2
 * reserved comment block
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     3
 * DO NOT REMOVE OR ALTER!
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     4
 */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     5
/*
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     6
 * Licensed to the Apache Software Foundation (ASF) under one or more
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     7
 * contributor license agreements.  See the NOTICE file distributed with
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     8
 * this work for additional information regarding copyright ownership.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
     9
 * The ASF licenses this file to You under the Apache License, Version 2.0
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    10
 * (the "License"); you may not use this file except in compliance with
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    11
 * the License.  You may obtain a copy of the License at
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    12
 *
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    13
 *      http://www.apache.org/licenses/LICENSE-2.0
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    14
 *
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    15
 * Unless required by applicable law or agreed to in writing, software
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    16
 * distributed under the License is distributed on an "AS IS" BASIS,
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    18
 * See the License for the specific language governing permissions and
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    19
 * limitations under the License.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    20
 */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    21
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    22
package com.sun.org.apache.bcel.internal.generic;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    23
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    24
import com.sun.org.apache.bcel.internal.Const;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    25
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    26
/**
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    27
 * This interface contains shareable instruction objects.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    28
 *
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    29
 * In order to save memory you can use some instructions multiply,
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    30
 * since they have an immutable state and are directly derived from
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    31
 * Instruction.  I.e. they have no instance fields that could be
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    32
 * changed. Since some of these instructions like ICONST_0 occur
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    33
 * very frequently this can save a lot of time and space. This
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    34
 * feature is an adaptation of the FlyWeight design pattern, we
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    35
 * just use an array instead of a factory.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    36
 *
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    37
 * The Instructions can also accessed directly under their names, so
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    38
 * it's possible to write il.append(Instruction.ICONST_0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    39
 *
55496
8e0ae3830fca 8224157: BCEL: update to version 6.3.1
joehw
parents: 47216
diff changeset
    40
 * @version $Id: InstructionConstants.java 1695415 2015-08-12 01:02:39Z chas $
46174
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    41
 */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    42
public final class InstructionConst {
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    43
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    44
    /**
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    45
     * Predefined instruction objects
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    46
     */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    47
    /*
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    48
     * NOTE these are not currently immutable, because Instruction
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    49
     * has mutable protected fields opcode and length.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    50
     */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    51
    public static final Instruction NOP = new NOP();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    52
    public static final Instruction ACONST_NULL = new ACONST_NULL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    53
    public static final Instruction ICONST_M1 = new ICONST(-1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    54
    public static final Instruction ICONST_0 = new ICONST(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    55
    public static final Instruction ICONST_1 = new ICONST(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    56
    public static final Instruction ICONST_2 = new ICONST(2);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    57
    public static final Instruction ICONST_3 = new ICONST(3);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    58
    public static final Instruction ICONST_4 = new ICONST(4);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    59
    public static final Instruction ICONST_5 = new ICONST(5);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    60
    public static final Instruction LCONST_0 = new LCONST(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    61
    public static final Instruction LCONST_1 = new LCONST(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    62
    public static final Instruction FCONST_0 = new FCONST(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    63
    public static final Instruction FCONST_1 = new FCONST(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    64
    public static final Instruction FCONST_2 = new FCONST(2);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    65
    public static final Instruction DCONST_0 = new DCONST(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    66
    public static final Instruction DCONST_1 = new DCONST(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    67
    public static final ArrayInstruction IALOAD = new IALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    68
    public static final ArrayInstruction LALOAD = new LALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    69
    public static final ArrayInstruction FALOAD = new FALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    70
    public static final ArrayInstruction DALOAD = new DALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    71
    public static final ArrayInstruction AALOAD = new AALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    72
    public static final ArrayInstruction BALOAD = new BALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    73
    public static final ArrayInstruction CALOAD = new CALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    74
    public static final ArrayInstruction SALOAD = new SALOAD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    75
    public static final ArrayInstruction IASTORE = new IASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    76
    public static final ArrayInstruction LASTORE = new LASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    77
    public static final ArrayInstruction FASTORE = new FASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    78
    public static final ArrayInstruction DASTORE = new DASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    79
    public static final ArrayInstruction AASTORE = new AASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    80
    public static final ArrayInstruction BASTORE = new BASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    81
    public static final ArrayInstruction CASTORE = new CASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    82
    public static final ArrayInstruction SASTORE = new SASTORE();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    83
    public static final StackInstruction POP = new POP();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    84
    public static final StackInstruction POP2 = new POP2();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    85
    public static final StackInstruction DUP = new DUP();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    86
    public static final StackInstruction DUP_X1 = new DUP_X1();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    87
    public static final StackInstruction DUP_X2 = new DUP_X2();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    88
    public static final StackInstruction DUP2 = new DUP2();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    89
    public static final StackInstruction DUP2_X1 = new DUP2_X1();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    90
    public static final StackInstruction DUP2_X2 = new DUP2_X2();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    91
    public static final StackInstruction SWAP = new SWAP();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    92
    public static final ArithmeticInstruction IADD = new IADD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    93
    public static final ArithmeticInstruction LADD = new LADD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    94
    public static final ArithmeticInstruction FADD = new FADD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    95
    public static final ArithmeticInstruction DADD = new DADD();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    96
    public static final ArithmeticInstruction ISUB = new ISUB();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    97
    public static final ArithmeticInstruction LSUB = new LSUB();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    98
    public static final ArithmeticInstruction FSUB = new FSUB();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
    99
    public static final ArithmeticInstruction DSUB = new DSUB();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   100
    public static final ArithmeticInstruction IMUL = new IMUL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   101
    public static final ArithmeticInstruction LMUL = new LMUL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   102
    public static final ArithmeticInstruction FMUL = new FMUL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   103
    public static final ArithmeticInstruction DMUL = new DMUL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   104
    public static final ArithmeticInstruction IDIV = new IDIV();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   105
    public static final ArithmeticInstruction LDIV = new LDIV();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   106
    public static final ArithmeticInstruction FDIV = new FDIV();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   107
    public static final ArithmeticInstruction DDIV = new DDIV();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   108
    public static final ArithmeticInstruction IREM = new IREM();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   109
    public static final ArithmeticInstruction LREM = new LREM();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   110
    public static final ArithmeticInstruction FREM = new FREM();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   111
    public static final ArithmeticInstruction DREM = new DREM();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   112
    public static final ArithmeticInstruction INEG = new INEG();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   113
    public static final ArithmeticInstruction LNEG = new LNEG();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   114
    public static final ArithmeticInstruction FNEG = new FNEG();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   115
    public static final ArithmeticInstruction DNEG = new DNEG();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   116
    public static final ArithmeticInstruction ISHL = new ISHL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   117
    public static final ArithmeticInstruction LSHL = new LSHL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   118
    public static final ArithmeticInstruction ISHR = new ISHR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   119
    public static final ArithmeticInstruction LSHR = new LSHR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   120
    public static final ArithmeticInstruction IUSHR = new IUSHR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   121
    public static final ArithmeticInstruction LUSHR = new LUSHR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   122
    public static final ArithmeticInstruction IAND = new IAND();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   123
    public static final ArithmeticInstruction LAND = new LAND();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   124
    public static final ArithmeticInstruction IOR = new IOR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   125
    public static final ArithmeticInstruction LOR = new LOR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   126
    public static final ArithmeticInstruction IXOR = new IXOR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   127
    public static final ArithmeticInstruction LXOR = new LXOR();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   128
    public static final ConversionInstruction I2L = new I2L();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   129
    public static final ConversionInstruction I2F = new I2F();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   130
    public static final ConversionInstruction I2D = new I2D();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   131
    public static final ConversionInstruction L2I = new L2I();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   132
    public static final ConversionInstruction L2F = new L2F();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   133
    public static final ConversionInstruction L2D = new L2D();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   134
    public static final ConversionInstruction F2I = new F2I();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   135
    public static final ConversionInstruction F2L = new F2L();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   136
    public static final ConversionInstruction F2D = new F2D();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   137
    public static final ConversionInstruction D2I = new D2I();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   138
    public static final ConversionInstruction D2L = new D2L();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   139
    public static final ConversionInstruction D2F = new D2F();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   140
    public static final ConversionInstruction I2B = new I2B();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   141
    public static final ConversionInstruction I2C = new I2C();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   142
    public static final ConversionInstruction I2S = new I2S();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   143
    public static final Instruction LCMP = new LCMP();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   144
    public static final Instruction FCMPL = new FCMPL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   145
    public static final Instruction FCMPG = new FCMPG();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   146
    public static final Instruction DCMPL = new DCMPL();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   147
    public static final Instruction DCMPG = new DCMPG();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   148
    public static final ReturnInstruction IRETURN = new IRETURN();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   149
    public static final ReturnInstruction LRETURN = new LRETURN();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   150
    public static final ReturnInstruction FRETURN = new FRETURN();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   151
    public static final ReturnInstruction DRETURN = new DRETURN();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   152
    public static final ReturnInstruction ARETURN = new ARETURN();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   153
    public static final ReturnInstruction RETURN = new RETURN();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   154
    public static final Instruction ARRAYLENGTH = new ARRAYLENGTH();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   155
    public static final Instruction ATHROW = new ATHROW();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   156
    public static final Instruction MONITORENTER = new MONITORENTER();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   157
    public static final Instruction MONITOREXIT = new MONITOREXIT();
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   158
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   159
    /** You can use these constants in multiple places safely, if you can guarantee
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   160
     * that you will never alter their internal values, e.g. call setIndex().
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   161
     */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   162
    public static final LocalVariableInstruction THIS = new ALOAD(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   163
    public static final LocalVariableInstruction ALOAD_0 = THIS;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   164
    public static final LocalVariableInstruction ALOAD_1 = new ALOAD(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   165
    public static final LocalVariableInstruction ALOAD_2 = new ALOAD(2);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   166
    public static final LocalVariableInstruction ILOAD_0 = new ILOAD(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   167
    public static final LocalVariableInstruction ILOAD_1 = new ILOAD(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   168
    public static final LocalVariableInstruction ILOAD_2 = new ILOAD(2);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   169
    public static final LocalVariableInstruction ASTORE_0 = new ASTORE(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   170
    public static final LocalVariableInstruction ASTORE_1 = new ASTORE(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   171
    public static final LocalVariableInstruction ASTORE_2 = new ASTORE(2);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   172
    public static final LocalVariableInstruction ISTORE_0 = new ISTORE(0);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   173
    public static final LocalVariableInstruction ISTORE_1 = new ISTORE(1);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   174
    public static final LocalVariableInstruction ISTORE_2 = new ISTORE(2);
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   175
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   176
    /** Get object via its opcode, for immutable instructions like
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   177
     * branch instructions entries are set to null.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   178
     */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   179
    private static final Instruction[] INSTRUCTIONS = new Instruction[256];
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   180
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   181
    static {
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   182
        INSTRUCTIONS[Const.NOP] = NOP;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   183
        INSTRUCTIONS[Const.ACONST_NULL] = ACONST_NULL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   184
        INSTRUCTIONS[Const.ICONST_M1] = ICONST_M1;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   185
        INSTRUCTIONS[Const.ICONST_0] = ICONST_0;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   186
        INSTRUCTIONS[Const.ICONST_1] = ICONST_1;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   187
        INSTRUCTIONS[Const.ICONST_2] = ICONST_2;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   188
        INSTRUCTIONS[Const.ICONST_3] = ICONST_3;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   189
        INSTRUCTIONS[Const.ICONST_4] = ICONST_4;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   190
        INSTRUCTIONS[Const.ICONST_5] = ICONST_5;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   191
        INSTRUCTIONS[Const.LCONST_0] = LCONST_0;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   192
        INSTRUCTIONS[Const.LCONST_1] = LCONST_1;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   193
        INSTRUCTIONS[Const.FCONST_0] = FCONST_0;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   194
        INSTRUCTIONS[Const.FCONST_1] = FCONST_1;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   195
        INSTRUCTIONS[Const.FCONST_2] = FCONST_2;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   196
        INSTRUCTIONS[Const.DCONST_0] = DCONST_0;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   197
        INSTRUCTIONS[Const.DCONST_1] = DCONST_1;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   198
        INSTRUCTIONS[Const.IALOAD] = IALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   199
        INSTRUCTIONS[Const.LALOAD] = LALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   200
        INSTRUCTIONS[Const.FALOAD] = FALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   201
        INSTRUCTIONS[Const.DALOAD] = DALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   202
        INSTRUCTIONS[Const.AALOAD] = AALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   203
        INSTRUCTIONS[Const.BALOAD] = BALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   204
        INSTRUCTIONS[Const.CALOAD] = CALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   205
        INSTRUCTIONS[Const.SALOAD] = SALOAD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   206
        INSTRUCTIONS[Const.IASTORE] = IASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   207
        INSTRUCTIONS[Const.LASTORE] = LASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   208
        INSTRUCTIONS[Const.FASTORE] = FASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   209
        INSTRUCTIONS[Const.DASTORE] = DASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   210
        INSTRUCTIONS[Const.AASTORE] = AASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   211
        INSTRUCTIONS[Const.BASTORE] = BASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   212
        INSTRUCTIONS[Const.CASTORE] = CASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   213
        INSTRUCTIONS[Const.SASTORE] = SASTORE;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   214
        INSTRUCTIONS[Const.POP] = POP;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   215
        INSTRUCTIONS[Const.POP2] = POP2;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   216
        INSTRUCTIONS[Const.DUP] = DUP;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   217
        INSTRUCTIONS[Const.DUP_X1] = DUP_X1;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   218
        INSTRUCTIONS[Const.DUP_X2] = DUP_X2;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   219
        INSTRUCTIONS[Const.DUP2] = DUP2;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   220
        INSTRUCTIONS[Const.DUP2_X1] = DUP2_X1;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   221
        INSTRUCTIONS[Const.DUP2_X2] = DUP2_X2;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   222
        INSTRUCTIONS[Const.SWAP] = SWAP;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   223
        INSTRUCTIONS[Const.IADD] = IADD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   224
        INSTRUCTIONS[Const.LADD] = LADD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   225
        INSTRUCTIONS[Const.FADD] = FADD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   226
        INSTRUCTIONS[Const.DADD] = DADD;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   227
        INSTRUCTIONS[Const.ISUB] = ISUB;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   228
        INSTRUCTIONS[Const.LSUB] = LSUB;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   229
        INSTRUCTIONS[Const.FSUB] = FSUB;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   230
        INSTRUCTIONS[Const.DSUB] = DSUB;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   231
        INSTRUCTIONS[Const.IMUL] = IMUL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   232
        INSTRUCTIONS[Const.LMUL] = LMUL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   233
        INSTRUCTIONS[Const.FMUL] = FMUL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   234
        INSTRUCTIONS[Const.DMUL] = DMUL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   235
        INSTRUCTIONS[Const.IDIV] = IDIV;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   236
        INSTRUCTIONS[Const.LDIV] = LDIV;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   237
        INSTRUCTIONS[Const.FDIV] = FDIV;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   238
        INSTRUCTIONS[Const.DDIV] = DDIV;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   239
        INSTRUCTIONS[Const.IREM] = IREM;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   240
        INSTRUCTIONS[Const.LREM] = LREM;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   241
        INSTRUCTIONS[Const.FREM] = FREM;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   242
        INSTRUCTIONS[Const.DREM] = DREM;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   243
        INSTRUCTIONS[Const.INEG] = INEG;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   244
        INSTRUCTIONS[Const.LNEG] = LNEG;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   245
        INSTRUCTIONS[Const.FNEG] = FNEG;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   246
        INSTRUCTIONS[Const.DNEG] = DNEG;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   247
        INSTRUCTIONS[Const.ISHL] = ISHL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   248
        INSTRUCTIONS[Const.LSHL] = LSHL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   249
        INSTRUCTIONS[Const.ISHR] = ISHR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   250
        INSTRUCTIONS[Const.LSHR] = LSHR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   251
        INSTRUCTIONS[Const.IUSHR] = IUSHR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   252
        INSTRUCTIONS[Const.LUSHR] = LUSHR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   253
        INSTRUCTIONS[Const.IAND] = IAND;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   254
        INSTRUCTIONS[Const.LAND] = LAND;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   255
        INSTRUCTIONS[Const.IOR] = IOR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   256
        INSTRUCTIONS[Const.LOR] = LOR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   257
        INSTRUCTIONS[Const.IXOR] = IXOR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   258
        INSTRUCTIONS[Const.LXOR] = LXOR;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   259
        INSTRUCTIONS[Const.I2L] = I2L;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   260
        INSTRUCTIONS[Const.I2F] = I2F;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   261
        INSTRUCTIONS[Const.I2D] = I2D;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   262
        INSTRUCTIONS[Const.L2I] = L2I;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   263
        INSTRUCTIONS[Const.L2F] = L2F;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   264
        INSTRUCTIONS[Const.L2D] = L2D;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   265
        INSTRUCTIONS[Const.F2I] = F2I;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   266
        INSTRUCTIONS[Const.F2L] = F2L;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   267
        INSTRUCTIONS[Const.F2D] = F2D;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   268
        INSTRUCTIONS[Const.D2I] = D2I;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   269
        INSTRUCTIONS[Const.D2L] = D2L;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   270
        INSTRUCTIONS[Const.D2F] = D2F;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   271
        INSTRUCTIONS[Const.I2B] = I2B;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   272
        INSTRUCTIONS[Const.I2C] = I2C;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   273
        INSTRUCTIONS[Const.I2S] = I2S;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   274
        INSTRUCTIONS[Const.LCMP] = LCMP;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   275
        INSTRUCTIONS[Const.FCMPL] = FCMPL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   276
        INSTRUCTIONS[Const.FCMPG] = FCMPG;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   277
        INSTRUCTIONS[Const.DCMPL] = DCMPL;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   278
        INSTRUCTIONS[Const.DCMPG] = DCMPG;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   279
        INSTRUCTIONS[Const.IRETURN] = IRETURN;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   280
        INSTRUCTIONS[Const.LRETURN] = LRETURN;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   281
        INSTRUCTIONS[Const.FRETURN] = FRETURN;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   282
        INSTRUCTIONS[Const.DRETURN] = DRETURN;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   283
        INSTRUCTIONS[Const.ARETURN] = ARETURN;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   284
        INSTRUCTIONS[Const.RETURN] = RETURN;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   285
        INSTRUCTIONS[Const.ARRAYLENGTH] = ARRAYLENGTH;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   286
        INSTRUCTIONS[Const.ATHROW] = ATHROW;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   287
        INSTRUCTIONS[Const.MONITORENTER] = MONITORENTER;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   288
        INSTRUCTIONS[Const.MONITOREXIT] = MONITOREXIT;
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   289
    }
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   290
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   291
    private InstructionConst() { } // non-instantiable
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   292
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   293
    /**
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   294
     * Gets the Instruction.
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   295
     * @param index the index, e.g. {@link Const#RETURN}
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   296
     * @return the entry from the private INSTRUCTIONS table
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   297
     */
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   298
    public static Instruction getInstruction(final int index) {
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   299
        return INSTRUCTIONS[index];
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   300
    }
5611d2529b49 8163121: BCEL: update to the latest 6.0 release
joehw
parents:
diff changeset
   301
}