net.sf.retrotranslator.transformer
Class MirandaMethodsVisitor
java.lang.Object
net.sf.retrotranslator.runtime.asm.ClassAdapter
net.sf.retrotranslator.transformer.MirandaMethodsVisitor
- All Implemented Interfaces:
- ClassVisitor
class MirandaMethodsVisitor
- extends ClassAdapter
- Author:
- Taras Puchko
Fields inherited from class net.sf.retrotranslator.runtime.asm.ClassAdapter |
cv |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locator
private final ReplacementLocator locator
translator
private final NameTranslator translator
MirandaMethodsVisitor
public MirandaMethodsVisitor(ClassVisitor visitor,
ReplacementLocator locator)
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)