.class public final Lbutterknife/a/c; .super Ljava/lang/Object; .source "Utils.java" # static fields .field private static final bX:Landroid/util/TypedValue; # direct methods .method static constructor ()V .locals 1 new-instance v0, Landroid/util/TypedValue; invoke-direct {v0}, Landroid/util/TypedValue;->()V sput-object v0, Lbutterknife/a/c;->bX:Landroid/util/TypedValue; return-void .end method .method public static a(Landroid/view/View;ILjava/lang/String;)Landroid/view/View; .locals 3 .param p1 # I .annotation build Landroidx/annotation/IdRes; .end annotation .end param invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object v0 if-eqz v0, :cond_0 return-object v0 :cond_0 invoke-static {p0, p1}, Lbutterknife/a/c;->a(Landroid/view/View;I)Ljava/lang/String; move-result-object p0 new-instance v0, Ljava/lang/IllegalStateException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Required view \'" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p0, "\' with ID " invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string p0, " for " invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p0, " was not found. If this view is optional add \'@Nullable\' (fields) or \'@Optional\' (methods) annotation." invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method .method public static a(Landroid/view/View;ILjava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; .locals 0 .param p1 # I .annotation build Landroidx/annotation/IdRes; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/view/View;", "I", "Ljava/lang/String;", "Ljava/lang/Class<", "TT;>;)TT;" } .end annotation invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p0 invoke-static {p0, p1, p2, p3}, Lbutterknife/a/c;->c(Landroid/view/View;ILjava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; move-result-object p0 return-object p0 .end method .method private static a(Landroid/view/View;I)Ljava/lang/String; .locals 1 .param p1 # I .annotation build Landroidx/annotation/IdRes; .end annotation .end param invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z move-result v0 if-eqz v0, :cond_0 const-string p0, "" return-object p0 :cond_0 invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context; move-result-object p0 invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources; move-result-object p0 invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getResourceEntryName(I)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method private static varargs a([Ljava/lang/Object;)[Ljava/lang/Object; .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "([TT;)[TT;" } .end annotation .annotation runtime Ljava/lang/SafeVarargs; .end annotation array-length v0, p0 const/4 v1, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 :goto_0 if-ge v2, v0, :cond_1 aget-object v4, p0, v2 if-eqz v4, :cond_0 add-int/lit8 v5, v3, 0x1 aput-object v4, p0, v3 move v3, v5 :cond_0 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_1 if-ne v3, v0, :cond_2 return-object p0 :cond_2 invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class; move-result-object v0 invoke-static {v0, v3}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object; move-result-object v0 check-cast v0, [Ljava/lang/Object; invoke-static {p0, v1, v0, v1, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V return-object v0 .end method .method public static b(Landroid/view/View;ILjava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; .locals 0 .param p1 # I .annotation build Landroidx/annotation/IdRes; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/view/View;", "I", "Ljava/lang/String;", "Ljava/lang/Class<", "TT;>;)TT;" } .end annotation invoke-static {p0, p1, p2}, Lbutterknife/a/c;->a(Landroid/view/View;ILjava/lang/String;)Landroid/view/View; move-result-object p0 invoke-static {p0, p1, p2, p3}, Lbutterknife/a/c;->c(Landroid/view/View;ILjava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; move-result-object p0 return-object p0 .end method .method public static varargs b([Ljava/lang/Object;)Ljava/util/List; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "([TT;)", "Ljava/util/List<", "TT;>;" } .end annotation .annotation runtime Ljava/lang/SafeVarargs; .end annotation new-instance v0, Lbutterknife/a/b; invoke-static {p0}, Lbutterknife/a/c;->a([Ljava/lang/Object;)[Ljava/lang/Object; move-result-object p0 invoke-direct {v0, p0}, Lbutterknife/a/b;->([Ljava/lang/Object;)V return-object v0 .end method .method public static c(Landroid/view/View;ILjava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; .locals 3 .param p1 # I .annotation build Landroidx/annotation/IdRes; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Landroid/view/View;", "I", "Ljava/lang/String;", "Ljava/lang/Class<", "TT;>;)TT;" } .end annotation :try_start_0 invoke-virtual {p3, p0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 :try_end_0 .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0 return-object p0 :catch_0 move-exception p3 invoke-static {p0, p1}, Lbutterknife/a/c;->a(Landroid/view/View;I)Ljava/lang/String; move-result-object p0 new-instance v0, Ljava/lang/IllegalStateException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "View \'" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p0, "\' with ID " invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string p0, " for " invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p0, " was of the wrong type. See cause for more info." invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0, p3}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v0 .end method