248 lines
4.8 KiB
Smali
248 lines
4.8 KiB
Smali
.class public final Lkotlin/jvm/a;
|
|
.super Ljava/lang/Object;
|
|
.source "JvmClassMapping.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final b(Lkotlin/reflect/b;)Ljava/lang/Class;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlin/reflect/b<",
|
|
"TT;>;)",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$java"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p0, Lkotlin/jvm/internal/d;
|
|
|
|
invoke-interface {p0}, Lkotlin/jvm/internal/d;->zF()Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
const-string v0, "null cannot be cast to non-null type java.lang.Class<T>"
|
|
|
|
invoke-direct {p0, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final c(Lkotlin/reflect/b;)Ljava/lang/Class;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkotlin/reflect/b<",
|
|
"TT;>;)",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "$this$javaObjectType"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast p0, Lkotlin/jvm/internal/d;
|
|
|
|
invoke-interface {p0}, Lkotlin/jvm/internal/d;->zF()Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Class;->isPrimitive()Z
|
|
|
|
move-result v0
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.Class<T>"
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
invoke-direct {p0, v1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v2
|
|
|
|
sparse-switch v2, :sswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v2, "short"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Short;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v2, "float"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Float;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_2
|
|
const-string v2, "boolean"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Boolean;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_3
|
|
const-string v2, "void"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Void;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_4
|
|
const-string v2, "long"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Long;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_5
|
|
const-string v2, "char"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Character;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_6
|
|
const-string v2, "byte"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Byte;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_7
|
|
const-string v2, "int"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Integer;
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_8
|
|
const-string v2, "double"
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Double;
|
|
|
|
:cond_3
|
|
:goto_0
|
|
if-eqz p0, :cond_4
|
|
|
|
return-object p0
|
|
|
|
:cond_4
|
|
new-instance p0, Lkotlin/r;
|
|
|
|
invoke-direct {p0, v1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x4f08842f -> :sswitch_8
|
|
0x197ef -> :sswitch_7
|
|
0x2e6108 -> :sswitch_6
|
|
0x2e9356 -> :sswitch_5
|
|
0x32c67c -> :sswitch_4
|
|
0x375194 -> :sswitch_3
|
|
0x3db6c28 -> :sswitch_2
|
|
0x5d0225c -> :sswitch_1
|
|
0x685847c -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|