Luno v7.28.0版本的 MD5 值为:08d81b3b88ef7df48c89cb5d56dc11a2

以下内容为反编译后的 g2.java 源代码,内容仅作参考


package mdi.sdk;

import java.util.Collection;
import java.util.List;
import kotlin.Lazy;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;

public abstract class g2 extends zw {
    private final d83<b> b;
    private final boolean c;

    public final class a implements eo5 {
        private final gj2 a;
        private final Lazy b;
        final g2 c;

        static final class C0276a extends sl2 implements Function0<List<? extends aj2>> {
            final g2 b;

            C0276a(g2 g2Var) {
                super(0);
                this.b = g2Var;
            }

            @Override
            public final List<aj2> invoke() {
                return hj2.b(a.this.a, this.b.d());
            }
        }

        public a(g2 g2Var, gj2 gj2Var) {
            Lazy a;
            w32.h(g2Var, "this$0");
            w32.h(gj2Var, "kotlinTypeRefiner");
            this.c = g2Var;
            this.a = gj2Var;
            a = un2.a(kotlin.b.PUBLICATION, new C0276a(g2Var));
            this.b = a;
        }

        private final List<aj2> f() {
            return (List) this.b.getValue();
        }

        @Override
        public eo5 a(gj2 gj2Var) {
            w32.h(gj2Var, "kotlinTypeRefiner");
            return this.c.a(gj2Var);
        }

        @Override
        public ax u() {
            return this.c.u();
        }

        @Override
        public boolean c() {
            return this.c.c();
        }

        public boolean equals(Object obj) {
            return this.c.equals(obj);
        }

        @Override
        public List<aj2> d() {
            return f();
        }

        @Override
        public List<ro5> getParameters() {
            List<ro5> parameters = this.c.getParameters();
            w32.g(parameters, "this@AbstractTypeConstructor.parameters");
            return parameters;
        }

        public int hashCode() {
            return this.c.hashCode();
        }

        @Override
        public mi2 l() {
            mi2 l = this.c.l();
            w32.g(l, "this@AbstractTypeConstructor.builtIns");
            return l;
        }

        public String toString() {
            return this.c.toString();
        }
    }

    public static final class b {
        private final Collection<aj2> a;
        private List<? extends aj2> b;

        public b(Collection<? extends aj2> collection) {
            List<? extends aj2> e;
            w32.h(collection, "allSupertypes");
            this.a = collection;
            e = gy.e(zn0.c);
            this.b = e;
        }

        public final Collection<aj2> a() {
            return this.a;
        }

        public final List<aj2> b() {
            return this.b;
        }

        public final void c(List<? extends aj2> list) {
            w32.h(list, "<set-?>");
            this.b = list;
        }
    }

    static final class c extends sl2 implements Function0<b> {
        c() {
            super(0);
        }

        @Override
        public final b invoke() {
            return new b(g2.this.j());
        }
    }

    static final class d extends sl2 implements Function1<Boolean, b> {
        public static final d a = new d();

        d() {
            super(1);
        }

        public final b a(boolean z) {
            List e;
            e = gy.e(zn0.c);
            return new b(e);
        }

        @Override
        public b invoke(Boolean bool) {
            return a(bool.booleanValue());
        }
    }

    static final class e extends sl2 implements Function1<b, Unit> {

        public static final class a extends sl2 implements Function1<eo5, Iterable<? extends aj2>> {
            final g2 a;

            a(g2 g2Var) {
                super(1);
                this.a = g2Var;
            }

            @Override
            public final Iterable<aj2> invoke(eo5 eo5Var) {
                w32.h(eo5Var, "it");
                return this.a.i(eo5Var, true);
            }
        }

        public static final class b extends sl2 implements Function1<aj2, Unit> {
            final g2 a;

            b(g2 g2Var) {
                super(1);
                this.a = g2Var;
            }

            public final void a(aj2 aj2Var) {
                w32.h(aj2Var, "it");
                this.a.r(aj2Var);
            }

            @Override
            public Unit invoke(aj2 aj2Var) {
                a(aj2Var);
                return Unit.a;
            }
        }

        public static final class c extends sl2 implements Function1<eo5, Iterable<? extends aj2>> {
            final g2 a;

            c(g2 g2Var) {
                super(1);
                this.a = g2Var;
            }

            @Override
            public final Iterable<aj2> invoke(eo5 eo5Var) {
                w32.h(eo5Var, "it");
                return this.a.i(eo5Var, false);
            }
        }

        public static final class d extends sl2 implements Function1<aj2, Unit> {
            final g2 a;

            d(g2 g2Var) {
                super(1);
                this.a = g2Var;
            }

            public final void a(aj2 aj2Var) {
                w32.h(aj2Var, "it");
                this.a.s(aj2Var);
            }

            @Override
            public Unit invoke(aj2 aj2Var) {
                a(aj2Var);
                return Unit.a;
            }
        }

        e() {
            super(1);
        }

        public final void a(b bVar) {
            w32.h(bVar, "supertypes");
            Collection<aj2> a2 = g2.this.o().a(g2.this, bVar.a(), new c(g2.this), new d(g2.this));
            if (a2.isEmpty()) {
                aj2 k = g2.this.k();
                a2 = k == null ? null : gy.e(k);
                if (a2 == null) {
                    a2 = hy.j();
                }
            }
            if (g2.this.n()) {
                b75 o = g2.this.o();
                g2 g2Var = g2.this;
                o.a(g2Var, a2, new a(g2Var), new b(g2.this));
            }
            g2 g2Var2 = g2.this;
            List<aj2> list = a2 instanceof List ? (List) a2 : null;
            if (list == null) {
                list = py.P0(a2);
            }
            bVar.c(g2Var2.q(list));
        }

        @Override
        public Unit invoke(b bVar) {
            a(bVar);
            return Unit.a;
        }
    }

    public g2(k45 k45Var) {
        w32.h(k45Var, "storageManager");
        this.b = k45Var.f(new c(), d.a, new e());
    }

    public final Collection<aj2> i(eo5 eo5Var, boolean z) {
        g2 g2Var = eo5Var instanceof g2 ? (g2) eo5Var : null;
        List x0 = g2Var != null ? py.x0(g2Var.b.invoke().a(), g2Var.m(z)) : null;
        if (x0 != null) {
            return x0;
        }
        Collection<aj2> d2 = eo5Var.d();
        w32.g(d2, "supertypes");
        return d2;
    }

    @Override
    public eo5 a(gj2 gj2Var) {
        w32.h(gj2Var, "kotlinTypeRefiner");
        return new a(this, gj2Var);
    }

    protected abstract Collection<aj2> j();

    protected aj2 k() {
        return null;
    }

    protected Collection<aj2> m(boolean z) {
        List j;
        j = hy.j();
        return j;
    }

    protected boolean n() {
        return this.c;
    }

    protected abstract b75 o();

    @Override
    public List<aj2> d() {
        return this.b.invoke().b();
    }

    protected List<aj2> q(List<aj2> list) {
        w32.h(list, "supertypes");
        return list;
    }

    protected void r(aj2 aj2Var) {
        w32.h(aj2Var, "type");
    }

    protected void s(aj2 aj2Var) {
        w32.h(aj2Var, "type");
    }
}