net.sf.retrotranslator.transformer
Class VersionVisitor

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

 class VersionVisitor
extends ClassAdapter

Author:
Taras Puchko

Field Summary
private  ClassVersion target
           
 
Fields inherited from class net.sf.retrotranslator.runtime.asm.ClassAdapter
cv
 
Constructor Summary
VersionVisitor(ClassVisitor visitor, ClassVersion target)
           
 
Method Summary
 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

target

private final ClassVersion target
Constructor Detail

VersionVisitor

public VersionVisitor(ClassVisitor visitor,
                      ClassVersion target)
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.