Rabbit-R1/original r1/smali/smali_classes2/com/alibaba/fastjson/JSONReader.smali
2024-05-21 17:08:36 -04:00

980 lines
25 KiB
Smali

.class public Lcom/alibaba/fastjson/JSONReader;
.super Ljava/lang/Object;
.source "JSONReader.java"
# interfaces
.implements Ljava/io/Closeable;
# instance fields
.field private context:Lcom/alibaba/fastjson/JSONStreamContext;
.field private final parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.field private reader:Ljava/io/Reader;
# direct methods
.method public constructor <init>(Lcom/alibaba/fastjson/parser/DefaultJSONParser;)V
.locals 0
.line 56
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
return-void
.end method
.method public constructor <init>(Lcom/alibaba/fastjson/parser/JSONLexer;)V
.locals 1
.line 53
new-instance v0, Lcom/alibaba/fastjson/parser/DefaultJSONParser;
invoke-direct {v0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;-><init>(Lcom/alibaba/fastjson/parser/JSONLexer;)V
invoke-direct {p0, v0}, Lcom/alibaba/fastjson/JSONReader;-><init>(Lcom/alibaba/fastjson/parser/DefaultJSONParser;)V
return-void
.end method
.method public constructor <init>(Ljava/io/Reader;)V
.locals 2
.line 29
new-instance v0, Lcom/alibaba/fastjson/parser/JSONLexer;
invoke-static {p1}, Lcom/alibaba/fastjson/JSONReader;->readAll(Ljava/io/Reader;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Lcom/alibaba/fastjson/parser/JSONLexer;-><init>(Ljava/lang/String;)V
invoke-direct {p0, v0}, Lcom/alibaba/fastjson/JSONReader;-><init>(Lcom/alibaba/fastjson/parser/JSONLexer;)V
iput-object p1, p0, Lcom/alibaba/fastjson/JSONReader;->reader:Ljava/io/Reader;
return-void
.end method
.method private endStructure()V
.locals 2
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
.line 115
iget-object v0, v0, Lcom/alibaba/fastjson/JSONStreamContext;->parent:Lcom/alibaba/fastjson/JSONStreamContext;
iput-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
return-void
.line 121
:cond_0
iget v0, v0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
const/4 v1, -0x1
packed-switch v0, :pswitch_data_0
move v0, v1
goto :goto_0
:pswitch_0
const/16 v0, 0x3ed
goto :goto_0
:pswitch_1
const/16 v0, 0x3eb
goto :goto_0
:pswitch_2
const/16 v0, 0x3ea
:goto_0
if-eq v0, v1, :cond_1
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
.line 138
iput v0, p0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
:cond_1
return-void
:pswitch_data_0
.packed-switch 0x3e9
:pswitch_2
:pswitch_1
:pswitch_2
:pswitch_0
.end packed-switch
.end method
.method private readAfter()V
.locals 3
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
.line 296
iget v0, v0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
const/16 v1, 0x3ea
const/4 v2, -0x1
packed-switch v0, :pswitch_data_0
.line 314
new-instance p0, Lcom/alibaba/fastjson/JSONException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "illegal state : "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
throw p0
:pswitch_0
move v1, v2
goto :goto_0
:pswitch_1
const/16 v1, 0x3ed
goto :goto_0
:pswitch_2
const/16 v1, 0x3eb
:goto_0
:pswitch_3
if-eq v1, v2, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
.line 317
iput v1, p0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
:cond_0
return-void
nop
:pswitch_data_0
.packed-switch 0x3e9
:pswitch_3
:pswitch_2
:pswitch_3
:pswitch_1
:pswitch_0
.end packed-switch
.end method
.method static readAll(Ljava/io/Reader;)Ljava/lang/String;
.locals 5
.line 34
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const/16 v1, 0x800
:try_start_0
new-array v2, v1, [C
:goto_0
const/4 v3, 0x0
.line 39
invoke-virtual {p0, v2, v3, v1}, Ljava/io/Reader;->read([CII)I
move-result v4
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
if-gez v4, :cond_0
.line 49
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.line 43
:cond_0
:try_start_1
invoke-virtual {v0, v2, v3, v4}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 46
new-instance v0, Lcom/alibaba/fastjson/JSONException;
const-string v1, "read string from reader error"
invoke-direct {v0, v1, p0}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method private readBefore()V
.locals 3
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
.line 276
iget v0, v0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
packed-switch v0, :pswitch_data_0
.line 291
new-instance p0, Lcom/alibaba/fastjson/JSONException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "illegal state : "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
throw p0
:pswitch_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v0, 0x10
.line 284
invoke-virtual {p0, v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
goto :goto_0
:pswitch_1
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v0, 0x11
.line 280
invoke-virtual {p0, v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
:goto_0
:pswitch_2
return-void
:pswitch_data_0
.packed-switch 0x3e9
:pswitch_2
:pswitch_1
:pswitch_0
:pswitch_2
:pswitch_0
.end packed-switch
.end method
.method private startStructure()V
.locals 3
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
.line 97
iget v0, v0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
packed-switch v0, :pswitch_data_0
.line 110
new-instance v0, Lcom/alibaba/fastjson/JSONException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "illegal state : "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
iget p0, p0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
throw v0
:pswitch_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v0, 0x10
.line 104
invoke-virtual {p0, v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
goto :goto_0
:pswitch_1
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v0, 0x11
.line 100
invoke-virtual {p0, v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
:goto_0
:pswitch_2
return-void
:pswitch_data_0
.packed-switch 0x3e9
:pswitch_2
:pswitch_1
:pswitch_0
:pswitch_2
:pswitch_0
.end packed-switch
.end method
# virtual methods
.method public close()V
.locals 2
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 166
iget-object v0, v0, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->lexer:Lcom/alibaba/fastjson/parser/JSONLexer;
invoke-virtual {v0}, Lcom/alibaba/fastjson/parser/JSONLexer;->close()V
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->reader:Ljava/io/Reader;
if-eqz p0, :cond_0
.line 169
:try_start_0
invoke-virtual {p0}, Ljava/io/Reader;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 171
new-instance v0, Lcom/alibaba/fastjson/JSONException;
const-string v1, "closed reader error"
invoke-direct {v0, v1, p0}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
:cond_0
:goto_0
return-void
.end method
.method public config(Lcom/alibaba/fastjson/parser/Feature;Z)V
.locals 0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 61
invoke-virtual {p0, p1, p2}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->config(Lcom/alibaba/fastjson/parser/Feature;Z)V
return-void
.end method
.method public endArray()V
.locals 2
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v1, 0xf
.line 92
invoke-virtual {v0, v1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
.line 93
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->endStructure()V
return-void
.end method
.method public endObject()V
.locals 2
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v1, 0xd
.line 76
invoke-virtual {v0, v1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
.line 77
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->endStructure()V
return-void
.end method
.method public hasNext()Z
.locals 3
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-eqz v0, :cond_2
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 147
iget-object v0, v0, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->lexer:Lcom/alibaba/fastjson/parser/JSONLexer;
invoke-virtual {v0}, Lcom/alibaba/fastjson/parser/JSONLexer;->token()I
move-result v0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
.line 148
iget p0, p0, Lcom/alibaba/fastjson/JSONStreamContext;->state:I
const/4 v1, 0x1
const/4 v2, 0x0
packed-switch p0, :pswitch_data_0
.line 157
:pswitch_0
new-instance v0, Lcom/alibaba/fastjson/JSONException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "illegal state : "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
throw v0
:pswitch_1
const/16 p0, 0xf
if-eq v0, p0, :cond_0
goto :goto_0
:cond_0
move v1, v2
:goto_0
return v1
:pswitch_2
const/16 p0, 0xd
if-eq v0, p0, :cond_1
goto :goto_1
:cond_1
move v1, v2
:goto_1
return v1
.line 144
:cond_2
new-instance p0, Lcom/alibaba/fastjson/JSONException;
const-string v0, "context is null"
invoke-direct {p0, v0}, Lcom/alibaba/fastjson/JSONException;-><init>(Ljava/lang/String;)V
throw p0
:pswitch_data_0
.packed-switch 0x3e9
:pswitch_2
:pswitch_0
:pswitch_2
:pswitch_1
:pswitch_1
.end packed-switch
.end method
.method public peek()I
.locals 0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 162
iget-object p0, p0, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->lexer:Lcom/alibaba/fastjson/parser/JSONLexer;
invoke-virtual {p0}, Lcom/alibaba/fastjson/parser/JSONLexer;->token()I
move-result p0
return p0
.end method
.method public readInteger()Ljava/lang/Integer;
.locals 1
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 179
invoke-virtual {p0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object p0
goto :goto_0
.line 181
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 182
invoke-virtual {v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object v0
.line 183
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
move-object p0, v0
.line 186
:goto_0
invoke-static {p0}, Lcom/alibaba/fastjson/util/TypeUtils;->castToInt(Ljava/lang/Object;)Ljava/lang/Integer;
move-result-object p0
return-object p0
.end method
.method public readLong()Ljava/lang/Long;
.locals 1
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 192
invoke-virtual {p0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object p0
goto :goto_0
.line 194
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 195
invoke-virtual {v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object v0
.line 196
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
move-object p0, v0
.line 199
:goto_0
invoke-static {p0}, Lcom/alibaba/fastjson/util/TypeUtils;->castToLong(Ljava/lang/Object;)Ljava/lang/Long;
move-result-object p0
return-object p0
.end method
.method public readObject()Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 254
invoke-virtual {p0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object p0
return-object p0
.line 257
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 258
invoke-virtual {v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object v0
.line 259
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
return-object v0
.end method
.method public readObject(Lcom/alibaba/fastjson/TypeReference;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lcom/alibaba/fastjson/TypeReference<",
"TT;>;)TT;"
}
.end annotation
.line 216
iget-object p1, p1, Lcom/alibaba/fastjson/TypeReference;->type:Ljava/lang/reflect/Type;
invoke-virtual {p0, p1}, Lcom/alibaba/fastjson/JSONReader;->readObject(Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public readObject(Ljava/lang/Class;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)TT;"
}
.end annotation
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 232
invoke-virtual {p0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
return-object p0
.line 235
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 236
invoke-virtual {v0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
.line 237
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
return-object p1
.end method
.method public readObject(Ljava/lang/reflect/Type;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/reflect/Type;",
")TT;"
}
.end annotation
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 221
invoke-virtual {p0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p0
return-object p0
.line 224
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 225
invoke-virtual {v0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object p1
.line 226
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
return-object p1
.end method
.method public readObject(Ljava/util/Map;)Ljava/lang/Object;
.locals 1
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 266
invoke-virtual {p0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/util/Map;)Ljava/lang/Object;
move-result-object p0
return-object p0
.line 269
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 270
invoke-virtual {v0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/util/Map;)Ljava/lang/Object;
move-result-object p1
.line 271
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
return-object p1
.end method
.method public readObject(Ljava/lang/Object;)V
.locals 1
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 243
invoke-virtual {p0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/lang/Object;)V
return-void
.line 247
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 248
invoke-virtual {v0, p1}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parseObject(Ljava/lang/Object;)V
.line 249
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
return-void
.end method
.method public readString()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
if-nez v0, :cond_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 205
invoke-virtual {p0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object p0
goto :goto_0
.line 207
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readBefore()V
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
.line 208
invoke-virtual {v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->parse()Ljava/lang/Object;
move-result-object v0
.line 209
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->readAfter()V
move-object p0, v0
.line 212
:goto_0
invoke-static {p0}, Lcom/alibaba/fastjson/util/TypeUtils;->castToString(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public startArray()V
.locals 3
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
const/16 v1, 0x3ec
if-nez v0, :cond_0
.line 82
new-instance v0, Lcom/alibaba/fastjson/JSONStreamContext;
const/4 v2, 0x0
invoke-direct {v0, v2, v1}, Lcom/alibaba/fastjson/JSONStreamContext;-><init>(Lcom/alibaba/fastjson/JSONStreamContext;I)V
iput-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
goto :goto_0
.line 84
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->startStructure()V
.line 86
new-instance v0, Lcom/alibaba/fastjson/JSONStreamContext;
iget-object v2, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
invoke-direct {v0, v2, v1}, Lcom/alibaba/fastjson/JSONStreamContext;-><init>(Lcom/alibaba/fastjson/JSONStreamContext;I)V
iput-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
:goto_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v0, 0xe
.line 88
invoke-virtual {p0, v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
return-void
.end method
.method public startObject()V
.locals 3
iget-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
const/16 v1, 0x3e9
if-nez v0, :cond_0
.line 66
new-instance v0, Lcom/alibaba/fastjson/JSONStreamContext;
const/4 v2, 0x0
invoke-direct {v0, v2, v1}, Lcom/alibaba/fastjson/JSONStreamContext;-><init>(Lcom/alibaba/fastjson/JSONStreamContext;I)V
iput-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
goto :goto_0
.line 68
:cond_0
invoke-direct {p0}, Lcom/alibaba/fastjson/JSONReader;->startStructure()V
.line 69
new-instance v0, Lcom/alibaba/fastjson/JSONStreamContext;
iget-object v2, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
invoke-direct {v0, v2, v1}, Lcom/alibaba/fastjson/JSONStreamContext;-><init>(Lcom/alibaba/fastjson/JSONStreamContext;I)V
iput-object v0, p0, Lcom/alibaba/fastjson/JSONReader;->context:Lcom/alibaba/fastjson/JSONStreamContext;
:goto_0
iget-object p0, p0, Lcom/alibaba/fastjson/JSONReader;->parser:Lcom/alibaba/fastjson/parser/DefaultJSONParser;
const/16 v0, 0xc
.line 72
invoke-virtual {p0, v0}, Lcom/alibaba/fastjson/parser/DefaultJSONParser;->accept(I)V
return-void
.end method