apkfuckery/com.discord/smali/b/p$b.smali

289 lines
6.1 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lb/p$b;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "Utils.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Ljava/lang/reflect/ParameterizedType;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lb/p;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "b"
.end annotation
# instance fields
.field private final ownerType:Ljava/lang/reflect/Type;
.field private final rawType:Ljava/lang/reflect/Type;
.field private final typeArguments:[Ljava/lang/reflect/Type;
# direct methods
.method 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}, Lb/p;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-static {v2}, Lb/p;->f(Ljava/lang/reflect/Type;)V
add-int/lit8 v1, v1, 0x1
goto :goto_3
:cond_4
iput-object p1, p0, Lb/p$b;->ownerType:Ljava/lang/reflect/Type;
iput-object p2, p0, Lb/p$b;->rawType: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, Lb/p$b;->typeArguments:[Ljava/lang/reflect/Type;
return-void
.end method
# virtual methods
.method public final 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}, Lb/p;->a(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public final getActualTypeArguments()[Ljava/lang/reflect/Type;
.locals 1
iget-object v0, p0, Lb/p$b;->typeArguments:[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 final getOwnerType()Ljava/lang/reflect/Type;
.locals 1
iget-object v0, p0, Lb/p$b;->ownerType:Ljava/lang/reflect/Type;
return-object v0
.end method
.method public final getRawType()Ljava/lang/reflect/Type;
.locals 1
iget-object v0, p0, Lb/p$b;->rawType:Ljava/lang/reflect/Type;
return-object v0
.end method
.method public final hashCode()I
.locals 2
iget-object v0, p0, Lb/p$b;->typeArguments:[Ljava/lang/reflect/Type;
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
move-result v0
iget-object v1, p0, Lb/p$b;->rawType:Ljava/lang/reflect/Type;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
xor-int/2addr v0, v1
iget-object v1, p0, Lb/p$b;->ownerType:Ljava/lang/reflect/Type;
2019-02-04 20:32:01 +00:00
invoke-static {v1}, Lb/p;->aH(Ljava/lang/Object;)I
2019-02-04 20:08:30 +00:00
move-result v1
xor-int/2addr v0, v1
return v0
.end method
.method public final toString()Ljava/lang/String;
.locals 4
iget-object v0, p0, Lb/p$b;->typeArguments:[Ljava/lang/reflect/Type;
2019-02-04 20:29:01 +00:00
array-length v1, v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v1, :cond_0
2019-02-04 20:08:30 +00:00
iget-object v0, p0, Lb/p$b;->rawType:Ljava/lang/reflect/Type;
invoke-static {v0}, Lb/p;->d(Ljava/lang/reflect/Type;)Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
2019-02-04 20:29:01 +00:00
new-instance v1, Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
array-length v0, v0
2019-02-04 20:08:30 +00:00
const/4 v2, 0x1
2019-02-04 20:29:01 +00:00
add-int/2addr v0, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
mul-int/lit8 v0, v0, 0x1e
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(I)V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget-object v0, p0, Lb/p$b;->rawType:Ljava/lang/reflect/Type;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-static {v0}, Lb/p;->d(Ljava/lang/reflect/Type;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const-string v0, "<"
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget-object v0, p0, Lb/p$b;->typeArguments:[Ljava/lang/reflect/Type;
2019-02-04 20:08:30 +00:00
const/4 v3, 0x0
2019-02-04 20:29:01 +00:00
aget-object v0, v0, v3
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-static {v0}, Lb/p;->d(Ljava/lang/reflect/Type;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
:goto_0
2019-02-04 20:29:01 +00:00
iget-object v0, p0, Lb/p$b;->typeArguments:[Ljava/lang/reflect/Type;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
array-length v0, v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-ge v2, v0, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
const-string v0, ", "
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget-object v0, p0, Lb/p$b;->typeArguments:[Ljava/lang/reflect/Type;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
aget-object v0, v0, v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-static {v0}, Lb/p;->d(Ljava/lang/reflect/Type;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
2019-02-04 20:29:01 +00:00
const-string v0, ">"
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object v0
return-object v0
.end method