changed repo structure
This commit is contained in:
@@ -0,0 +1,327 @@
|
||||
.class public final Landroidx/lifecycle/ViewModelLazy;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ViewModelLazy.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Lkotlin/Lazy;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"<VM:",
|
||||
"Landroidx/lifecycle/ViewModel;",
|
||||
">",
|
||||
"Ljava/lang/Object;",
|
||||
"Lkotlin/Lazy<",
|
||||
"TVM;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Lkotlin/Metadata;
|
||||
d1 = {
|
||||
"\u00004\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\u0000\n\u0002\u0018\u0002\n\u0000\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\u0003BA\u0008\u0007\u0012\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0005\u0012\u000c\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u0007\u0012\u000c\u0010\t\u001a\u0008\u0012\u0004\u0012\u00020\n0\u0007\u0012\u000e\u0008\u0002\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u00020\u000c0\u0007\u00a2\u0006\u0002\u0010\rJ\u0008\u0010\u0013\u001a\u00020\u0014H\u0016R\u0012\u0010\u000e\u001a\u0004\u0018\u00018\u0000X\u0082\u000e\u00a2\u0006\u0004\n\u0002\u0010\u000fR\u0014\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u00020\u000c0\u0007X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\u0008\u0012\u0004\u0012\u00020\n0\u0007X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u0007X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0010\u001a\u00028\u00008VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0011\u0010\u0012R\u0014\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u00028\u00000\u0005X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0015"
|
||||
}
|
||||
d2 = {
|
||||
"Landroidx/lifecycle/ViewModelLazy;",
|
||||
"VM",
|
||||
"Landroidx/lifecycle/ViewModel;",
|
||||
"Lkotlin/Lazy;",
|
||||
"viewModelClass",
|
||||
"Lkotlin/reflect/KClass;",
|
||||
"storeProducer",
|
||||
"Lkotlin/Function0;",
|
||||
"Landroidx/lifecycle/ViewModelStore;",
|
||||
"factoryProducer",
|
||||
"Landroidx/lifecycle/ViewModelProvider$Factory;",
|
||||
"extrasProducer",
|
||||
"Landroidx/lifecycle/viewmodel/CreationExtras;",
|
||||
"(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V",
|
||||
"cached",
|
||||
"Landroidx/lifecycle/ViewModel;",
|
||||
"value",
|
||||
"getValue",
|
||||
"()Landroidx/lifecycle/ViewModel;",
|
||||
"isInitialized",
|
||||
"",
|
||||
"lifecycle-viewmodel_release"
|
||||
}
|
||||
k = 0x1
|
||||
mv = {
|
||||
0x1,
|
||||
0x8,
|
||||
0x0
|
||||
}
|
||||
xi = 0x30
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private cached:Landroidx/lifecycle/ViewModel;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"TVM;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private final extrasProducer:Lkotlin/jvm/functions/Function0;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"Landroidx/lifecycle/viewmodel/CreationExtras;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private final factoryProducer:Lkotlin/jvm/functions/Function0;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"Landroidx/lifecycle/ViewModelProvider$Factory;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private final storeProducer:Lkotlin/jvm/functions/Function0;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"Landroidx/lifecycle/ViewModelStore;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private final viewModelClass:Lkotlin/reflect/KClass;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/reflect/KClass<",
|
||||
"TVM;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
|
||||
.locals 8
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Lkotlin/reflect/KClass<",
|
||||
"TVM;>;",
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"+",
|
||||
"Landroidx/lifecycle/ViewModelStore;",
|
||||
">;",
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"+",
|
||||
"Landroidx/lifecycle/ViewModelProvider$Factory;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "viewModelClass"
|
||||
|
||||
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "storeProducer"
|
||||
|
||||
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "factoryProducer"
|
||||
|
||||
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/16 v6, 0x8
|
||||
|
||||
const/4 v7, 0x0
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
move-object v1, p0
|
||||
|
||||
move-object v2, p1
|
||||
|
||||
move-object v3, p2
|
||||
|
||||
move-object v4, p3
|
||||
|
||||
invoke-direct/range {v1 .. v7}, Landroidx/lifecycle/ViewModelLazy;-><init>(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Lkotlin/reflect/KClass<",
|
||||
"TVM;>;",
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"+",
|
||||
"Landroidx/lifecycle/ViewModelStore;",
|
||||
">;",
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"+",
|
||||
"Landroidx/lifecycle/ViewModelProvider$Factory;",
|
||||
">;",
|
||||
"Lkotlin/jvm/functions/Function0<",
|
||||
"+",
|
||||
"Landroidx/lifecycle/viewmodel/CreationExtras;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "viewModelClass"
|
||||
|
||||
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "storeProducer"
|
||||
|
||||
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "factoryProducer"
|
||||
|
||||
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "extrasProducer"
|
||||
|
||||
invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
.line 35
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
.line 36
|
||||
iput-object p1, p0, Landroidx/lifecycle/ViewModelLazy;->viewModelClass:Lkotlin/reflect/KClass;
|
||||
|
||||
.line 37
|
||||
iput-object p2, p0, Landroidx/lifecycle/ViewModelLazy;->storeProducer:Lkotlin/jvm/functions/Function0;
|
||||
|
||||
.line 38
|
||||
iput-object p3, p0, Landroidx/lifecycle/ViewModelLazy;->factoryProducer:Lkotlin/jvm/functions/Function0;
|
||||
|
||||
.line 39
|
||||
iput-object p4, p0, Landroidx/lifecycle/ViewModelLazy;->extrasProducer:Lkotlin/jvm/functions/Function0;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public synthetic constructor <init>(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
and-int/lit8 p5, p5, 0x8
|
||||
|
||||
if-eqz p5, :cond_0
|
||||
|
||||
.line 39
|
||||
sget-object p4, Landroidx/lifecycle/ViewModelLazy$1;->INSTANCE:Landroidx/lifecycle/ViewModelLazy$1;
|
||||
|
||||
check-cast p4, Lkotlin/jvm/functions/Function0;
|
||||
|
||||
.line 35
|
||||
:cond_0
|
||||
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/lifecycle/ViewModelLazy;-><init>(Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public getValue()Landroidx/lifecycle/ViewModel;
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()TVM;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 45
|
||||
iget-object v0, p0, Landroidx/lifecycle/ViewModelLazy;->cached:Landroidx/lifecycle/ViewModel;
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
.line 47
|
||||
iget-object v0, p0, Landroidx/lifecycle/ViewModelLazy;->factoryProducer:Lkotlin/jvm/functions/Function0;
|
||||
|
||||
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
check-cast v0, Landroidx/lifecycle/ViewModelProvider$Factory;
|
||||
|
||||
.line 48
|
||||
iget-object v1, p0, Landroidx/lifecycle/ViewModelLazy;->storeProducer:Lkotlin/jvm/functions/Function0;
|
||||
|
||||
invoke-interface {v1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Landroidx/lifecycle/ViewModelStore;
|
||||
|
||||
.line 49
|
||||
new-instance v2, Landroidx/lifecycle/ViewModelProvider;
|
||||
|
||||
.line 52
|
||||
iget-object v3, p0, Landroidx/lifecycle/ViewModelLazy;->extrasProducer:Lkotlin/jvm/functions/Function0;
|
||||
|
||||
invoke-interface {v3}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
check-cast v3, Landroidx/lifecycle/viewmodel/CreationExtras;
|
||||
|
||||
.line 49
|
||||
invoke-direct {v2, v1, v0, v3}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStore;Landroidx/lifecycle/ViewModelProvider$Factory;Landroidx/lifecycle/viewmodel/CreationExtras;)V
|
||||
|
||||
.line 53
|
||||
iget-object v0, p0, Landroidx/lifecycle/ViewModelLazy;->viewModelClass:Lkotlin/reflect/KClass;
|
||||
|
||||
invoke-static {v0}, Lkotlin/jvm/JvmClassMappingKt;->getJavaClass(Lkotlin/reflect/KClass;)Ljava/lang/Class;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v2, v0}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
.line 54
|
||||
iput-object v0, p0, Landroidx/lifecycle/ViewModelLazy;->cached:Landroidx/lifecycle/ViewModel;
|
||||
|
||||
:cond_0
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic getValue()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 35
|
||||
invoke-virtual {p0}, Landroidx/lifecycle/ViewModelLazy;->getValue()Landroidx/lifecycle/ViewModel;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public isInitialized()Z
|
||||
.locals 1
|
||||
|
||||
.line 61
|
||||
iget-object v0, p0, Landroidx/lifecycle/ViewModelLazy;->cached:Landroidx/lifecycle/ViewModel;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
return v0
|
||||
.end method
|
||||
Reference in New Issue
Block a user