net.sf.retrotranslator.transformer
Class InnerClassVisitor.InnerClassMethodVisitor

java.lang.Object
  extended by net.sf.retrotranslator.transformer.AbstractMethodVisitor
      extended by net.sf.retrotranslator.transformer.InnerClassVisitor.InnerClassMethodVisitor
All Implemented Interfaces:
MethodVisitor
Enclosing class:
InnerClassVisitor

private class InnerClassVisitor.InnerClassMethodVisitor
extends AbstractMethodVisitor


Field Summary
private  java.lang.String fieldName
           
private  java.lang.String fieldType
           
private  java.lang.Integer firstLoad
           
private  boolean initialized
           
private  java.lang.Integer secondLoad
           
private  int superCount
           
private  int thisCount
           
 
Fields inherited from class net.sf.retrotranslator.transformer.AbstractMethodVisitor
mv
 
Constructor Summary
InnerClassVisitor.InnerClassMethodVisitor(MethodVisitor visitor)
           
 
Method Summary
protected  void flush()
           
 void visitEnd()
          Visits the end of the method.
 void visitFieldInsn(int opcode, java.lang.String owner, java.lang.String name, java.lang.String desc)
          Visits a field 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.
 void visitVarInsn(int opcode, int var)
          Visits a local variable instruction.
 
Methods inherited from class net.sf.retrotranslator.transformer.AbstractMethodVisitor
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

private boolean initialized

thisCount

private int thisCount

superCount

private int superCount

firstLoad

private java.lang.Integer firstLoad

secondLoad

private java.lang.Integer secondLoad

fieldName

private java.lang.String fieldName

fieldType

private java.lang.String fieldType
Constructor Detail

InnerClassVisitor.InnerClassMethodVisitor

public InnerClassVisitor.InnerClassMethodVisitor(MethodVisitor visitor)
Method Detail

flush

protected void flush()
Specified by:
flush in class AbstractMethodVisitor

visitVarInsn

public void visitVarInsn(int opcode,
                         int var)
Description copied from interface: MethodVisitor
Visits a local variable instruction. A local variable instruction is an instruction that loads or stores the value of a local variable.

Specified by:
visitVarInsn in interface MethodVisitor
Overrides:
visitVarInsn in class AbstractMethodVisitor
Parameters:
opcode - the opcode of the local variable instruction to be visited. This opcode is either ILOAD, LLOAD, FLOAD, DLOAD, ALOAD, ISTORE, LSTORE, FSTORE, DSTORE, ASTORE or RET.
var - the operand of the instruction to be visited. This operand is the index of a local variable.

visitFieldInsn

public void visitFieldInsn(int opcode,
                           java.lang.String owner,
                           java.lang.String name,
                           java.lang.String desc)
Description copied from interface: MethodVisitor
Visits a field instruction. A field instruction is an instruction that loads or stores the value of a field of an object.

Specified by:
visitFieldInsn in interface MethodVisitor
Overrides:
visitFieldInsn in class AbstractMethodVisitor
Parameters:
opcode - the opcode of the type instruction to be visited. This opcode is either GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.
owner - the internal name of the field's owner class (see getInternalName).
name - the field's name.
desc - the field's descriptor (see Type).

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 AbstractMethodVisitor
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).

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 AbstractMethodVisitor
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).

visitEnd

public void visitEnd()
Description copied from interface: MethodVisitor
Visits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited.

Specified by:
visitEnd in interface MethodVisitor
Overrides:
visitEnd in class AbstractMethodVisitor