package h;

import d.C0424d;
import g.C0474a;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;

/* JADX INFO: loaded from: classes.dex */
public class g implements t {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final Method f4133a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final Class f4134b;

    public g(Method method) {
        this.f4133a = method;
        this.f4134b = method.getParameterTypes()[0];
    }

    @Override // h.t
    public Object b(C0474a c0474a, Type type, Object obj) {
        try {
            return this.f4133a.invoke(null, c0474a.N(this.f4134b));
        } catch (IllegalAccessException e2) {
            throw new C0424d("parse enum error", e2);
        } catch (InvocationTargetException e3) {
            throw new C0424d("parse enum error", e3);
        }
    }

    @Override // h.t
    public int d() {
        return 0;
    }
}
