@Override
public MethodVisitor visitMethod(int methodAccess, String name,
String descriptor, String signature, String[] exceptions) {
if (visitingInterface == true) {
purityAnalyzer.addInterfaceMethod(className.replace('/', '.'),
name, descriptor);
} else {
purityAnalyzer.addMethod(className.replace('/', '.'), name,
descriptor);
if ((methodAccess & Opcodes.ACC_ABSTRACT) != Opcodes.ACC_ABSTRACT) {
purityAnalyzer.addMethodWithBody(className.replace('/', '.'), name,
descriptor);
} else {
}
}
MethodVisitor mv = super.visitMethod(methodAccess, name, descriptor,
signature, exceptions);
PurityAnalysisMethodVisitor purityAnalysisMethodVisitor = new PurityAnalysisMethodVisitor(
className, name, descriptor, mv, purityAnalyzer);
MethodEntry methodEntry = new MethodEntry(className, name, descriptor);
this.method_adapters.put(methodEntry, purityAnalysisMethodVisitor);
return purityAnalysisMethodVisitor;
}