mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
88 lines
2.3 KiB
Smali
88 lines
2.3 KiB
Smali
|
.class public Lcom/alibaba/fastjson/serializer/StringCodec;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "StringCodec.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lcom/alibaba/fastjson/serializer/ObjectSerializer;
|
||
|
.implements Lcom/alibaba/fastjson/parser/deserializer/ObjectDeserializer;
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static instance:Lcom/alibaba/fastjson/serializer/StringCodec;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 29
|
||
|
new-instance v0, Lcom/alibaba/fastjson/serializer/StringCodec;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/alibaba/fastjson/serializer/StringCodec;-><init>()V
|
||
|
|
||
|
sput-object v0, Lcom/alibaba/fastjson/serializer/StringCodec;->instance:Lcom/alibaba/fastjson/serializer/StringCodec;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
.line 31
|
||
|
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 50
|
||
|
invoke-virtual {p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public write(Lcom/alibaba/fastjson/serializer/JSONSerializer;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/reflect/Type;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 36
|
||
|
check-cast p2, Ljava/lang/String;
|
||
|
|
||
|
.line 38
|
||
|
iget-object p0, p1, Lcom/alibaba/fastjson/serializer/JSONSerializer;->out:Lcom/alibaba/fastjson/serializer/SerializeWriter;
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
.line 41
|
||
|
invoke-virtual {p0}, Lcom/alibaba/fastjson/serializer/SerializeWriter;->writeNull()V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 45
|
||
|
:cond_0
|
||
|
invoke-virtual {p0, p2}, Lcom/alibaba/fastjson/serializer/SerializeWriter;->writeString(Ljava/lang/String;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|