WXModuleUtils.smali
.class public Lcom/alibaba/android/bindingx/plugin/weex/WXModuleUtils;
.super Ljava/lang/Object;
.source "WXModuleUtils.java"
# direct methods
.method private constructor <init>()V
.registers 1
.line 25
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static findComponentByRef(Ljava/lang/String;Ljava/lang/String;)Lcom/taobao/weex/ui/component/WXComponent;
.registers 3
.line 38
invoke-static {}, Lcom/taobao/weex/WXSDKManager;->getInstance()Lcom/taobao/weex/WXSDKManager;
move-result-object v0
invoke-virtual {v0}, Lcom/taobao/weex/WXSDKManager;->getWXRenderManager()Lcom/taobao/weex/ui/WXRenderManager;
move-result-object v0
invoke-virtual {v0, p0, p1}, Lcom/taobao/weex/ui/WXRenderManager;->getWXComponent(Ljava/lang/String;Ljava/lang/String;)Lcom/taobao/weex/ui/component/WXComponent;
move-result-object p0
return-object p0
.end method
.method public static findViewByRef(Ljava/lang/String;Ljava/lang/String;)Landroid/view/View;
.registers 2
.line 29
invoke-static {p0, p1}, Lcom/alibaba/android/bindingx/plugin/weex/WXModuleUtils;->findComponentByRef(Ljava/lang/String;Ljava/lang/String;)Lcom/taobao/weex/ui/component/WXComponent;
move-result-object p0
if-nez p0, :cond_8
const/4 p0, 0x0
return-object p0
.line 33
:cond_8
invoke-virtual {p0}, Lcom/taobao/weex/ui/component/WXComponent;->getHostView()Landroid/view/View;
move-result-object p0
return-object p0
.end method