package com.baidu.mobads.sdk.internal; import com.baidu.mobads.sdk.api.RouteInfo; import java.lang.reflect.Method; import java.util.HashMap; public class ag extends RouteInfo { private q a; public ag(String str) { setPath(str); b(); } public Object a() { return this.a; } private void b() { try { Class<?> cls = Class.forName(r.ah + getPath()); if (cls != null) { Method declaredMethod = cls.getDeclaredMethod("getRoutesMap", new Class[0]); declaredMethod.setAccessible(true); HashMap hashMap = (HashMap) declaredMethod.invoke(null, new Object[0]); if (hashMap != null && hashMap.size() > 0) { this.a = (q) ((RouteInfo) hashMap.get(getPath())).getDestination().getConstructor(new Class[0]).newInstance(new Object[0]); } } } catch (Throwable unused) { } } }