public AttributeInfo copy(ConstPool newCp, Map classnames) {
        if (methodIndex() == 0) 
            return new EnclosingMethodAttribute(newCp, className());
        else
            return new EnclosingMethodAttribute(newCp, className(),
                                            methodName(), methodDescriptor());
    }