2020-11-16 01:00:50 +00:00
|
|
|
.class public final Lz/e;
|
2020-11-12 02:11:44 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "LazyJVM.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/Lazy;
|
|
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lkotlin/Lazy<",
|
|
|
|
"TT;>;",
|
|
|
|
"Ljava/io/Serializable;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public volatile _value:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public initializer:Lkotlin/jvm/functions/Function0;
|
2020-11-12 02:11:44 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
|
|
"+TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
.field public final lock:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lkotlin/jvm/functions/Function0;Ljava/lang/Object;I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p2, p3, 0x2
|
|
|
|
|
|
|
|
const-string p2, "initializer"
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {p1, p2}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lz/e;->initializer:Lkotlin/jvm/functions/Function0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object p1, Lz/f;->a:Lz/f;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p1, p0, Lz/e;->_value:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object p0, p0, Lz/e;->lock:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final writeReplace()Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
new-instance v0, Lz/a;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {p0}, Lz/e;->getValue()Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-direct {v0, v1}, Lz/a;-><init>(Ljava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getValue()Ljava/lang/Object;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, p0, Lz/e;->_value:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object v1, Lz/f;->a:Lz/f;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, p0, Lz/e;->lock:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
monitor-enter v0
|
|
|
|
|
|
|
|
:try_start_0
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v1, p0, Lz/e;->_value:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object v2, Lz/f;->a:Lz/f;
|
|
|
|
|
|
|
|
if-eq v1, v2, :cond_1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v1, p0, Lz/e;->initializer:Lkotlin/jvm/functions/Function0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-static {v1}, Lz/n/c/j;->checkNotNull(Ljava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
move-result-object v1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object v1, p0, Lz/e;->_value:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
const/4 v2, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iput-object v2, p0, Lz/e;->initializer:Lkotlin/jvm/functions/Function0;
|
2020-11-12 02:11:44 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
monitor-exit v0
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
return-object v1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
monitor-exit v0
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
iget-object v0, p0, Lz/e;->_value:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
sget-object v1, Lz/f;->a:Lz/f;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2020-11-16 01:00:50 +00:00
|
|
|
invoke-virtual {p0}, Lz/e;->getValue()Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string v0, "Lazy value not initialized yet."
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-object v0
|
|
|
|
.end method
|