mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
131 lines
3.2 KiB
Smali
131 lines
3.2 KiB
Smali
.class Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
.super Ljava/lang/Object;
|
|
.source "JavaObjectDeserializer.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
|
|
|
|
|
# static fields
|
|
.field public static final instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 14
|
|
new-instance v0, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
invoke-direct {v0}, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;-><init>()V
|
|
|
|
sput-object v0, Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;->instance:Lcom/alibaba/fastjson/parser/JavaObjectDeserializer;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public deserialze(Lcom/alibaba/fastjson/parser/DefaultJSONParser;Ljava/lang/reflect/Type;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lcom/alibaba/fastjson/parser/DefaultJSONParser;",
|
|
"Ljava/lang/reflect/Type;",
|
|
"Ljava/lang/Object;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 18
|
|
instance-of p0, p2, Ljava/lang/reflect/GenericArrayType;
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
.line 19
|
|
check-cast p2, Ljava/lang/reflect/GenericArrayType;
|
|
|
|
invoke-interface {p2}, Ljava/lang/reflect/GenericArrayType;->getGenericComponentType()Ljava/lang/reflect/Type;
|
|
|
|
move-result-object p0
|
|
|
|
.line 20
|
|
instance-of p2, p0, Ljava/lang/reflect/TypeVariable;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 21
|
|
check-cast p0, Ljava/lang/reflect/TypeVariable;
|
|
|
|
.line 22
|
|
invoke-interface {p0}, Ljava/lang/reflect/TypeVariable;->getBounds()[Ljava/lang/reflect/Type;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
aget-object p0, p0, p2
|
|
|
|
.line 25
|
|
:cond_0
|
|
new-instance p2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 26
|
|
invoke-virtual {p1, p0, p2}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseArray(Ljava/lang/reflect/Type;Ljava/util/Collection;)V
|
|
|
|
.line 28
|
|
instance-of p1, p0, Ljava/lang/Class;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 29
|
|
check-cast p0, Ljava/lang/Class;
|
|
|
|
.line 31
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
|
|
.line 32
|
|
invoke-interface {p2, p0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
return-object p0
|
|
|
|
.line 35
|
|
:cond_1
|
|
invoke-interface {p2}, Ljava/util/List;->toArray()[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 40
|
|
:cond_2
|
|
invoke-virtual {p1, p3}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|