Package org.apache.bcel.generic
Interface InstructionConstants
-
- All Known Implementing Classes:
InstructionFactory,PUSH
@Deprecated public interface InstructionConstantsDeprecated.(since 6.0) Do not use. UseInstructionConstinstead.Contains shareable instruction objects.In order to save memory you can use some instructions multiply, since they have an immutable state and are directly derived from Instruction. I.e. they have no instance fields that could be changed. Since some of these instructions like ICONST_0 occur very frequently this can save a lot of time and space. This feature is an adaptation of the FlyWeight design pattern, we just use an array instead of a factory.
The Instructions can also accessed directly under their names, so it's possible to write il.append(Instruction.ICONST_0);
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInstructionConstants.ClinitDeprecated.Consider private.
-
Field Summary
-
-
-
Field Detail
-
NOP
@Deprecated static final Instruction NOP
Deprecated.UseInstructionConst.NOP.NOP instruction.
-
ACONST_NULL
@Deprecated static final Instruction ACONST_NULL
Deprecated.ACONST_NULL instruction.
-
ICONST_M1
@Deprecated static final Instruction ICONST_M1
Deprecated.ICONST_M1 instruction.
-
ICONST_0
@Deprecated static final Instruction ICONST_0
Deprecated.ICONST_0 instruction.
-
ICONST_1
@Deprecated static final Instruction ICONST_1
Deprecated.ICONST_1 instruction.
-
ICONST_2
@Deprecated static final Instruction ICONST_2
Deprecated.ICONST_2 instruction.
-
ICONST_3
@Deprecated static final Instruction ICONST_3
Deprecated.ICONST_3 instruction.
-
ICONST_4
@Deprecated static final Instruction ICONST_4
Deprecated.ICONST_4 instruction.
-
ICONST_5
@Deprecated static final Instruction ICONST_5
Deprecated.ICONST_5 instruction.
-
LCONST_0
@Deprecated static final Instruction LCONST_0
Deprecated.LCONST_0 instruction.
-
LCONST_1
@Deprecated static final Instruction LCONST_1
Deprecated.LCONST_1 instruction.
-
FCONST_0
@Deprecated static final Instruction FCONST_0
Deprecated.FCONST_0 instruction.
-
FCONST_1
@Deprecated static final Instruction FCONST_1
Deprecated.FCONST_1 instruction.
-
FCONST_2
@Deprecated static final Instruction FCONST_2
Deprecated.FCONST_2 instruction.
-
DCONST_0
@Deprecated static final Instruction DCONST_0
Deprecated.DCONST_0 instruction.
-
DCONST_1
@Deprecated static final Instruction DCONST_1
Deprecated.DCONST_1 instruction.
-
IALOAD
@Deprecated static final ArrayInstruction IALOAD
Deprecated.IALOAD instruction.
-
LALOAD
@Deprecated static final ArrayInstruction LALOAD
Deprecated.LALOAD instruction.
-
FALOAD
@Deprecated static final ArrayInstruction FALOAD
Deprecated.FALOAD instruction.
-
DALOAD
@Deprecated static final ArrayInstruction DALOAD
Deprecated.DALOAD instruction.
-
AALOAD
@Deprecated static final ArrayInstruction AALOAD
Deprecated.AALOAD instruction.
-
BALOAD
@Deprecated static final ArrayInstruction BALOAD
Deprecated.BALOAD instruction.
-
CALOAD
@Deprecated static final ArrayInstruction CALOAD
Deprecated.CALOAD instruction.
-
SALOAD
@Deprecated static final ArrayInstruction SALOAD
Deprecated.SALOAD instruction.
-
IASTORE
@Deprecated static final ArrayInstruction IASTORE
Deprecated.IASTORE instruction.
-
LASTORE
@Deprecated static final ArrayInstruction LASTORE
Deprecated.LASTORE instruction.
-
FASTORE
@Deprecated static final ArrayInstruction FASTORE
Deprecated.FASTORE instruction.
-
DASTORE
@Deprecated static final ArrayInstruction DASTORE
Deprecated.DASTORE instruction.
-
AASTORE
@Deprecated static final ArrayInstruction AASTORE
Deprecated.AASTORE instruction.
-
BASTORE
@Deprecated static final ArrayInstruction BASTORE
Deprecated.BASTORE instruction.
-
CASTORE
@Deprecated static final ArrayInstruction CASTORE
Deprecated.CASTORE instruction.
-
SASTORE
@Deprecated static final ArrayInstruction SASTORE
Deprecated.SASTORE instruction.
-
POP
@Deprecated static final StackInstruction POP
Deprecated.UseInstructionConst.POP.POP instruction.
-
POP2
@Deprecated static final StackInstruction POP2
Deprecated.POP2 instruction.
-
DUP
@Deprecated static final StackInstruction DUP
Deprecated.UseInstructionConst.DUP.DUP instruction.
-
DUP_X1
@Deprecated static final StackInstruction DUP_X1
Deprecated.DUP_X1 instruction.
-
DUP_X2
@Deprecated static final StackInstruction DUP_X2
Deprecated.DUP_X2 instruction.
-
DUP2
@Deprecated static final StackInstruction DUP2
Deprecated.DUP2 instruction.
-
DUP2_X1
@Deprecated static final StackInstruction DUP2_X1
Deprecated.DUP2_X1 instruction.
-
DUP2_X2
@Deprecated static final StackInstruction DUP2_X2
Deprecated.DUP2_X2 instruction.
-
SWAP
@Deprecated static final StackInstruction SWAP
Deprecated.SWAP instruction.
-
IADD
@Deprecated static final ArithmeticInstruction IADD
Deprecated.IADD instruction.
-
LADD
@Deprecated static final ArithmeticInstruction LADD
Deprecated.LADD instruction.
-
FADD
@Deprecated static final ArithmeticInstruction FADD
Deprecated.FADD instruction.
-
DADD
@Deprecated static final ArithmeticInstruction DADD
Deprecated.DADD instruction.
-
ISUB
@Deprecated static final ArithmeticInstruction ISUB
Deprecated.ISUB instruction.
-
LSUB
@Deprecated static final ArithmeticInstruction LSUB
Deprecated.LSUB instruction.
-
FSUB
@Deprecated static final ArithmeticInstruction FSUB
Deprecated.FSUB instruction.
-
DSUB
@Deprecated static final ArithmeticInstruction DSUB
Deprecated.DSUB instruction.
-
IMUL
@Deprecated static final ArithmeticInstruction IMUL
Deprecated.IMUL instruction.
-
LMUL
@Deprecated static final ArithmeticInstruction LMUL
Deprecated.LMUL instruction.
-
FMUL
@Deprecated static final ArithmeticInstruction FMUL
Deprecated.FMUL instruction.
-
DMUL
@Deprecated static final ArithmeticInstruction DMUL
Deprecated.DMUL instruction.
-
IDIV
@Deprecated static final ArithmeticInstruction IDIV
Deprecated.IDIV instruction.
-
LDIV
@Deprecated static final ArithmeticInstruction LDIV
Deprecated.LDIV instruction.
-
FDIV
@Deprecated static final ArithmeticInstruction FDIV
Deprecated.FDIV instruction.
-
DDIV
@Deprecated static final ArithmeticInstruction DDIV
Deprecated.DDIV instruction.
-
IREM
@Deprecated static final ArithmeticInstruction IREM
Deprecated.IREM instruction.
-
LREM
@Deprecated static final ArithmeticInstruction LREM
Deprecated.LREM instruction.
-
FREM
@Deprecated static final ArithmeticInstruction FREM
Deprecated.FREM instruction.
-
DREM
@Deprecated static final ArithmeticInstruction DREM
Deprecated.DREM instruction.
-
INEG
@Deprecated static final ArithmeticInstruction INEG
Deprecated.INEG instruction.
-
LNEG
@Deprecated static final ArithmeticInstruction LNEG
Deprecated.LNEG instruction.
-
FNEG
@Deprecated static final ArithmeticInstruction FNEG
Deprecated.FNEG instruction.
-
DNEG
@Deprecated static final ArithmeticInstruction DNEG
Deprecated.DNEG instruction.
-
ISHL
@Deprecated static final ArithmeticInstruction ISHL
Deprecated.ISHL instruction.
-
LSHL
@Deprecated static final ArithmeticInstruction LSHL
Deprecated.LSHL instruction.
-
ISHR
@Deprecated static final ArithmeticInstruction ISHR
Deprecated.ISHR instruction.
-
LSHR
@Deprecated static final ArithmeticInstruction LSHR
Deprecated.LSHR instruction.
-
IUSHR
@Deprecated static final ArithmeticInstruction IUSHR
Deprecated.IUSHR instruction.
-
LUSHR
@Deprecated static final ArithmeticInstruction LUSHR
Deprecated.LUSHR instruction.
-
IAND
@Deprecated static final ArithmeticInstruction IAND
Deprecated.IAND instruction.
-
LAND
@Deprecated static final ArithmeticInstruction LAND
Deprecated.LAND instruction.
-
IOR
@Deprecated static final ArithmeticInstruction IOR
Deprecated.UseInstructionConst.IOR.IOR instruction.
-
LOR
@Deprecated static final ArithmeticInstruction LOR
Deprecated.UseInstructionConst.LOR.LOR instruction.
-
IXOR
@Deprecated static final ArithmeticInstruction IXOR
Deprecated.IXOR instruction.
-
LXOR
@Deprecated static final ArithmeticInstruction LXOR
Deprecated.LXOR instruction.
-
I2L
@Deprecated static final ConversionInstruction I2L
Deprecated.UseInstructionConst.I2L.I2L instruction.
-
I2F
@Deprecated static final ConversionInstruction I2F
Deprecated.UseInstructionConst.I2F.I2F instruction.
-
I2D
@Deprecated static final ConversionInstruction I2D
Deprecated.UseInstructionConst.I2D.I2D instruction.
-
L2I
@Deprecated static final ConversionInstruction L2I
Deprecated.UseInstructionConst.L2I.L2I instruction.
-
L2F
@Deprecated static final ConversionInstruction L2F
Deprecated.UseInstructionConst.L2F.L2F instruction.
-
L2D
@Deprecated static final ConversionInstruction L2D
Deprecated.UseInstructionConst.L2D.L2D instruction.
-
F2I
@Deprecated static final ConversionInstruction F2I
Deprecated.UseInstructionConst.F2I.F2I instruction.
-
F2L
@Deprecated static final ConversionInstruction F2L
Deprecated.UseInstructionConst.F2L.F2L instruction.
-
F2D
@Deprecated static final ConversionInstruction F2D
Deprecated.UseInstructionConst.F2D.F2D instruction.
-
D2I
@Deprecated static final ConversionInstruction D2I
Deprecated.UseInstructionConst.D2I.D2I instruction.
-
D2L
@Deprecated static final ConversionInstruction D2L
Deprecated.UseInstructionConst.D2L.D2L instruction.
-
D2F
@Deprecated static final ConversionInstruction D2F
Deprecated.UseInstructionConst.D2F.D2F instruction.
-
I2B
@Deprecated static final ConversionInstruction I2B
Deprecated.UseInstructionConst.I2B.I2B instruction.
-
I2C
@Deprecated static final ConversionInstruction I2C
Deprecated.UseInstructionConst.I2C.I2C instruction.
-
I2S
@Deprecated static final ConversionInstruction I2S
Deprecated.UseInstructionConst.I2S.I2S instruction.
-
LCMP
@Deprecated static final Instruction LCMP
Deprecated.LCMP instruction.
-
FCMPL
@Deprecated static final Instruction FCMPL
Deprecated.FCMPL instruction.
-
FCMPG
@Deprecated static final Instruction FCMPG
Deprecated.FCMPG instruction.
-
DCMPL
@Deprecated static final Instruction DCMPL
Deprecated.DCMPL instruction.
-
DCMPG
@Deprecated static final Instruction DCMPG
Deprecated.DCMPG instruction.
-
IRETURN
@Deprecated static final ReturnInstruction IRETURN
Deprecated.IRETURN instruction.
-
LRETURN
@Deprecated static final ReturnInstruction LRETURN
Deprecated.LRETURN instruction.
-
FRETURN
@Deprecated static final ReturnInstruction FRETURN
Deprecated.FRETURN instruction.
-
DRETURN
@Deprecated static final ReturnInstruction DRETURN
Deprecated.DRETURN instruction.
-
ARETURN
@Deprecated static final ReturnInstruction ARETURN
Deprecated.ARETURN instruction.
-
RETURN
@Deprecated static final ReturnInstruction RETURN
Deprecated.RETURN instruction.
-
ARRAYLENGTH
@Deprecated static final Instruction ARRAYLENGTH
Deprecated.ARRAYLENGTH instruction.
-
ATHROW
@Deprecated static final Instruction ATHROW
Deprecated.ATHROW instruction.
-
MONITORENTER
@Deprecated static final Instruction MONITORENTER
Deprecated.MONITORENTER instruction.
-
MONITOREXIT
@Deprecated static final Instruction MONITOREXIT
Deprecated.MONITOREXIT instruction.
-
THIS
@Deprecated static final LocalVariableInstruction THIS
Deprecated.You can use these constants in multiple places safely, if you can guarantee that you will never alter their internal values, for example call setIndex().
-
ALOAD_0
@Deprecated static final LocalVariableInstruction ALOAD_0
Deprecated.ALOAD_0 instruction.
-
ALOAD_1
@Deprecated static final LocalVariableInstruction ALOAD_1
Deprecated.ALOAD_1 instruction.
-
ALOAD_2
@Deprecated static final LocalVariableInstruction ALOAD_2
Deprecated.ALOAD_2 instruction.
-
ILOAD_0
@Deprecated static final LocalVariableInstruction ILOAD_0
Deprecated.ILOAD_0 instruction.
-
ILOAD_1
@Deprecated static final LocalVariableInstruction ILOAD_1
Deprecated.ILOAD_1 instruction.
-
ILOAD_2
@Deprecated static final LocalVariableInstruction ILOAD_2
Deprecated.ILOAD_2 instruction.
-
ASTORE_0
@Deprecated static final LocalVariableInstruction ASTORE_0
Deprecated.ASTORE_0 instruction.
-
ASTORE_1
@Deprecated static final LocalVariableInstruction ASTORE_1
Deprecated.ASTORE_1 instruction.
-
ASTORE_2
@Deprecated static final LocalVariableInstruction ASTORE_2
Deprecated.ASTORE_2 instruction.
-
ISTORE_0
@Deprecated static final LocalVariableInstruction ISTORE_0
Deprecated.ISTORE_0 instruction.
-
ISTORE_1
@Deprecated static final LocalVariableInstruction ISTORE_1
Deprecated.ISTORE_1 instruction.
-
ISTORE_2
@Deprecated static final LocalVariableInstruction ISTORE_2
Deprecated.ISTORE_2 instruction.
-
INSTRUCTIONS
@Deprecated static final Instruction[] INSTRUCTIONS
Deprecated.Gets object via its opcode, for immutable instructions like branch instructions entries are set to null.
-
bla
static final InstructionConstants.Clinit bla
Deprecated.Interfaces may have no static initializers, so we simulate this with an inner class.
-
-