package com.seewo.ota.j.a;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.List;

/* JADX INFO: compiled from: ApiInvoker.java */
/* JADX INFO: loaded from: classes.dex */
public class b {
    private final Method mMethod;
    private final String mName;
    private final List<? extends e> mParams;
    private Type mReturnType;
    private final Object mTarget;

    public b(String str, Object obj, Method method, List<? extends e> list, Type type) {
        this.mName = str;
        this.mTarget = obj;
        this.mMethod = method;
        this.mParams = list;
        this.mReturnType = type;
    }

    public Method getMethod() {
        return this.mMethod;
    }

    public String getName() {
        return this.mName;
    }

    public List<? extends e> getParams() {
        return this.mParams;
    }

    public Type getReturnType() {
        return this.mReturnType;
    }

    public Object getTarget() {
        return this.mTarget;
    }

    public Object invoke(Object... objArr) throws IllegalAccessException, InvocationTargetException {
        return this.mMethod.invoke(this.mTarget, objArr);
    }
}
