apkfuckery/com.discord/smali_classes2/g0/f0$b.smali
2020-11-16 22:05:17 +00:00

297 lines
6.1 KiB
Smali

.class public final Lg0/f0$b;
.super Ljava/lang/Object;
.source "Utils.java"
# interfaces
.implements Ljava/lang/reflect/ParameterizedType;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lg0/f0;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# instance fields
.field public final d:Ljava/lang/reflect/Type;
.field public final e:Ljava/lang/reflect/Type;
.field public final f:[Ljava/lang/reflect/Type;
# direct methods
.method public varargs constructor <init>(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;[Ljava/lang/reflect/Type;)V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
instance-of v0, p2, Ljava/lang/Class;
const/4 v1, 0x0
if-eqz v0, :cond_3
const/4 v0, 0x1
if-nez p1, :cond_0
const/4 v2, 0x1
goto :goto_0
:cond_0
const/4 v2, 0x0
:goto_0
move-object v3, p2
check-cast v3, Ljava/lang/Class;
invoke-virtual {v3}, Ljava/lang/Class;->getEnclosingClass()Ljava/lang/Class;
move-result-object v3
if-nez v3, :cond_1
goto :goto_1
:cond_1
const/4 v0, 0x0
:goto_1
if-ne v2, v0, :cond_2
goto :goto_2
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
:cond_3
:goto_2
array-length v0, p3
:goto_3
if-ge v1, v0, :cond_4
aget-object v2, p3, v1
const-string v3, "typeArgument == null"
invoke-static {v2, v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-static {v2}, Lg0/f0;->b(Ljava/lang/reflect/Type;)V
add-int/lit8 v1, v1, 0x1
goto :goto_3
:cond_4
iput-object p1, p0, Lg0/f0$b;->d:Ljava/lang/reflect/Type;
iput-object p2, p0, Lg0/f0$b;->e:Ljava/lang/reflect/Type;
invoke-virtual {p3}, [Ljava/lang/reflect/Type;->clone()Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/reflect/Type;
iput-object p1, p0, Lg0/f0$b;->f:[Ljava/lang/reflect/Type;
return-void
.end method
# virtual methods
.method public equals(Ljava/lang/Object;)Z
.locals 1
instance-of v0, p1, Ljava/lang/reflect/ParameterizedType;
if-eqz v0, :cond_0
check-cast p1, Ljava/lang/reflect/ParameterizedType;
invoke-static {p0, p1}, Lg0/f0;->c(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
return p1
.end method
.method public getActualTypeArguments()[Ljava/lang/reflect/Type;
.locals 1
iget-object v0, p0, Lg0/f0$b;->f:[Ljava/lang/reflect/Type;
invoke-virtual {v0}, [Ljava/lang/reflect/Type;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/reflect/Type;
return-object v0
.end method
.method public getOwnerType()Ljava/lang/reflect/Type;
.locals 1
iget-object v0, p0, Lg0/f0$b;->d:Ljava/lang/reflect/Type;
return-object v0
.end method
.method public getRawType()Ljava/lang/reflect/Type;
.locals 1
iget-object v0, p0, Lg0/f0$b;->e:Ljava/lang/reflect/Type;
return-object v0
.end method
.method public hashCode()I
.locals 2
iget-object v0, p0, Lg0/f0$b;->f:[Ljava/lang/reflect/Type;
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v0
iget-object v1, p0, Lg0/f0$b;->e:Ljava/lang/reflect/Type;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
xor-int/2addr v0, v1
iget-object v1, p0, Lg0/f0$b;->d:Ljava/lang/reflect/Type;
if-eqz v1, :cond_0
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
xor-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 4
iget-object v0, p0, Lg0/f0$b;->f:[Ljava/lang/reflect/Type;
array-length v1, v0
if-nez v1, :cond_0
iget-object v0, p0, Lg0/f0$b;->e:Ljava/lang/reflect/Type;
invoke-static {v0}, Lg0/f0;->p(Ljava/lang/reflect/Type;)Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
new-instance v1, Ljava/lang/StringBuilder;
array-length v0, v0
const/4 v2, 0x1
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1e
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
iget-object v0, p0, Lg0/f0$b;->e:Ljava/lang/reflect/Type;
invoke-static {v0}, Lg0/f0;->p(Ljava/lang/reflect/Type;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "<"
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v0, p0, Lg0/f0$b;->f:[Ljava/lang/reflect/Type;
const/4 v3, 0x0
aget-object v0, v0, v3
invoke-static {v0}, Lg0/f0;->p(Ljava/lang/reflect/Type;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
iget-object v0, p0, Lg0/f0$b;->f:[Ljava/lang/reflect/Type;
array-length v0, v0
if-ge v2, v0, :cond_1
const-string v0, ", "
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v0, p0, Lg0/f0$b;->f:[Ljava/lang/reflect/Type;
aget-object v0, v0, v2
invoke-static {v0}, Lg0/f0;->p(Ljava/lang/reflect/Type;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
const-string v0, ">"
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method