Rabbit-R1/original r1/smali/smali_classes2/androidx/navigation/NavArgsLazy.smali
2024-05-21 17:08:36 -04:00

246 lines
7.3 KiB
Smali

.class public final Landroidx/navigation/NavArgsLazy;
.super Ljava/lang/Object;
.source "NavArgsLazy.kt"
# interfaces
.implements Lkotlin/Lazy;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<Args::",
"Landroidx/navigation/NavArgs;",
">",
"Ljava/lang/Object;",
"Lkotlin/Lazy<",
"TArgs;>;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000(\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0010\u000b\n\u0000\u0018\u0000*\u0008\u0008\u0000\u0010\u0001*\u00020\u00022\u0008\u0012\u0004\u0012\u0002H\u00010\u0003B!\u0012\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0005\u0012\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u0007\u00a2\u0006\u0002\u0010\tJ\u0008\u0010\u000f\u001a\u00020\u0010H\u0016R\u0014\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u0007X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0012\u0010\n\u001a\u0004\u0018\u00018\u0000X\u0082\u000e\u00a2\u0006\u0004\n\u0002\u0010\u000bR\u0014\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0005X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u000c\u001a\u00028\u00008VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\r\u0010\u000e\u00a8\u0006\u0011"
}
d2 = {
"Landroidx/navigation/NavArgsLazy;",
"Args",
"Landroidx/navigation/NavArgs;",
"Lkotlin/Lazy;",
"navArgsClass",
"Lkotlin/reflect/KClass;",
"argumentProducer",
"Lkotlin/Function0;",
"Landroid/os/Bundle;",
"(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;)V",
"cached",
"Landroidx/navigation/NavArgs;",
"value",
"getValue",
"()Landroidx/navigation/NavArgs;",
"isInitialized",
"",
"navigation-common_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private final argumentProducer:Lkotlin/jvm/functions/Function0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function0<",
"Landroid/os/Bundle;",
">;"
}
.end annotation
.end field
.field private cached:Landroidx/navigation/NavArgs;
.annotation system Ldalvik/annotation/Signature;
value = {
"TArgs;"
}
.end annotation
.end field
.field private final navArgsClass:Lkotlin/reflect/KClass;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/reflect/KClass<",
"TArgs;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/reflect/KClass<",
"TArgs;>;",
"Lkotlin/jvm/functions/Function0<",
"Landroid/os/Bundle;",
">;)V"
}
.end annotation
const-string v0, "navArgsClass"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "argumentProducer"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 35
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/navigation/NavArgsLazy;->navArgsClass:Lkotlin/reflect/KClass;
iput-object p2, p0, Landroidx/navigation/NavArgsLazy;->argumentProducer:Lkotlin/jvm/functions/Function0;
return-void
.end method
# virtual methods
.method public getValue()Landroidx/navigation/NavArgs;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TArgs;"
}
.end annotation
iget-object v0, p0, Landroidx/navigation/NavArgsLazy;->cached:Landroidx/navigation/NavArgs;
if-nez v0, :cond_1
iget-object v0, p0, Landroidx/navigation/NavArgsLazy;->argumentProducer:Lkotlin/jvm/functions/Function0;
.line 45
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/os/Bundle;
.line 46
invoke-static {}, Landroidx/navigation/NavArgsLazyKt;->getMethodMap()Landroidx/collection/ArrayMap;
move-result-object v1
iget-object v2, p0, Landroidx/navigation/NavArgsLazy;->navArgsClass:Lkotlin/reflect/KClass;
invoke-virtual {v1, v2}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/reflect/Method;
if-nez v1, :cond_0
iget-object v1, p0, Landroidx/navigation/NavArgsLazy;->navArgsClass:Lkotlin/reflect/KClass;
.line 47
invoke-static {v1}, Lkotlin/jvm/JvmClassMappingKt;->getJavaClass(Lkotlin/reflect/KClass;)Ljava/lang/Class;
move-result-object v1
invoke-static {}, Landroidx/navigation/NavArgsLazyKt;->getMethodSignature()[Ljava/lang/Class;
move-result-object v2
array-length v3, v2
invoke-static {v2, v3}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v2
check-cast v2, [Ljava/lang/Class;
const-string v3, "fromBundle"
invoke-virtual {v1, v3, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
.line 49
invoke-static {}, Landroidx/navigation/NavArgsLazyKt;->getMethodMap()Landroidx/collection/ArrayMap;
move-result-object v2
check-cast v2, Ljava/util/Map;
iget-object v3, p0, Landroidx/navigation/NavArgsLazy;->navArgsClass:Lkotlin/reflect/KClass;
invoke-interface {v2, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
const-string v2, "navArgsClass.java.getMet\u2026hod\n }"
.line 47
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
:cond_0
const/4 v2, 0x0
.line 54
filled-new-array {v0}, [Ljava/lang/Object;
move-result-object v0
invoke-virtual {v1, v2, v0}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const-string v1, "null cannot be cast to non-null type Args of androidx.navigation.NavArgsLazy"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, Landroidx/navigation/NavArgs;
iput-object v0, p0, Landroidx/navigation/NavArgsLazy;->cached:Landroidx/navigation/NavArgs;
:cond_1
return-object v0
.end method
.method public bridge synthetic getValue()Ljava/lang/Object;
.locals 0
.line 35
invoke-virtual {p0}, Landroidx/navigation/NavArgsLazy;->getValue()Landroidx/navigation/NavArgs;
move-result-object p0
return-object p0
.end method
.method public isInitialized()Z
.locals 0
iget-object p0, p0, Landroidx/navigation/NavArgsLazy;->cached:Landroidx/navigation/NavArgs;
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method