218 lines
4.4 KiB
Smali
218 lines
4.4 KiB
Smali
.class public Lk0/o/c/v;
|
|
.super Ljava/lang/Object;
|
|
.source "TypeIntrinsics.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static asMutableCollection(Ljava/lang/Object;)Ljava/util/Collection;
|
|
.locals 2
|
|
|
|
instance-of v0, p0, Lk0/o/c/w/a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
instance-of v0, p0, Lk0/o/c/w/b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "kotlin.collections.MutableCollection"
|
|
|
|
invoke-static {p0, v0}, Lk0/o/c/v;->throwCce(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
:try_start_0
|
|
check-cast p0, Ljava/util/Collection;
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {p0}, Lk0/o/c/v;->throwCce(Ljava/lang/ClassCastException;)Ljava/lang/ClassCastException;
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public static asMutableMap(Ljava/lang/Object;)Ljava/util/Map;
|
|
.locals 2
|
|
|
|
instance-of v0, p0, Lk0/o/c/w/a;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
instance-of v0, p0, Lk0/o/c/w/d;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "kotlin.collections.MutableMap"
|
|
|
|
invoke-static {p0, v0}, Lk0/o/c/v;->throwCce(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
:try_start_0
|
|
check-cast p0, Ljava/util/Map;
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
invoke-static {p0}, Lk0/o/c/v;->throwCce(Ljava/lang/ClassCastException;)Ljava/lang/ClassCastException;
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public static beforeCheckcastToFunctionOfArity(Ljava/lang/Object;I)Ljava/lang/Object;
|
|
.locals 3
|
|
|
|
instance-of v0, p0, Lk0/o/c/f;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lk0/o/c/f;
|
|
|
|
invoke-interface {v0}, Lk0/o/c/f;->getArity()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
instance-of v0, p0, Lkotlin/jvm/functions/Function0;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
instance-of v0, p0, Lkotlin/jvm/functions/Function1;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v0, 0x2
|
|
|
|
:goto_0
|
|
if-ne v0, p1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_4
|
|
|
|
return-object p0
|
|
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "kotlin.jvm.functions.Function"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p0, p1}, Lk0/o/c/v;->throwCce(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static throwCce(Ljava/lang/ClassCastException;)Ljava/lang/ClassCastException;
|
|
.locals 1
|
|
|
|
const-class v0, Lk0/o/c/v;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p0, v0}, Lk0/o/c/i;->c(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static throwCce(Ljava/lang/Object;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const-string p0, "null"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
const-string v0, " cannot be cast to "
|
|
|
|
invoke-static {p0, v0, p1}, Lf/e/b/a/a;->q(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/ClassCastException;
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/ClassCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {p1}, Lk0/o/c/v;->throwCce(Ljava/lang/ClassCastException;)Ljava/lang/ClassCastException;
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|