Package org.apache.bcel.generic
Interface InstructionConstants
- All Known Implementing Classes:
InstructionFactory
,PUSH
Deprecated.
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
Modifier and TypeInterfaceDescriptionstatic class
Deprecated.Deprecated, consider private and ignore. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ArrayInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final Instruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final ReturnInstruction
Deprecated.static final Instruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final Instruction
Deprecated.static final ArrayInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final InstructionConstants.Clinit
Deprecated.Interfaces may have no static initializers, so we simulate this with an inner class.static final ArrayInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ReturnInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final StackInstruction
Deprecated.static final StackInstruction
Deprecated.static final StackInstruction
Deprecated.static final StackInstruction
Deprecated.static final StackInstruction
Deprecated.static final StackInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ReturnInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final Instruction[]
Deprecated.Gets object via its opcode, for immutable instructions like branch instructions entries are set to null.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ReturnInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ConversionInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ReturnInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final ArithmeticInstruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final Instruction
Deprecated.static final StackInstruction
Deprecated.static final StackInstruction
Deprecated.static final ReturnInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final ArrayInstruction
Deprecated.static final StackInstruction
Deprecated.static final LocalVariableInstruction
Deprecated.You can use these constants in multiple places safely, if you can guarantee that you will never alter their internal values, e.g.
-
Field Details
-
NOP
Deprecated. -
ACONST_NULL
Deprecated. -
ICONST_M1
Deprecated. -
ICONST_0
Deprecated. -
ICONST_1
Deprecated. -
ICONST_2
Deprecated. -
ICONST_3
Deprecated. -
ICONST_4
Deprecated. -
ICONST_5
Deprecated. -
LCONST_0
Deprecated. -
LCONST_1
Deprecated. -
FCONST_0
Deprecated. -
FCONST_1
Deprecated. -
FCONST_2
Deprecated. -
DCONST_0
Deprecated. -
DCONST_1
Deprecated. -
IALOAD
Deprecated. -
LALOAD
Deprecated. -
FALOAD
Deprecated. -
DALOAD
Deprecated. -
AALOAD
Deprecated. -
BALOAD
Deprecated. -
CALOAD
Deprecated. -
SALOAD
Deprecated. -
IASTORE
Deprecated. -
LASTORE
Deprecated. -
FASTORE
Deprecated. -
DASTORE
Deprecated. -
AASTORE
Deprecated. -
BASTORE
Deprecated. -
CASTORE
Deprecated. -
SASTORE
Deprecated. -
POP
Deprecated. -
POP2
Deprecated. -
DUP
Deprecated. -
DUP_X1
Deprecated. -
DUP_X2
Deprecated. -
DUP2
Deprecated. -
DUP2_X1
Deprecated. -
DUP2_X2
Deprecated. -
SWAP
Deprecated. -
IADD
Deprecated. -
LADD
Deprecated. -
FADD
Deprecated. -
DADD
Deprecated. -
ISUB
Deprecated. -
LSUB
Deprecated. -
FSUB
Deprecated. -
DSUB
Deprecated. -
IMUL
Deprecated. -
LMUL
Deprecated. -
FMUL
Deprecated. -
DMUL
Deprecated. -
IDIV
Deprecated. -
LDIV
Deprecated. -
FDIV
Deprecated. -
DDIV
Deprecated. -
IREM
Deprecated. -
LREM
Deprecated. -
FREM
Deprecated. -
DREM
Deprecated. -
INEG
Deprecated. -
LNEG
Deprecated. -
FNEG
Deprecated. -
DNEG
Deprecated. -
ISHL
Deprecated. -
LSHL
Deprecated. -
ISHR
Deprecated. -
LSHR
Deprecated. -
IUSHR
Deprecated. -
LUSHR
Deprecated. -
IAND
Deprecated. -
LAND
Deprecated. -
IOR
Deprecated. -
LOR
Deprecated. -
IXOR
Deprecated. -
LXOR
Deprecated. -
I2L
Deprecated. -
I2F
Deprecated. -
I2D
Deprecated. -
L2I
Deprecated. -
L2F
Deprecated. -
L2D
Deprecated. -
F2I
Deprecated. -
F2L
Deprecated. -
F2D
Deprecated. -
D2I
Deprecated. -
D2L
Deprecated. -
D2F
Deprecated. -
I2B
Deprecated. -
I2C
Deprecated. -
I2S
Deprecated. -
LCMP
Deprecated. -
FCMPL
Deprecated. -
FCMPG
Deprecated. -
DCMPL
Deprecated. -
DCMPG
Deprecated. -
IRETURN
Deprecated. -
LRETURN
Deprecated. -
FRETURN
Deprecated. -
DRETURN
Deprecated. -
ARETURN
Deprecated. -
RETURN
Deprecated. -
ARRAYLENGTH
Deprecated. -
ATHROW
Deprecated. -
MONITORENTER
Deprecated. -
MONITOREXIT
Deprecated. -
THIS
Deprecated.You can use these constants in multiple places safely, if you can guarantee that you will never alter their internal values, e.g. call setIndex(). -
ALOAD_0
Deprecated. -
ALOAD_1
Deprecated. -
ALOAD_2
Deprecated. -
ILOAD_0
Deprecated. -
ILOAD_1
Deprecated. -
ILOAD_2
Deprecated. -
ASTORE_0
Deprecated. -
ASTORE_1
Deprecated. -
ASTORE_2
Deprecated. -
ISTORE_0
Deprecated. -
ISTORE_1
Deprecated. -
ISTORE_2
Deprecated. -
INSTRUCTIONS
Deprecated.Gets object via its opcode, for immutable instructions like branch instructions entries are set to null. -
bla
Deprecated.Interfaces may have no static initializers, so we simulate this with an inner class.
-
InstructionConst
instead.