net.sf.retrotranslator.transformer
Class InstantiationReplacementVisitor.InstantiationReplacementMethodVisitor

java.lang.Object
  extended by net.sf.retrotranslator.runtime.asm.MethodAdapter
      extended by net.sf.retrotranslator.transformer.InstantiationReplacementVisitor.InstantiationReplacementMethodVisitor
All Implemented Interfaces:
MethodVisitor
Enclosing class:
InstantiationReplacementVisitor

private static class InstantiationReplacementVisitor.InstantiationReplacementMethodVisitor
extends MethodAdapter


Field Summary
private  int allocationIndex
           
private  int duplicationIndex
           
private  int initializationIndex
           
private  java.util.List<InstantiationPoint> points
           
 
Fields inherited from class net.sf.retrotranslator.runtime.asm.MethodAdapter
mv
 
Constructor Summary
InstantiationReplacementVisitor.InstantiationReplacementMethodVisitor(MethodVisitor mv, java.util.List<InstantiationPoint> points)
           
 
Method Summary
 void visitInsn(int opcode)
          Visits a zero operand instruction.
 void visitMethodInsn(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)
          Visits a method instruction.
 void visitTypeInsn(int opcode, java.lang.String desc)
          Visits a type instruction.
 
Methods inherited from class net.sf.retrotranslator.runtime.asm.MethodAdapter
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitIincInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

points

private final java.util.List<InstantiationPoint> points

allocationIndex

private int allocationIndex

duplicationIndex

private int duplicationIndex

initializationIndex

private int initializationIndex
Constructor Detail

InstantiationReplacementVisitor.InstantiationReplacementMethodVisitor

public InstantiationReplacementVisitor.InstantiationReplacementMethodVisitor(MethodVisitor mv,
                                                                             java.util.List<InstantiationPoint> points)
Method Detail

visitTypeInsn

public void visitTypeInsn(int opcode,
                          java.lang.String desc)
Description copied from interface: MethodVisitor
Visits a type instruction. A type instruction is an instruction that takes a type descriptor as parameter.

Specified by:
visitTypeInsn in interface MethodVisitor
Overrides:
visitTypeInsn in class MethodAdapter
Parameters:
opcode - the opcode of the type instruction to be visited. This opcode is either NEW, ANEWARRAY, CHECKCAST or INSTANCEOF.
desc - the operand of the instruction to be visited. This operand is must be a fully qualified class name in internal form, or the type descriptor of an array type (see Type).

visitInsn

public void visitInsn(int opcode)
Description copied from interface: MethodVisitor
Visits a zero operand instruction.

Specified by:
visitInsn in interface MethodVisitor
Overrides:
visitInsn in class MethodAdapter
Parameters:
opcode - the opcode of the instruction to be visited. This opcode is either NOP, ACONST_NULL, ICONST_M1, ICONST_0, ICONST_1, ICONST_2, ICONST_3, ICONST_4, ICONST_5, LCONST_0, LCONST_1, FCONST_0, FCONST_1, FCONST_2, DCONST_0, DCONST_1, IALOAD, LALOAD, FALOAD, DALOAD, AALOAD, BALOAD, CALOAD, SALOAD, IASTORE, LASTORE, FASTORE, DASTORE, AASTORE, BASTORE, CASTORE, SASTORE, POP, POP2, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, SWAP, IADD, LADD, FADD, DADD, ISUB, LSUB, FSUB, DSUB, IMUL, LMUL, FMUL, DMUL, IDIV, LDIV, FDIV, DDIV, IREM, LREM, FREM, DREM, INEG, LNEG, FNEG, DNEG, ISHL, LSHL, ISHR, LSHR, IUSHR, LUSHR, IAND, LAND, IOR, LOR, IXOR, LXOR, I2L, I2F, I2D, L2I, L2F, L2D, F2I, F2L, F2D, D2I, D2L, D2F, I2B, I2C, I2S, LCMP, FCMPL, FCMPG, DCMPL, DCMPG, IRETURN, LRETURN, FRETURN, DRETURN, ARETURN, RETURN, ARRAYLENGTH, ATHROW, MONITORENTER, or MONITOREXIT.

visitMethodInsn

public void visitMethodInsn(int opcode,
                            java.lang.String owner,
                            java.lang.String name,
                            java.lang.String desc)
Description copied from interface: MethodVisitor
Visits a method instruction. A method instruction is an instruction that invokes a method.

Specified by:
visitMethodInsn in interface MethodVisitor
Overrides:
visitMethodInsn in class MethodAdapter
Parameters:
opcode - the opcode of the type instruction to be visited. This opcode is either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or INVOKEINTERFACE.
owner - the internal name of the method's owner class (see getInternalName).
name - the method's name.
desc - the method's descriptor (see Type).