2020-04-17 19:35:49 +00:00
|
|
|
.class public final Ly/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
2019-12-21 01:41:59 +00:00
|
|
|
.source "Lazy.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/Lazy;
|
|
|
|
.implements Ljava/io/Serializable;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
2019-12-21 01:41:59 +00:00
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lkotlin/Lazy<",
|
|
|
|
"TT;>;",
|
|
|
|
"Ljava/io/Serializable;"
|
2019-12-06 03:29:40 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-21 01:41:59 +00:00
|
|
|
.field public _value:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.field public initializer:Lkotlin/jvm/functions/Function0;
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-12-21 01:41:59 +00:00
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"+TT;>;"
|
2019-12-06 03:29:40 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public constructor <init>(Lkotlin/jvm/functions/Function0;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 0
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
2019-12-21 01:41:59 +00:00
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"+TT;>;)V"
|
2019-12-06 03:29:40 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iput-object p1, p0, Ly/o;->initializer:Lkotlin/jvm/functions/Function0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
sget-object p1, Ly/m;->a:Ly/m;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iput-object p1, p0, Ly/o;->_value:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "initializer"
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-12-06 03:29:40 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.method private final writeReplace()Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
new-instance v0, Ly/b;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-virtual {p0}, Ly/o;->getValue()Ljava/lang/Object;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-direct {v0, v1}, Ly/b;-><init>(Ljava/lang/Object;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getValue()Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2019-12-21 01:41:59 +00:00
|
|
|
"()TT;"
|
2019-12-06 03:29:40 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iget-object v0, p0, Ly/o;->_value:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
sget-object v1, Ly/m;->a:Ly/m;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-ne v0, v1, :cond_1
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iget-object v0, p0, Ly/o;->initializer:Lkotlin/jvm/functions/Function0;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iput-object v0, p0, Ly/o;->_value:Ljava/lang/Object;
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iput-object v1, p0, Ly/o;->initializer:Lkotlin/jvm/functions/Function0;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-static {}, Ly/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
throw v1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:cond_1
|
|
|
|
:goto_0
|
2020-04-17 19:35:49 +00:00
|
|
|
iget-object v0, p0, Ly/o;->_value:Ljava/lang/Object;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
return-object v0
|
2019-12-06 03:29:40 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
.method public isInitialized()Z
|
|
|
|
.locals 2
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
iget-object v0, p0, Ly/o;->_value:Ljava/lang/Object;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
sget-object v1, Ly/m;->a:Ly/m;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v0
|
|
|
|
.end method
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 1
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-virtual {p0}, Ly/o;->isInitialized()Z
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-virtual {p0}, Ly/o;->getValue()Ljava/lang/Object;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string v0, "Lazy value not initialized yet."
|
|
|
|
|
|
|
|
:goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|