Package org.apache.bcel.generic
Interface InstructionConstants
-
- All Known Implementing Classes:
InstructionFactory,PUSH
@Deprecated public interface InstructionConstantsDeprecated.(since 6.0) Do not use. Use InstructionConst instead.This interface 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.
-
Field Summary
Fields Modifier and Type Field Description static ArrayInstructionAALOADDeprecated.static ArrayInstructionAASTOREDeprecated.static InstructionACONST_NULLDeprecated.static LocalVariableInstructionALOAD_0Deprecated.static LocalVariableInstructionALOAD_1Deprecated.static LocalVariableInstructionALOAD_2Deprecated.static ReturnInstructionARETURNDeprecated.static InstructionARRAYLENGTHDeprecated.static LocalVariableInstructionASTORE_0Deprecated.static LocalVariableInstructionASTORE_1Deprecated.static LocalVariableInstructionASTORE_2Deprecated.static InstructionATHROWDeprecated.static ArrayInstructionBALOADDeprecated.static ArrayInstructionBASTOREDeprecated.static InstructionConstants.ClinitblaDeprecated.Interfaces may have no static initializers, so we simulate this with an inner class.static ArrayInstructionCALOADDeprecated.static ArrayInstructionCASTOREDeprecated.static ConversionInstructionD2FDeprecated.static ConversionInstructionD2IDeprecated.static ConversionInstructionD2LDeprecated.static ArithmeticInstructionDADDDeprecated.static ArrayInstructionDALOADDeprecated.static ArrayInstructionDASTOREDeprecated.static InstructionDCMPGDeprecated.static InstructionDCMPLDeprecated.static InstructionDCONST_0Deprecated.static InstructionDCONST_1Deprecated.static ArithmeticInstructionDDIVDeprecated.static ArithmeticInstructionDMULDeprecated.static ArithmeticInstructionDNEGDeprecated.static ArithmeticInstructionDREMDeprecated.static ReturnInstructionDRETURNDeprecated.static ArithmeticInstructionDSUBDeprecated.static StackInstructionDUPDeprecated.static StackInstructionDUP_X1Deprecated.static StackInstructionDUP_X2Deprecated.static StackInstructionDUP2Deprecated.static StackInstructionDUP2_X1Deprecated.static StackInstructionDUP2_X2Deprecated.static ConversionInstructionF2DDeprecated.static ConversionInstructionF2IDeprecated.static ConversionInstructionF2LDeprecated.static ArithmeticInstructionFADDDeprecated.static ArrayInstructionFALOADDeprecated.static ArrayInstructionFASTOREDeprecated.static InstructionFCMPGDeprecated.static InstructionFCMPLDeprecated.static InstructionFCONST_0Deprecated.static InstructionFCONST_1Deprecated.static InstructionFCONST_2Deprecated.static ArithmeticInstructionFDIVDeprecated.static ArithmeticInstructionFMULDeprecated.static ArithmeticInstructionFNEGDeprecated.static ArithmeticInstructionFREMDeprecated.static ReturnInstructionFRETURNDeprecated.static ArithmeticInstructionFSUBDeprecated.static ConversionInstructionI2BDeprecated.static ConversionInstructionI2CDeprecated.static ConversionInstructionI2DDeprecated.static ConversionInstructionI2FDeprecated.static ConversionInstructionI2LDeprecated.static ConversionInstructionI2SDeprecated.static ArithmeticInstructionIADDDeprecated.static ArrayInstructionIALOADDeprecated.static ArithmeticInstructionIANDDeprecated.static ArrayInstructionIASTOREDeprecated.static InstructionICONST_0Deprecated.static InstructionICONST_1Deprecated.static InstructionICONST_2Deprecated.static InstructionICONST_3Deprecated.static InstructionICONST_4Deprecated.static InstructionICONST_5Deprecated.static InstructionICONST_M1Deprecated.static ArithmeticInstructionIDIVDeprecated.static LocalVariableInstructionILOAD_0Deprecated.static LocalVariableInstructionILOAD_1Deprecated.static LocalVariableInstructionILOAD_2Deprecated.static ArithmeticInstructionIMULDeprecated.static ArithmeticInstructionINEGDeprecated.static Instruction[]INSTRUCTIONSDeprecated.Get object via its opcode, for immutable instructions like branch instructions entries are set to null.static ArithmeticInstructionIORDeprecated.static ArithmeticInstructionIREMDeprecated.static ReturnInstructionIRETURNDeprecated.static ArithmeticInstructionISHLDeprecated.static ArithmeticInstructionISHRDeprecated.static LocalVariableInstructionISTORE_0Deprecated.static LocalVariableInstructionISTORE_1Deprecated.static LocalVariableInstructionISTORE_2Deprecated.static ArithmeticInstructionISUBDeprecated.static ArithmeticInstructionIUSHRDeprecated.static ArithmeticInstructionIXORDeprecated.static ConversionInstructionL2DDeprecated.static ConversionInstructionL2FDeprecated.static ConversionInstructionL2IDeprecated.static ArithmeticInstructionLADDDeprecated.static ArrayInstructionLALOADDeprecated.static ArithmeticInstructionLANDDeprecated.static ArrayInstructionLASTOREDeprecated.static InstructionLCMPDeprecated.static InstructionLCONST_0Deprecated.static InstructionLCONST_1Deprecated.static ArithmeticInstructionLDIVDeprecated.static ArithmeticInstructionLMULDeprecated.static ArithmeticInstructionLNEGDeprecated.static ArithmeticInstructionLORDeprecated.static ArithmeticInstructionLREMDeprecated.static ReturnInstructionLRETURNDeprecated.static ArithmeticInstructionLSHLDeprecated.static ArithmeticInstructionLSHRDeprecated.static ArithmeticInstructionLSUBDeprecated.static ArithmeticInstructionLUSHRDeprecated.static ArithmeticInstructionLXORDeprecated.static InstructionMONITORENTERDeprecated.static InstructionMONITOREXITDeprecated.static InstructionNOPDeprecated.Predefined instruction objectsstatic StackInstructionPOPDeprecated.static StackInstructionPOP2Deprecated.static ReturnInstructionRETURNDeprecated.static ArrayInstructionSALOADDeprecated.static ArrayInstructionSASTOREDeprecated.static StackInstructionSWAPDeprecated.static LocalVariableInstructionTHISDeprecated.You can use these constants in multiple places safely, if you can guarantee that you will never alter their internal values, e.g.
-
-
-
Field Detail
-
NOP
static final Instruction NOP
Deprecated.Predefined instruction objects
-
ACONST_NULL
static final Instruction ACONST_NULL
Deprecated.
-
ICONST_M1
static final Instruction ICONST_M1
Deprecated.
-
ICONST_0
static final Instruction ICONST_0
Deprecated.
-
ICONST_1
static final Instruction ICONST_1
Deprecated.
-
ICONST_2
static final Instruction ICONST_2
Deprecated.
-
ICONST_3
static final Instruction ICONST_3
Deprecated.
-
ICONST_4
static final Instruction ICONST_4
Deprecated.
-
ICONST_5
static final Instruction ICONST_5
Deprecated.
-
LCONST_0
static final Instruction LCONST_0
Deprecated.
-
LCONST_1
static final Instruction LCONST_1
Deprecated.
-
FCONST_0
static final Instruction FCONST_0
Deprecated.
-
FCONST_1
static final Instruction FCONST_1
Deprecated.
-
FCONST_2
static final Instruction FCONST_2
Deprecated.
-
DCONST_0
static final Instruction DCONST_0
Deprecated.
-
DCONST_1
static final Instruction DCONST_1
Deprecated.
-
IALOAD
static final ArrayInstruction IALOAD
Deprecated.
-
LALOAD
static final ArrayInstruction LALOAD
Deprecated.
-
FALOAD
static final ArrayInstruction FALOAD
Deprecated.
-
DALOAD
static final ArrayInstruction DALOAD
Deprecated.
-
AALOAD
static final ArrayInstruction AALOAD
Deprecated.
-
BALOAD
static final ArrayInstruction BALOAD
Deprecated.
-
CALOAD
static final ArrayInstruction CALOAD
Deprecated.
-
SALOAD
static final ArrayInstruction SALOAD
Deprecated.
-
IASTORE
static final ArrayInstruction IASTORE
Deprecated.
-
LASTORE
static final ArrayInstruction LASTORE
Deprecated.
-
FASTORE
static final ArrayInstruction FASTORE
Deprecated.
-
DASTORE
static final ArrayInstruction DASTORE
Deprecated.
-
AASTORE
static final ArrayInstruction AASTORE
Deprecated.
-
BASTORE
static final ArrayInstruction BASTORE
Deprecated.
-
CASTORE
static final ArrayInstruction CASTORE
Deprecated.
-
SASTORE
static final ArrayInstruction SASTORE
Deprecated.
-
POP
static final StackInstruction POP
Deprecated.
-
POP2
static final StackInstruction POP2
Deprecated.
-
DUP
static final StackInstruction DUP
Deprecated.
-
DUP_X1
static final StackInstruction DUP_X1
Deprecated.
-
DUP_X2
static final StackInstruction DUP_X2
Deprecated.
-
DUP2
static final StackInstruction DUP2
Deprecated.
-
DUP2_X1
static final StackInstruction DUP2_X1
Deprecated.
-
DUP2_X2
static final StackInstruction DUP2_X2
Deprecated.
-
SWAP
static final StackInstruction SWAP
Deprecated.
-
IADD
static final ArithmeticInstruction IADD
Deprecated.
-
LADD
static final ArithmeticInstruction LADD
Deprecated.
-
FADD
static final ArithmeticInstruction FADD
Deprecated.
-
DADD
static final ArithmeticInstruction DADD
Deprecated.
-
ISUB
static final ArithmeticInstruction ISUB
Deprecated.
-
LSUB
static final ArithmeticInstruction LSUB
Deprecated.
-
FSUB
static final ArithmeticInstruction FSUB
Deprecated.
-
DSUB
static final ArithmeticInstruction DSUB
Deprecated.
-
IMUL
static final ArithmeticInstruction IMUL
Deprecated.
-
LMUL
static final ArithmeticInstruction LMUL
Deprecated.
-
FMUL
static final ArithmeticInstruction FMUL
Deprecated.
-
DMUL
static final ArithmeticInstruction DMUL
Deprecated.
-
IDIV
static final ArithmeticInstruction IDIV
Deprecated.
-
LDIV
static final ArithmeticInstruction LDIV
Deprecated.
-
FDIV
static final ArithmeticInstruction FDIV
Deprecated.
-
DDIV
static final ArithmeticInstruction DDIV
Deprecated.
-
IREM
static final ArithmeticInstruction IREM
Deprecated.
-
LREM
static final ArithmeticInstruction LREM
Deprecated.
-
FREM
static final ArithmeticInstruction FREM
Deprecated.
-
DREM
static final ArithmeticInstruction DREM
Deprecated.
-
INEG
static final ArithmeticInstruction INEG
Deprecated.
-
LNEG
static final ArithmeticInstruction LNEG
Deprecated.
-
FNEG
static final ArithmeticInstruction FNEG
Deprecated.
-
DNEG
static final ArithmeticInstruction DNEG
Deprecated.
-
ISHL
static final ArithmeticInstruction ISHL
Deprecated.
-
LSHL
static final ArithmeticInstruction LSHL
Deprecated.
-
ISHR
static final ArithmeticInstruction ISHR
Deprecated.
-
LSHR
static final ArithmeticInstruction LSHR
Deprecated.
-
IUSHR
static final ArithmeticInstruction IUSHR
Deprecated.
-
LUSHR
static final ArithmeticInstruction LUSHR
Deprecated.
-
IAND
static final ArithmeticInstruction IAND
Deprecated.
-
LAND
static final ArithmeticInstruction LAND
Deprecated.
-
IOR
static final ArithmeticInstruction IOR
Deprecated.
-
LOR
static final ArithmeticInstruction LOR
Deprecated.
-
IXOR
static final ArithmeticInstruction IXOR
Deprecated.
-
LXOR
static final ArithmeticInstruction LXOR
Deprecated.
-
I2L
static final ConversionInstruction I2L
Deprecated.
-
I2F
static final ConversionInstruction I2F
Deprecated.
-
I2D
static final ConversionInstruction I2D
Deprecated.
-
L2I
static final ConversionInstruction L2I
Deprecated.
-
L2F
static final ConversionInstruction L2F
Deprecated.
-
L2D
static final ConversionInstruction L2D
Deprecated.
-
F2I
static final ConversionInstruction F2I
Deprecated.
-
F2L
static final ConversionInstruction F2L
Deprecated.
-
F2D
static final ConversionInstruction F2D
Deprecated.
-
D2I
static final ConversionInstruction D2I
Deprecated.
-
D2L
static final ConversionInstruction D2L
Deprecated.
-
D2F
static final ConversionInstruction D2F
Deprecated.
-
I2B
static final ConversionInstruction I2B
Deprecated.
-
I2C
static final ConversionInstruction I2C
Deprecated.
-
I2S
static final ConversionInstruction I2S
Deprecated.
-
LCMP
static final Instruction LCMP
Deprecated.
-
FCMPL
static final Instruction FCMPL
Deprecated.
-
FCMPG
static final Instruction FCMPG
Deprecated.
-
DCMPL
static final Instruction DCMPL
Deprecated.
-
DCMPG
static final Instruction DCMPG
Deprecated.
-
IRETURN
static final ReturnInstruction IRETURN
Deprecated.
-
LRETURN
static final ReturnInstruction LRETURN
Deprecated.
-
FRETURN
static final ReturnInstruction FRETURN
Deprecated.
-
DRETURN
static final ReturnInstruction DRETURN
Deprecated.
-
ARETURN
static final ReturnInstruction ARETURN
Deprecated.
-
RETURN
static final ReturnInstruction RETURN
Deprecated.
-
ARRAYLENGTH
static final Instruction ARRAYLENGTH
Deprecated.
-
ATHROW
static final Instruction ATHROW
Deprecated.
-
MONITORENTER
static final Instruction MONITORENTER
Deprecated.
-
MONITOREXIT
static final Instruction MONITOREXIT
Deprecated.
-
THIS
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, e.g. call setIndex().
-
ALOAD_0
static final LocalVariableInstruction ALOAD_0
Deprecated.
-
ALOAD_1
static final LocalVariableInstruction ALOAD_1
Deprecated.
-
ALOAD_2
static final LocalVariableInstruction ALOAD_2
Deprecated.
-
ILOAD_0
static final LocalVariableInstruction ILOAD_0
Deprecated.
-
ILOAD_1
static final LocalVariableInstruction ILOAD_1
Deprecated.
-
ILOAD_2
static final LocalVariableInstruction ILOAD_2
Deprecated.
-
ASTORE_0
static final LocalVariableInstruction ASTORE_0
Deprecated.
-
ASTORE_1
static final LocalVariableInstruction ASTORE_1
Deprecated.
-
ASTORE_2
static final LocalVariableInstruction ASTORE_2
Deprecated.
-
ISTORE_0
static final LocalVariableInstruction ISTORE_0
Deprecated.
-
ISTORE_1
static final LocalVariableInstruction ISTORE_1
Deprecated.
-
ISTORE_2
static final LocalVariableInstruction ISTORE_2
Deprecated.
-
INSTRUCTIONS
static final Instruction[] INSTRUCTIONS
Deprecated.Get 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.
-
-