apkfuckery/com.discord/smali_classes2/j0/p/b.smali

153 lines
3.3 KiB
Smali
Raw Normal View History

2020-07-20 19:00:44 +00:00
.class public abstract Lj0/p/b;
.super Ljava/lang/Object;
.source "ObservableProperty.kt"
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
# interfaces
.implements Lkotlin/properties/ReadWriteProperty;
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lkotlin/properties/ReadWriteProperty<",
"Ljava/lang/Object;",
"TT;>;"
}
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
# instance fields
.field public value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lj0/p/b;->value:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
return-void
.end method
# virtual methods
2020-07-20 19:00:44 +00:00
.method public abstract afterChange(Lkotlin/reflect/KProperty;Ljava/lang/Object;Ljava/lang/Object;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/reflect/KProperty<",
"*>;TT;TT;)V"
}
.end annotation
.end method
.method public beforeChange(Lkotlin/reflect/KProperty;Ljava/lang/Object;Ljava/lang/Object;)Z
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/reflect/KProperty<",
"*>;TT;TT;)Z"
}
.end annotation
if-eqz p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const-string p1, "property"
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/reflect/KProperty<",
"*>;)TT;"
}
.end annotation
if-eqz p2, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
iget-object p1, p0, Lj0/p/b;->value:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
return-object p1
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
:cond_0
const-string p1, "property"
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public setValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
"Lkotlin/reflect/KProperty<",
"*>;TT;)V"
}
.end annotation
if-eqz p2, :cond_1
iget-object p1, p0, Lj0/p/b;->value:Ljava/lang/Object;
invoke-virtual {p0, p2, p1, p3}, Lj0/p/b;->beforeChange(Lkotlin/reflect/KProperty;Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
iput-object p3, p0, Lj0/p/b;->value:Ljava/lang/Object;
invoke-virtual {p0, p2, p1, p3}, Lj0/p/b;->afterChange(Lkotlin/reflect/KProperty;Ljava/lang/Object;Ljava/lang/Object;)V
return-void
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
:cond_1
const-string p1, "property"
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
invoke-static {p1}, Lj0/o/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-20 19:00:44 +00:00
throw p1
2020-05-17 12:40:10 +00:00
.end method