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;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
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,
0x4,
0x0
}
.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 5
.line 23
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
iput-object p2, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
const/4 p2, 0x1
const/4 v0, 0x0
if-nez p1, :cond_d
const/4 p1, 0x1
goto :goto_e
:cond_d
const/4 p1, 0x0
.line 35
:goto_e
iget-object v1, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
if-nez v1, :cond_14
const/4 v1, 0x1
goto :goto_15
:cond_14
const/4 v1, 0x0
:goto_15
if-ne p1, v1, :cond_18
goto :goto_19
:cond_18
const/4 p2, 0x0
:goto_19
if-nez p2, :cond_46
.line 36
iget-object p1, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
if-nez p1, :cond_22
const-string p1, "Star projection must have no type specified."
goto :goto_3a
.line 39
:cond_22
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const-string p2, "The projection variance "
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object p2, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string p2, " requires type to be specified."
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 35
:goto_3a
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
check-cast p2, Ljava/lang/Throwable;
throw p2
:cond_46
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 4
if-eq p0, p1, :cond_1f
instance-of v0, p1, Lkotlin/reflect/KTypeProjection;
if-eqz v0, :cond_1d
check-cast p1, Lkotlin/reflect/KTypeProjection;
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
iget-object v1, p1, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1d
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
iget-object p1, p1, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
invoke-static {v0, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_1d
goto :goto_1f
:cond_1d
const/4 p1, 0x0
return p1
:cond_1f
:goto_1f
const/4 p1, 0x1
return p1
.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-eqz v0, :cond_a
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, Lkotlin/reflect/KTypeProjection;->type:Lkotlin/reflect/KType;
if-eqz v2, :cond_15
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v1
:cond_15
add-int/2addr v0, v1
return v0
.end method
.method public toString()Ljava/lang/String;
.registers 3
.line 43
iget-object v0, p0, Lkotlin/reflect/KTypeProjection;->variance:Lkotlin/reflect/KVariance;
if-nez v0, :cond_7
const-string v0, "*"
goto :goto_4c
:cond_7
sget-object v1, Lkotlin/reflect/KTypeProjection$WhenMappings;->$EnumSwitchMapping$0:[I
invoke-virtual {v0}, Lkotlin/reflect/KVariance;->ordinal()I
move-result v0
aget v0, v1, v0
const/4 v1, 0x1
if-eq v0, v1, :cond_46
const/4 v1, 0x2
if-eq v0, v1, :cond_32
const/4 v1, 0x3
if-ne v0, v1, :cond_2c
.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;
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;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_4c
:cond_2c
new-instance v0, Lkotlin/NoWhenBranchMatchedException;
invoke-direct {v0}, Lkotlin/NoWhenBranchMatchedException;-><init>()V
throw v0
.line 46
:cond_32
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;
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;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
goto :goto_4c
.line 45
:cond_46
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_4c
return-object v0
.end method