apkfuckery/com.discord/smali_classes2/q0/r.smali

1233 lines
27 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Lq0/r;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "Utils.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-07-08 16:44:49 +00:00
Lq0/r$c;,
Lq0/r$a;,
Lq0/r$b;
2020-05-17 12:40:10 +00:00
}
.end annotation
# static fields
.field public static final a:[Ljava/lang/reflect/Type;
# direct methods
.method public static constructor <clinit>()V
.locals 1
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/reflect/Type;
2020-07-08 16:44:49 +00:00
sput-object v0, Lq0/r;->a:[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
return-void
.end method
2020-07-08 16:44:49 +00:00
.method public static a(Lokhttp3/ResponseBody;)Lokhttp3/ResponseBody;
2020-05-17 12:40:10 +00:00
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-07-08 16:44:49 +00:00
new-instance v0, Lo0/e;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0}, Lo0/e;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Lokhttp3/ResponseBody;->c()Lo0/g;
2020-05-17 12:40:10 +00:00
move-result-object v1
2020-07-08 16:44:49 +00:00
invoke-interface {v1, v0}, Lo0/g;->D0(Lo0/u;)J
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
2020-05-17 12:40:10 +00:00
move-result-object v1
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Lokhttp3/ResponseBody;->a()J
2020-05-17 12:40:10 +00:00
move-result-wide v2
2020-07-08 16:44:49 +00:00
new-instance p0, Ln0/d0;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0, v0, v1, v2, v3}, Ln0/d0;-><init>(Lo0/g;Lokhttp3/MediaType;J)V
2020-05-17 12:40:10 +00:00
return-object p0
.end method
2020-07-08 16:44:49 +00:00
.method public static b(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;",
"Ljava/lang/String;",
")TT;"
}
.end annotation
if-eqz p0, :cond_0
return-object p0
:cond_0
new-instance p0, Ljava/lang/NullPointerException;
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.end method
2020-07-08 16:44:49 +00:00
.method public static c(Ljava/lang/reflect/Type;)V
.locals 1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v0, p0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Ljava/lang/Class;->isPrimitive()Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
:goto_0
return-void
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public static d(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;)Z
.locals 4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-08 16:44:49 +00:00
instance-of v1, p0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
instance-of v1, p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v1, p1, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v1, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
check-cast p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p1, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/ParameterizedType;->getOwnerType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/ParameterizedType;->getOwnerType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq v1, v3, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
2020-05-17 12:40:10 +00:00
:goto_0
2020-07-08 16:44:49 +00:00
const/4 v1, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_1
if-eqz v1, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/ParameterizedType;->getRawType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/ParameterizedType;->getRawType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/ParameterizedType;->getActualTypeArguments()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/ParameterizedType;->getActualTypeArguments()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
move-result-object p1
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p0, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_5
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_2
return v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_6
instance-of v1, p0, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v0, p1, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v0, :cond_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_7
check-cast p0, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p1, Ljava/lang/reflect/GenericArrayType;
invoke-interface {p0}, Ljava/lang/reflect/GenericArrayType;->getGenericComponentType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/GenericArrayType;->getGenericComponentType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1}, Lq0/r;->d(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_8
instance-of v1, p0, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_b
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v1, p1, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v1, :cond_9
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_9
check-cast p0, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p1, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/WildcardType;->getUpperBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/WildcardType;->getUpperBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v1, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_a
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/WildcardType;->getLowerBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/WildcardType;->getLowerBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p0, :cond_a
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_3
:cond_a
2020-05-17 12:40:10 +00:00
const/4 v0, 0x0
2020-07-08 16:44:49 +00:00
:goto_3
return v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_b
instance-of v1, p0, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v1, p1, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v1, :cond_c
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_c
check-cast p0, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p1, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/TypeVariable;->getGenericDeclaration()Ljava/lang/reflect/GenericDeclaration;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/TypeVariable;->getGenericDeclaration()Ljava/lang/reflect/GenericDeclaration;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne v1, v3, :cond_d
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/TypeVariable;->getName()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/TypeVariable;->getName()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p0, :cond_d
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_d
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_4
return v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_e
return v2
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public static e(Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
.locals 1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v0, p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v0, p0}, Lq0/r;->g(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v0, "Call return type must be parameterized as Call<Foo> or Call<? extends Foo>"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p0
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public static f(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/reflect/Type;",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Class<",
"*>;)",
"Ljava/lang/reflect/Type;"
}
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne p2, p1, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
invoke-virtual {p2}, Ljava/lang/Class;->isInterface()Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p0, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Ljava/lang/Class;->getInterfaces()[Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
array-length v1, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_0
if-ge v0, v1, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v2, p0, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne v2, p2, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Ljava/lang/Class;->getGenericInterfaces()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-08 16:44:49 +00:00
aget-object p0, p0, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
aget-object v2, p0, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2, v2}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v2, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Ljava/lang/Class;->getGenericInterfaces()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object p1, p1, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object p0, p0, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p1, p0, p2}, Lq0/r;->f(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
add-int/lit8 v0, v0, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
invoke-virtual {p1}, Ljava/lang/Class;->isInterface()Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p0, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_1
const-class p0, Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p1, p0, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne p0, p2, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Ljava/lang/Class;->getGenericSuperclass()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
invoke-virtual {p2, p0}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Ljava/lang/Class;->getGenericSuperclass()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p1, p0, p2}, Lq0/r;->f(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_5
move-object p1, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_6
return-object p2
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public static g(ILjava/lang/reflect/ParameterizedType;)Ljava/lang/reflect/Type;
.locals 4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p1}, Ljava/lang/reflect/ParameterizedType;->getActualTypeArguments()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ltz p0, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
array-length v1, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ge p0, v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object p0, v0, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of p1, p0, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/WildcardType;->getUpperBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object p0, p0, p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
new-instance v1, Ljava/lang/IllegalArgumentException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v2, "Index "
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, " not in range [0,"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v2, p0, v3}, Lf/e/b/a/a;->F(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
array-length v0, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v0, ") for "
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-08 16:44:49 +00:00
invoke-direct {v1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw v1
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public static h(Ljava/lang/reflect/Type;)Ljava/lang/Class;
.locals 3
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-08 16:44:49 +00:00
"(",
"Ljava/lang/reflect/Type;",
")",
2020-05-17 12:40:10 +00:00
"Ljava/lang/Class<",
2020-07-08 16:44:49 +00:00
"*>;"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-07-08 16:44:49 +00:00
const-string v0, "type == null"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, v0}, Lq0/r;->b(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v0, p0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-08 16:44:49 +00:00
instance-of v0, p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/ParameterizedType;->getRawType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
instance-of v0, p0, Ljava/lang/Class;
if-eqz v0, :cond_1
check-cast p0, Ljava/lang/Class;
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
2020-05-17 12:40:10 +00:00
new-instance p0, Ljava/lang/IllegalArgumentException;
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p0
2020-07-08 16:44:49 +00:00
:cond_2
instance-of v0, p0, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/GenericArrayType;->getGenericComponentType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0}, Lq0/r;->h(Ljava/lang/reflect/Type;)Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
instance-of v0, p0, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-class p0, Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
instance-of v0, p0, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/WildcardType;->getUpperBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object p0, p0, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0}, Lq0/r;->h(Ljava/lang/reflect/Type;)Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_5
new-instance v0, Ljava/lang/IllegalArgumentException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v1, Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v2, "Expected a Class, ParameterizedType, or GenericArrayType, but <"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v2, "> is of type "
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-08 16:44:49 +00:00
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw v0
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public static i(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/reflect/Type;",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Class<",
"*>;)",
"Ljava/lang/reflect/Type;"
}
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1, p2}, Lq0/r;->f(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1, p2}, Lq0/r;->k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p0
.end method
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
.method public static j(Ljava/lang/reflect/Type;)Z
.locals 5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v0, p0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
instance-of v0, p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v2, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/ParameterizedType;->getActualTypeArguments()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
array-length v0, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_0
if-ge v3, v0, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v4, p0, v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {v4}, Lq0/r;->j(Ljava/lang/reflect/Type;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v4, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
add-int/lit8 v3, v3, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
return v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
instance-of v0, p0, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p0, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p0}, Ljava/lang/reflect/GenericArrayType;->getGenericComponentType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
invoke-static {p0}, Lq0/r;->j(Ljava/lang/reflect/Type;)Z
2020-05-17 12:40:10 +00:00
move-result p0
2020-07-08 16:44:49 +00:00
return p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
instance-of v0, p0, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_5
instance-of v0, p0, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_6
if-nez p0, :cond_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v0, "null"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_7
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_1
new-instance v1, Ljava/lang/IllegalArgumentException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v2, Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v3, "Expected a Class, ParameterizedType, or GenericArrayType, but <"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string p0, "> is of type "
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw v1
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public static k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
.locals 8
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-08 16:44:49 +00:00
"(",
"Ljava/lang/reflect/Type;",
2020-05-17 12:40:10 +00:00
"Ljava/lang/Class<",
2020-07-08 16:44:49 +00:00
"*>;",
"Ljava/lang/reflect/Type;",
")",
"Ljava/lang/reflect/Type;"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-07-08 16:44:49 +00:00
:goto_0
instance-of v0, p2, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
const/4 v1, 0x0
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p2, Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p2}, Ljava/lang/reflect/TypeVariable;->getGenericDeclaration()Ljava/lang/reflect/GenericDeclaration;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v2, v0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v2, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
:cond_0
const/4 v0, 0x0
2020-07-08 16:44:49 +00:00
:goto_1
if-nez v0, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
invoke-static {p0, p1, v0}, Lq0/r;->f(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
instance-of v3, v2, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v3, :cond_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Ljava/lang/Class;->getTypeParameters()[Ljava/lang/reflect/TypeVariable;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_2
array-length v3, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ge v1, v3, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v3, v0, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p2, v3}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v3, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v2, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {v2}, Ljava/lang/reflect/ParameterizedType;->getActualTypeArguments()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v0, v0, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
add-int/lit8 v1, v1, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
new-instance p0, Ljava/util/NoSuchElementException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Ljava/util/NoSuchElementException;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_4
:goto_3
move-object v0, p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_4
if-ne v0, p2, :cond_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_5
move-object p2, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_6
instance-of v0, p2, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v0, p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v0, Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Ljava/lang/Class;->isArray()Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v2, :cond_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1, p2}, Lq0/r;->k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-08 16:44:49 +00:00
if-ne p2, p0, :cond_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_5
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_7
new-instance v0, Lq0/r$a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0, p0}, Lq0/r$a;-><init>(Ljava/lang/reflect/Type;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_5
return-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_8
instance-of v0, p2, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_a
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p2, Ljava/lang/reflect/GenericArrayType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p2}, Ljava/lang/reflect/GenericArrayType;->getGenericComponentType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1, v0}, Lq0/r;->k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-08 16:44:49 +00:00
if-ne v0, p0, :cond_9
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_9
new-instance p2, Lq0/r$a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p2, p0}, Lq0/r$a;-><init>(Ljava/lang/reflect/Type;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_6
return-object p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_a
instance-of v0, p2, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v2, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_10
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p2, Ljava/lang/reflect/ParameterizedType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p2}, Ljava/lang/reflect/ParameterizedType;->getOwnerType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1, v0}, Lq0/r;->k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq v3, v0, :cond_b
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_7
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_b
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_7
invoke-interface {p2}, Ljava/lang/reflect/ParameterizedType;->getActualTypeArguments()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
array-length v5, v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_8
if-ge v1, v5, :cond_e
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v6, v4, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1, v6}, Lq0/r;->k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v6
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v7, v4, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq v6, v7, :cond_d
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v0, :cond_c
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v4}, [Ljava/lang/reflect/Type;->clone()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object v4, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast v4, [Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v0, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_c
aput-object v6, v4, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_d
add-int/lit8 v1, v1, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_8
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_e
if-eqz v0, :cond_f
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance p0, Lq0/r$b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p2}, Ljava/lang/reflect/ParameterizedType;->getRawType()Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p0, v3, p1, v4}, Lq0/r$b;-><init>(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;[Ljava/lang/reflect/Type;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-object p2, p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_f
return-object p2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_10
instance-of v0, p2, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
check-cast p2, Ljava/lang/reflect/WildcardType;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p2}, Ljava/lang/reflect/WildcardType;->getLowerBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-interface {p2}, Ljava/lang/reflect/WildcardType;->getUpperBounds()[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
array-length v4, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne v4, v2, :cond_11
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v3, v0, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p0, p1, v3}, Lq0/r;->k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object p1, v0, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p0, p1, :cond_12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance p1, Lq0/r$c;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-array p2, v2, [Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-class v0, Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object v0, p2, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-array v0, v2, [Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object p0, v0, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1, p2, v0}, Lq0/r$c;-><init>([Ljava/lang/reflect/Type;[Ljava/lang/reflect/Type;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_11
array-length v0, v3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ne v0, v2, :cond_12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object v0, v3, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:try_start_0
invoke-static {p0, p1, v0}, Lq0/r;->k(Ljava/lang/reflect/Type;Ljava/lang/Class;Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aget-object p1, v3, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq p0, p1, :cond_12
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance p1, Lq0/r$c;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-array p2, v2, [Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
aput-object p0, p2, v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object p0, Lq0/r;->a:[Ljava/lang/reflect/Type;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1, p2, p0}, Lq0/r$c;-><init>([Ljava/lang/reflect/Type;[Ljava/lang/reflect/Type;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object p1
:catchall_0
move-exception p0
throw p0
:cond_12
return-object p2
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public static l(Ljava/lang/reflect/Type;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
.locals 1
instance-of v0, p0, Ljava/lang/Class;
if-eqz v0, :cond_0
check-cast p0, Ljava/lang/Class;
invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object p0
goto :goto_0
:cond_0
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p0
:goto_0
return-object p0
.end method