KTypeProjection.smali
.class public final Lkotlin/reflect/KTypeProjection;
.super Ljava/lang/Object;
.source "KTypeProjection.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lkotlin/reflect/KTypeProjection$Companion;,
Lkotlin/reflect/KTypeProjection$WhenMappings;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u0008\u0087\u0008\u0018\u0000 \u00152\u00020\u0001:\u0001\u0015B\u0019\u0012\u0008\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\u0008\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u00a2\u0006\u0002\u0010\u0006J\u000b\u0010\u000b\u001a\u0004\u0018\u00010\u0003H\u00c6\u0003J\u000b\u0010\u000c\u001a\u0004\u0018\u00010\u0005H\u00c6\u0003J!\u0010\r\u001a\u00020\u00002\n\u0008\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\u0008\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005H\u00c6\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\u0008\u0010\u0010\u001a\u0004\u0018\u00010\u0001H\u00d6\u0003J\t\u0010\u0011\u001a\u00020\u0012H\u00d6\u0001J\u0008\u0010\u0013\u001a\u00020\u0014H\u0016R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0007\u0010\u0008R\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\t\u0010\n\u00a8\u0006\u0016"
}
d2 = {
"Lkotlin/reflect/KTypeProjection;",
"",
"variance",
"Lkotlin/reflect/KVariance;",
"type",
"Lkotlin/reflect/KType;",
"(Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)V",
"getType",
"()Lkotlin/reflect/KType;",
"getVariance",
"()Lkotlin/reflect/KVariance;",
"component1",
"component2",
"copy",
"equals",
"",
"other",
"hashCode",
"",
"toString",
"",
"Companion",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x6,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final Companion:Lkotlin/reflect/KTypeProjection$Companion;
.field public static final star:Lkotlin/reflect/KTypeProjection;
# instance fields
.field private final type:Lkotlin/reflect/KType;
.field private final variance:Lkotlin/reflect/KVariance;
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Lkotlin/reflect/KTypeProjection$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lkotlin/reflect/KTypeProjection$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lkotlin/reflect/KTypeProjection;->Companion:Lkotlin/reflect/KTypeProjection$Companion;
.line 54
new-instance v0, Lkotlin/reflect/KTypeProjection;
invoke-direct {v0, v1, v1}, Lkotlin/reflect/KTypeProjection;-><init>(Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)V
sput-object v0, Lkotlin/reflect/KTypeProjection;->star:Lkotlin/reflect/KTypeProjection;
return-void
.end method
.method public constructor <init>(Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)V
.registers 6
.line 22
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 27
iput-object p1, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
.line 31
iput-object p2, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
const/4 v0, 0x1
const/4 v1, 0x0
if-nez p1, :cond_d
move v2, v0
goto :goto_e
:cond_d
move v2, v1
:goto_e
if-nez p2, :cond_12
move p2, v0
goto :goto_13
:cond_12
move p2, v1
:goto_13
if-ne v2, p2, :cond_16
goto :goto_17
:cond_16
move v0, v1
:goto_17
if-nez v0, :cond_41
if-nez p1, :cond_1e
const-string p1, "Star projection must have no type specified."
goto :goto_37
.line 39
:cond_1e
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "The projection variance "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p1
const-string p2, " requires type to be specified."
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 35
:goto_37
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
:cond_41
return-void
.end method
.method public static final contravariant(Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
.registers 2
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Lkotlin/reflect/KTypeProjection;->Companion:Lkotlin/reflect/KTypeProjection$Companion;
invoke-virtual {v0, p0}, Lkotlin/reflect/KTypeProjection$Companion;->contravariant(Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
move-result-object p0
return-object p0
.end method
.method public static synthetic copy$default(Lkotlin/reflect/KTypeProjection;Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;ILjava/lang/Object;)Lkotlin/reflect/KTypeProjection;
.registers 5
and-int/lit8 p4, p3, 0x1
if-eqz p4, :cond_6
iget-object p1, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
:cond_6
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_c
iget-object p2, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
:cond_c
invoke-virtual {p0, p1, p2}, Lkotlin/reflect/KTypeProjection;->copy(Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
move-result-object p0
return-object p0
.end method
.method public static final covariant(Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
.registers 2
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Lkotlin/reflect/KTypeProjection;->Companion:Lkotlin/reflect/KTypeProjection$Companion;
invoke-virtual {v0, p0}, Lkotlin/reflect/KTypeProjection$Companion;->covariant(Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
move-result-object p0
return-object p0
.end method
.method public static final invariant(Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
.registers 2
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
sget-object v0, Lkotlin/reflect/KTypeProjection;->Companion:Lkotlin/reflect/KTypeProjection$Companion;
invoke-virtual {v0, p0}, Lkotlin/reflect/KTypeProjection$Companion;->invariant(Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final component1()Lkotlin/reflect/KVariance;
.registers 2
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
return-object v0
.end method
.method public final component2()Lkotlin/reflect/KType;
.registers 2
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
return-object v0
.end method
.method public final copy(Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)Lkotlin/reflect/KTypeProjection;
.registers 4
new-instance v0, Lkotlin/reflect/KTypeProjection;
invoke-direct {v0, p1, p2}, Lkotlin/reflect/KTypeProjection;-><init>(Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)V
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.registers 6
const/4 v0, 0x1
if-ne p0, p1, :cond_4
return v0
:cond_4
instance-of v1, p1, Lkotlin/reflect/KTypeProjection;
const/4 v2, 0x0
if-nez v1, :cond_a
return v2
:cond_a
check-cast p1, Lkotlin/reflect/KTypeProjection;
iget-object v1, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
iget-object v3, p1, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
if-eq v1, v3, :cond_13
return v2
:cond_13
iget-object v1, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
iget-object p1, p1, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
invoke-static {v1, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_1e
return v2
:cond_1e
return v0
.end method
.method public final getType()Lkotlin/reflect/KType;
.registers 2
.line 31
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
return-object v0
.end method
.method public final getVariance()Lkotlin/reflect/KVariance;
.registers 2
.line 27
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
return-object v0
.end method
.method public hashCode()I
.registers 4
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
const/4 v1, 0x0
if-nez v0, :cond_7
move v0, v1
goto :goto_b
:cond_7
invoke-virtual {v0}, Lkotlin/reflect/KVariance;->hashCode()I
move-result v0
:goto_b
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
if-nez v2, :cond_12
goto :goto_16
:cond_12
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v1
:goto_16
add-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.registers 4
.line 43
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
const/4 v1, -0x1
if-nez v0, :cond_7
move v0, v1
goto :goto_f
:cond_7
sget-object v2, Lkotlin/reflect/KTypeProjection$WhenMappings;->$EnumSwitchMapping$0:[I
invoke-virtual {v0}, Lkotlin/reflect/KVariance;->ordinal()I
move-result v0
aget v0, v2, v0
:goto_f
if-eq v0, v1, :cond_53
const/4 v1, 0x1
if-eq v0, v1, :cond_4c
const/4 v1, 0x2
if-eq v0, v1, :cond_36
const/4 v1, 0x3
if-ne v0, v1, :cond_30
.line 47
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "out "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_55
:cond_30
new-instance v0, Lkotlin/NoWhenBranchMatchedException;
invoke-direct {v0}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
throw v0
.line 46
:cond_36
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "in "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_55
.line 45
:cond_4c
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
goto :goto_55
:cond_53
const-string v0, "*"
:goto_55
return-object v0
.end method