    001/*
    002 * Forge Mod Loader
    003 * Copyright (c) 2012-2013 cpw.
    004 * All rights reserved. This program and the accompanying materials
    005 * are made available under the terms of the GNU Lesser Public License v2.1
    006 * which accompanies this distribution, and is available at
    007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    008 *
    009 * Contributors:
    010 *     cpw - implementation
    011 */
    012
    013package cpw.mods.fml.common.asm.transformers.deobf;
    014
    015import org.objectweb.asm.ClassVisitor;
    016import org.objectweb.asm.commons.Remapper;
    017import org.objectweb.asm.commons.RemappingClassAdapter;
    018
    019public class FMLRemappingAdapter extends RemappingClassAdapter {
    020    public FMLRemappingAdapter(ClassVisitor cv)
    021    {
    022        super(cv, FMLDeobfuscatingRemapper.INSTANCE);
    023    }
    024
    025    @Override
    026    public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
    027    {
    028        if (interfaces == null)
    029        {
    030            interfaces = new String[0];
    031        }
    032        FMLDeobfuscatingRemapper.INSTANCE.mergeSuperMaps(name, superName, interfaces);
    033        super.visit(version, access, name, signature, superName, interfaces);
    034    }
    035}