FileDocCategorySizeDatePackage
RefactorClassAdapter.javaAPI DocAndroid 5.1 API1614Thu Mar 12 22:22:44 GMT 2015com.android.tools.layoutlib.create

RefactorClassAdapter

public class RefactorClassAdapter extends AbstractClassAdapter

Fields Summary
private final HashMap
mRefactorClasses
Constructors Summary
RefactorClassAdapter(org.objectweb.asm.ClassVisitor cv, HashMap refactorClasses)

        super(cv);
        mRefactorClasses = refactorClasses;
    
Methods Summary
protected java.lang.StringrenameInternalType(java.lang.String oldClassName)

        if (oldClassName != null) {
            String newName = mRefactorClasses.get(oldClassName);
            if (newName != null) {
                return newName;
            }
            int pos = oldClassName.indexOf('$");
            if (pos > 0) {
                newName = mRefactorClasses.get(oldClassName.substring(0, pos));
                if (newName != null) {
                    return newName + oldClassName.substring(pos);
                }
            }
        }
        return oldClassName;