|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InstructionConstants
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 | |
---|---|
static class |
InstructionConstants.Clinit
|
Field Detail |
---|
static final Instruction NOP
static final Instruction ACONST_NULL
static final Instruction ICONST_M1
static final Instruction ICONST_0
static final Instruction ICONST_1
static final Instruction ICONST_2
static final Instruction ICONST_3
static final Instruction ICONST_4
static final Instruction ICONST_5
static final Instruction LCONST_0
static final Instruction LCONST_1
static final Instruction FCONST_0
static final Instruction FCONST_1
static final Instruction FCONST_2
static final Instruction DCONST_0
static final Instruction DCONST_1
static final ArrayInstruction IALOAD
static final ArrayInstruction LALOAD
static final ArrayInstruction FALOAD
static final ArrayInstruction DALOAD
static final ArrayInstruction AALOAD
static final ArrayInstruction BALOAD
static final ArrayInstruction CALOAD
static final ArrayInstruction SALOAD
static final ArrayInstruction IASTORE
static final ArrayInstruction LASTORE
static final ArrayInstruction FASTORE
static final ArrayInstruction DASTORE
static final ArrayInstruction AASTORE
static final ArrayInstruction BASTORE
static final ArrayInstruction CASTORE
static final ArrayInstruction SASTORE
static final StackInstruction POP
static final StackInstruction POP2
static final StackInstruction DUP
static final StackInstruction DUP_X1
static final StackInstruction DUP_X2
static final StackInstruction DUP2
static final StackInstruction DUP2_X1
static final StackInstruction DUP2_X2
static final StackInstruction SWAP
static final ArithmeticInstruction IADD
static final ArithmeticInstruction LADD
static final ArithmeticInstruction FADD
static final ArithmeticInstruction DADD
static final ArithmeticInstruction ISUB
static final ArithmeticInstruction LSUB
static final ArithmeticInstruction FSUB
static final ArithmeticInstruction DSUB
static final ArithmeticInstruction IMUL
static final ArithmeticInstruction LMUL
static final ArithmeticInstruction FMUL
static final ArithmeticInstruction DMUL
static final ArithmeticInstruction IDIV
static final ArithmeticInstruction LDIV
static final ArithmeticInstruction FDIV
static final ArithmeticInstruction DDIV
static final ArithmeticInstruction IREM
static final ArithmeticInstruction LREM
static final ArithmeticInstruction FREM
static final ArithmeticInstruction DREM
static final ArithmeticInstruction INEG
static final ArithmeticInstruction LNEG
static final ArithmeticInstruction FNEG
static final ArithmeticInstruction DNEG
static final ArithmeticInstruction ISHL
static final ArithmeticInstruction LSHL
static final ArithmeticInstruction ISHR
static final ArithmeticInstruction LSHR
static final ArithmeticInstruction IUSHR
static final ArithmeticInstruction LUSHR
static final ArithmeticInstruction IAND
static final ArithmeticInstruction LAND
static final ArithmeticInstruction IOR
static final ArithmeticInstruction LOR
static final ArithmeticInstruction IXOR
static final ArithmeticInstruction LXOR
static final ConversionInstruction I2L
static final ConversionInstruction I2F
static final ConversionInstruction I2D
static final ConversionInstruction L2I
static final ConversionInstruction L2F
static final ConversionInstruction L2D
static final ConversionInstruction F2I
static final ConversionInstruction F2L
static final ConversionInstruction F2D
static final ConversionInstruction D2I
static final ConversionInstruction D2L
static final ConversionInstruction D2F
static final ConversionInstruction I2B
static final ConversionInstruction I2C
static final ConversionInstruction I2S
static final Instruction LCMP
static final Instruction FCMPL
static final Instruction FCMPG
static final Instruction DCMPL
static final Instruction DCMPG
static final ReturnInstruction IRETURN
static final ReturnInstruction LRETURN
static final ReturnInstruction FRETURN
static final ReturnInstruction DRETURN
static final ReturnInstruction ARETURN
static final ReturnInstruction RETURN
static final Instruction ARRAYLENGTH
static final Instruction ATHROW
static final Instruction MONITORENTER
static final Instruction MONITOREXIT
static final LocalVariableInstruction THIS
static final LocalVariableInstruction ALOAD_0
static final LocalVariableInstruction ALOAD_1
static final LocalVariableInstruction ALOAD_2
static final LocalVariableInstruction ILOAD_0
static final LocalVariableInstruction ILOAD_1
static final LocalVariableInstruction ILOAD_2
static final LocalVariableInstruction ASTORE_0
static final LocalVariableInstruction ASTORE_1
static final LocalVariableInstruction ASTORE_2
static final LocalVariableInstruction ISTORE_0
static final LocalVariableInstruction ISTORE_1
static final LocalVariableInstruction ISTORE_2
static final Instruction[] INSTRUCTIONS
static final InstructionConstants.Clinit bla
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |