net.sf.retrotranslator.transformer
Class MirandaMethodsVisitor

java.lang.Object
  extended by net.sf.retrotranslator.runtime.asm.ClassAdapter
      extended by net.sf.retrotranslator.transformer.MirandaMethodsVisitor
All Implemented Interfaces:
ClassVisitor

 class MirandaMethodsVisitor
extends ClassAdapter

Author:
Taras Puchko

Nested Class Summary
private static class MirandaMethodsVisitor.InheritedMethod
           
private  class MirandaMethodsVisitor.MethodCollector
           
 
Field Summary
private  ReplacementLocator locator
           
private  NameTranslator translator
           
 
Fields inherited from class net.sf.retrotranslator.runtime.asm.ClassAdapter
cv
 
Constructor Summary
MirandaMethodsVisitor(ClassVisitor visitor, ReplacementLocator locator)
           
 
Method Summary
private  void addMirandaMethods(java.lang.String name, java.lang.String superName, java.lang.String[] interfaces)
           
private  java.util.Set<MirandaMethodsVisitor.InheritedMethod> getMethods(java.lang.String className, boolean recursive)
           
 void visit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
          Visits the header of the class.
 
Methods inherited from class net.sf.retrotranslator.runtime.asm.ClassAdapter
visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locator

private final ReplacementLocator locator

translator

private final NameTranslator translator
Constructor Detail

MirandaMethodsVisitor

public MirandaMethodsVisitor(ClassVisitor visitor,
                             ReplacementLocator locator)
Method Detail

visit

public void visit(int version,
                  int access,
                  java.lang.String name,
                  java.lang.String signature,
                  java.lang.String superName,
                  java.lang.String[] interfaces)
Description copied from interface: ClassVisitor
Visits the header of the class.

Specified by:
visit in interface ClassVisitor
Overrides:
visit in class ClassAdapter
Parameters:
version - the class version.
access - the class's access flags (see Opcodes). This parameter also indicates if the class is deprecated.
name - the internal name of the class (see getInternalName).
signature - the signature of this class. May be null if the class is not a generic one, and does not extend or implement generic classes or interfaces.
superName - the internal of name of the super class (see getInternalName). For interfaces, the super class is Object. May be null, but only for the Object class.
interfaces - the internal names of the class's interfaces (see getInternalName). May be null.

addMirandaMethods

private void addMirandaMethods(java.lang.String name,
                               java.lang.String superName,
                               java.lang.String[] interfaces)

getMethods

private java.util.Set<MirandaMethodsVisitor.InheritedMethod> getMethods(java.lang.String className,
                                                                        boolean recursive)