5067 lines
104 KiB
Smali
5067 lines
104 KiB
Smali
.class public Lcom/google/gson/stream/JsonReader;
|
|
.super Ljava/lang/Object;
|
|
.source "JsonReader.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Closeable;
|
|
|
|
|
|
# static fields
|
|
.field private static final MIN_INCOMPLETE_INTEGER:J = -0xcccccccccccccccL
|
|
|
|
.field private static final NON_EXECUTE_PREFIX:[C
|
|
|
|
.field private static final NUMBER_CHAR_DECIMAL:I = 0x3
|
|
|
|
.field private static final NUMBER_CHAR_DIGIT:I = 0x2
|
|
|
|
.field private static final NUMBER_CHAR_EXP_DIGIT:I = 0x7
|
|
|
|
.field private static final NUMBER_CHAR_EXP_E:I = 0x5
|
|
|
|
.field private static final NUMBER_CHAR_EXP_SIGN:I = 0x6
|
|
|
|
.field private static final NUMBER_CHAR_FRACTION_DIGIT:I = 0x4
|
|
|
|
.field private static final NUMBER_CHAR_NONE:I = 0x0
|
|
|
|
.field private static final NUMBER_CHAR_SIGN:I = 0x1
|
|
|
|
.field private static final PEEKED_BEGIN_ARRAY:I = 0x3
|
|
|
|
.field private static final PEEKED_BEGIN_OBJECT:I = 0x1
|
|
|
|
.field private static final PEEKED_BUFFERED:I = 0xb
|
|
|
|
.field private static final PEEKED_DOUBLE_QUOTED:I = 0x9
|
|
|
|
.field private static final PEEKED_DOUBLE_QUOTED_NAME:I = 0xd
|
|
|
|
.field private static final PEEKED_END_ARRAY:I = 0x4
|
|
|
|
.field private static final PEEKED_END_OBJECT:I = 0x2
|
|
|
|
.field private static final PEEKED_EOF:I = 0x11
|
|
|
|
.field private static final PEEKED_FALSE:I = 0x6
|
|
|
|
.field private static final PEEKED_LONG:I = 0xf
|
|
|
|
.field private static final PEEKED_NONE:I = 0x0
|
|
|
|
.field private static final PEEKED_NULL:I = 0x7
|
|
|
|
.field private static final PEEKED_NUMBER:I = 0x10
|
|
|
|
.field private static final PEEKED_SINGLE_QUOTED:I = 0x8
|
|
|
|
.field private static final PEEKED_SINGLE_QUOTED_NAME:I = 0xc
|
|
|
|
.field private static final PEEKED_TRUE:I = 0x5
|
|
|
|
.field private static final PEEKED_UNQUOTED:I = 0xa
|
|
|
|
.field private static final PEEKED_UNQUOTED_NAME:I = 0xe
|
|
|
|
|
|
# instance fields
|
|
.field private final buffer:[C
|
|
|
|
.field private final in:Ljava/io/Reader;
|
|
|
|
.field private lenient:Z
|
|
|
|
.field private limit:I
|
|
|
|
.field private lineNumber:I
|
|
|
|
.field private lineStart:I
|
|
|
|
.field private pathIndices:[I
|
|
|
|
.field private pathNames:[Ljava/lang/String;
|
|
|
|
.field peeked:I
|
|
|
|
.field private peekedLong:J
|
|
|
|
.field private peekedNumberLength:I
|
|
|
|
.field private peekedString:Ljava/lang/String;
|
|
|
|
.field private pos:I
|
|
|
|
.field private stack:[I
|
|
|
|
.field private stackSize:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-string v0, ")]}\'\n"
|
|
|
|
.line 192
|
|
invoke-virtual {v0}, Ljava/lang/String;->toCharArray()[C
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
|
|
|
|
.line 1585
|
|
new-instance v0, Lcom/google/gson/stream/JsonReader$1;
|
|
|
|
invoke-direct {v0}, Lcom/google/gson/stream/JsonReader$1;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/gson/internal/JsonReaderInternalAccess;->INSTANCE:Lcom/google/gson/internal/JsonReaderInternalAccess;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/io/Reader;)V
|
|
.locals 4
|
|
|
|
.line 289
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 230
|
|
iput-boolean v0, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
|
|
|
|
const/16 v1, 0x400
|
|
|
|
.line 238
|
|
new-array v1, v1, [C
|
|
|
|
iput-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
.line 239
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 240
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
.line 242
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
.line 243
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
.line 245
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
const/16 v1, 0x20
|
|
|
|
.line 269
|
|
new-array v2, v1, [I
|
|
|
|
iput-object v2, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
.line 270
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
.line 272
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v3, v2, 0x1
|
|
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
const/4 v3, 0x6
|
|
|
|
aput v3, v0, v2
|
|
|
|
.line 283
|
|
new-array v0, v1, [Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
.line 284
|
|
new-array v0, v1, [I
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 293
|
|
iput-object p1, p0, Lcom/google/gson/stream/JsonReader;->in:Ljava/io/Reader;
|
|
|
|
return-void
|
|
|
|
.line 291
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string v0, "in == null"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method static synthetic access$000(Lcom/google/gson/stream/JsonReader;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 190
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private checkLenient()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1400
|
|
iget-boolean v0, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v0, "Use JsonReader.setLenient(true) to accept malformed JSON"
|
|
|
|
.line 1401
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private consumeNonExecutePrefix()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1567
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
|
|
|
|
.line 1568
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1570
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sget-object v1, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
|
|
|
|
array-length v1, v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-le v0, v1, :cond_0
|
|
|
|
sget-object v0, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
|
|
|
|
array-length v0, v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 1574
|
|
:goto_0
|
|
sget-object v1, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
|
|
|
|
array-length v1, v1
|
|
|
|
if-ge v0, v1, :cond_2
|
|
|
|
.line 1575
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
aget-char v1, v1, v2
|
|
|
|
sget-object v2, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
|
|
|
|
aget-char v2, v2, v0
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1581
|
|
:cond_2
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sget-object v1, Lcom/google/gson/stream/JsonReader;->NON_EXECUTE_PREFIX:[C
|
|
|
|
array-length v1, v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private fillBuffer(I)Z
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1276
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
.line 1277
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
.line 1278
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
.line 1279
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
.line 1280
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
invoke-static {v0, v1, v0, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1282
|
|
:cond_0
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
.line 1285
|
|
:goto_0
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1287
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->in:Ljava/io/Reader;
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
array-length v4, v0
|
|
|
|
iget v5, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
invoke-virtual {v1, v0, v2, v4}, Ljava/io/Reader;->read([CII)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, -0x1
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
.line 1288
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
.line 1291
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
aget-char v1, v0, v3
|
|
|
|
const v4, 0xfeff
|
|
|
|
if-ne v1, v4, :cond_2
|
|
|
|
.line 1292
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1293
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 1297
|
|
:cond_2
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-lt v1, p1, :cond_1
|
|
|
|
return v2
|
|
|
|
:cond_3
|
|
return v3
|
|
.end method
|
|
|
|
.method private isLiteral(C)Z
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
sparse-switch p1, :sswitch_data_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 751
|
|
:sswitch_0
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
:sswitch_1
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0x9 -> :sswitch_1
|
|
0xa -> :sswitch_1
|
|
0xc -> :sswitch_1
|
|
0xd -> :sswitch_1
|
|
0x20 -> :sswitch_1
|
|
0x23 -> :sswitch_0
|
|
0x2c -> :sswitch_1
|
|
0x2f -> :sswitch_0
|
|
0x3a -> :sswitch_1
|
|
0x3b -> :sswitch_0
|
|
0x3d -> :sswitch_0
|
|
0x5b -> :sswitch_1
|
|
0x5c -> :sswitch_0
|
|
0x5d -> :sswitch_1
|
|
0x7b -> :sswitch_1
|
|
0x7d -> :sswitch_1
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method private locationString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 1449
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 1450
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 1451
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, " at line "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " column "
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " path "
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private nextNonWhitespace(Z)I
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1319
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
.line 1320
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1321
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
:goto_0
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v1, v2, :cond_2
|
|
|
|
.line 1324
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1325
|
|
invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
|
|
.line 1393
|
|
:cond_0
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "End of input"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 1328
|
|
:cond_1
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1329
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
:cond_2
|
|
add-int/lit8 v4, v1, 0x1
|
|
|
|
.line 1332
|
|
aget-char v1, v0, v1
|
|
|
|
const/16 v5, 0xa
|
|
|
|
if-ne v1, v5, :cond_3
|
|
|
|
.line 1334
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
.line 1335
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_3
|
|
const/16 v5, 0x20
|
|
|
|
if-eq v1, v5, :cond_b
|
|
|
|
const/16 v5, 0xd
|
|
|
|
if-eq v1, v5, :cond_b
|
|
|
|
const/16 v5, 0x9
|
|
|
|
if-ne v1, v5, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/16 v5, 0x2f
|
|
|
|
if-ne v1, v5, :cond_9
|
|
|
|
.line 1342
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
const/4 v6, 0x2
|
|
|
|
if-ne v4, v2, :cond_5
|
|
|
|
.line 1344
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1345
|
|
invoke-direct {p0, v6}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v2
|
|
|
|
.line 1346
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v4, v3
|
|
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
return v1
|
|
|
|
.line 1352
|
|
:cond_5
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 1353
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
aget-char v2, v0, v2
|
|
|
|
const/16 v4, 0x2a
|
|
|
|
if-eq v2, v4, :cond_7
|
|
|
|
if-eq v2, v5, :cond_6
|
|
|
|
return v1
|
|
|
|
.line 1367
|
|
:cond_6
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1368
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->skipToEndOfLine()V
|
|
|
|
.line 1369
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1370
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 1357
|
|
:cond_7
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
const-string v1, "*/"
|
|
|
|
.line 1358
|
|
invoke-direct {p0, v1}, Lcom/google/gson/stream/JsonReader;->skipTo(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
.line 1361
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v6
|
|
|
|
.line 1362
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_8
|
|
const-string p1, "Unterminated comment"
|
|
|
|
.line 1359
|
|
invoke-direct {p0, p1}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_9
|
|
const/16 v2, 0x23
|
|
|
|
if-ne v1, v2, :cond_a
|
|
|
|
.line 1377
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1383
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 1384
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->skipToEndOfLine()V
|
|
|
|
.line 1385
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1386
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 1388
|
|
:cond_a
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
return v1
|
|
|
|
:cond_b
|
|
:goto_1
|
|
move v1, v4
|
|
|
|
goto/16 :goto_0
|
|
.end method
|
|
|
|
.method private nextQuotedValue(C)Ljava/lang/String;
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 987
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
.line 988
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 990
|
|
:goto_0
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 991
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
:goto_1
|
|
move v4, v2
|
|
|
|
:goto_2
|
|
const/4 v5, 0x1
|
|
|
|
if-ge v2, v3, :cond_3
|
|
|
|
add-int/lit8 v6, v2, 0x1
|
|
|
|
.line 995
|
|
aget-char v2, v0, v2
|
|
|
|
if-ne v2, p1, :cond_0
|
|
|
|
.line 998
|
|
iput v6, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v6, v4
|
|
|
|
sub-int/2addr v6, v5
|
|
|
|
.line 999
|
|
invoke-virtual {v1, v0, v4, v6}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
|
|
|
|
.line 1000
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const/16 v7, 0x5c
|
|
|
|
if-ne v2, v7, :cond_1
|
|
|
|
.line 1002
|
|
iput v6, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v6, v4
|
|
|
|
sub-int/2addr v6, v5
|
|
|
|
.line 1003
|
|
invoke-virtual {v1, v0, v4, v6}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
|
|
|
|
.line 1004
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->readEscapeCharacter()C
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 1005
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1006
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v7, 0xa
|
|
|
|
if-ne v2, v7, :cond_2
|
|
|
|
.line 1009
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
add-int/2addr v2, v5
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
.line 1010
|
|
iput v6, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
:cond_2
|
|
move v2, v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
sub-int v3, v2, v4
|
|
|
|
.line 1014
|
|
invoke-virtual {v1, v0, v4, v3}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
|
|
|
|
.line 1015
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1016
|
|
invoke-direct {p0, v5}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-string p1, "Unterminated string"
|
|
|
|
.line 1017
|
|
invoke-direct {p0, p1}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private nextUnquotedValue()Ljava/lang/String;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move-object v2, v1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 1032
|
|
:goto_0
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v3, v1
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-ge v3, v4, :cond_1
|
|
|
|
.line 1033
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v4, v1
|
|
|
|
aget-char v3, v3, v4
|
|
|
|
sparse-switch v3, :sswitch_data_0
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1039
|
|
:sswitch_0
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 1056
|
|
:cond_1
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
array-length v3, v3
|
|
|
|
if-ge v1, v3, :cond_3
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
.line 1057
|
|
invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
:sswitch_1
|
|
move v0, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
if-nez v2, :cond_4
|
|
|
|
.line 1066
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
.line 1068
|
|
:cond_4
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
invoke-virtual {v2, v3, v4, v1}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
|
|
|
|
.line 1069
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v3, v1
|
|
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1071
|
|
invoke-direct {p0, v1}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
:goto_2
|
|
if-nez v2, :cond_5
|
|
|
|
.line 1078
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
invoke-direct {v1, v2, v3, v0}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 1080
|
|
:cond_5
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
invoke-virtual {v2, v1, v3, v0}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;
|
|
|
|
.line 1081
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 1083
|
|
:goto_3
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
return-object v1
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0x9 -> :sswitch_1
|
|
0xa -> :sswitch_1
|
|
0xc -> :sswitch_1
|
|
0xd -> :sswitch_1
|
|
0x20 -> :sswitch_1
|
|
0x23 -> :sswitch_0
|
|
0x2c -> :sswitch_1
|
|
0x2f -> :sswitch_0
|
|
0x3a -> :sswitch_1
|
|
0x3b -> :sswitch_0
|
|
0x3d -> :sswitch_0
|
|
0x5b -> :sswitch_1
|
|
0x5c -> :sswitch_0
|
|
0x5d -> :sswitch_1
|
|
0x7b -> :sswitch_1
|
|
0x7d -> :sswitch_1
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method private peekKeyword()I
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 599
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
aget-char v0, v0, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/16 v2, 0x74
|
|
|
|
if-eq v0, v2, :cond_5
|
|
|
|
const/16 v2, 0x54
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
const/16 v2, 0x66
|
|
|
|
if-eq v0, v2, :cond_4
|
|
|
|
const/16 v2, 0x46
|
|
|
|
if-ne v0, v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v2, 0x6e
|
|
|
|
if-eq v0, v2, :cond_3
|
|
|
|
const/16 v2, 0x4e
|
|
|
|
if-ne v0, v2, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return v1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
const-string v0, "null"
|
|
|
|
const-string v2, "NULL"
|
|
|
|
const/4 v3, 0x7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
:goto_1
|
|
const-string v0, "false"
|
|
|
|
const-string v2, "FALSE"
|
|
|
|
const/4 v3, 0x6
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
:goto_2
|
|
const-string v0, "true"
|
|
|
|
const-string v2, "TRUE"
|
|
|
|
const/4 v3, 0x5
|
|
|
|
.line 620
|
|
:goto_3
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
:goto_4
|
|
if-ge v5, v4, :cond_8
|
|
|
|
.line 622
|
|
iget v6, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v6, v5
|
|
|
|
iget v7, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-lt v6, v7, :cond_6
|
|
|
|
add-int/lit8 v6, v5, 0x1
|
|
|
|
invoke-direct {p0, v6}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_6
|
|
|
|
return v1
|
|
|
|
.line 625
|
|
:cond_6
|
|
iget-object v6, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v7, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v7, v5
|
|
|
|
aget-char v6, v6, v7
|
|
|
|
.line 626
|
|
invoke-virtual {v0, v5}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v7
|
|
|
|
if-eq v6, v7, :cond_7
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v7
|
|
|
|
if-eq v6, v7, :cond_7
|
|
|
|
return v1
|
|
|
|
:cond_7
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
.line 631
|
|
:cond_8
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v0, v4
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-lt v0, v2, :cond_9
|
|
|
|
add-int/lit8 v0, v4, 0x1
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
:cond_9
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
aget-char v0, v0, v2
|
|
|
|
.line 632
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_a
|
|
|
|
return v1
|
|
|
|
.line 637
|
|
:cond_a
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v0, v4
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 638
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v3
|
|
.end method
|
|
|
|
.method private peekNumber()I
|
|
.locals 18
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
.line 643
|
|
iget-object v1, v0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
.line 644
|
|
iget v2, v0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 645
|
|
iget v3, v0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
const/4 v6, 0x1
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move v8, v3
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x1
|
|
|
|
const-wide/16 v11, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
:goto_0
|
|
add-int v14, v2, v3
|
|
|
|
const/4 v15, 0x2
|
|
|
|
if-ne v14, v8, :cond_2
|
|
|
|
.line 657
|
|
array-length v2, v1
|
|
|
|
if-ne v3, v2, :cond_0
|
|
|
|
return v7
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v3, 0x1
|
|
|
|
.line 662
|
|
invoke-direct {v0, v2}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
goto/16 :goto_7
|
|
|
|
.line 665
|
|
:cond_1
|
|
iget v2, v0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 666
|
|
iget v8, v0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
:cond_2
|
|
add-int v14, v2, v3
|
|
|
|
.line 669
|
|
aget-char v14, v1, v14
|
|
|
|
const/16 v7, 0x2b
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const/4 v5, 0x5
|
|
|
|
if-eq v14, v7, :cond_1a
|
|
|
|
const/16 v7, 0x45
|
|
|
|
if-eq v14, v7, :cond_17
|
|
|
|
const/16 v7, 0x65
|
|
|
|
if-eq v14, v7, :cond_17
|
|
|
|
packed-switch v14, :pswitch_data_0
|
|
|
|
const/16 v7, 0x30
|
|
|
|
if-lt v14, v7, :cond_d
|
|
|
|
const/16 v7, 0x39
|
|
|
|
if-le v14, v7, :cond_3
|
|
|
|
goto :goto_6
|
|
|
|
:cond_3
|
|
if-eq v9, v6, :cond_c
|
|
|
|
if-nez v9, :cond_4
|
|
|
|
goto :goto_5
|
|
|
|
:cond_4
|
|
if-ne v9, v15, :cond_8
|
|
|
|
const-wide/16 v16, 0x0
|
|
|
|
cmp-long v4, v11, v16
|
|
|
|
if-nez v4, :cond_5
|
|
|
|
const/4 v4, 0x0
|
|
|
|
return v4
|
|
|
|
:cond_5
|
|
const-wide/16 v4, 0xa
|
|
|
|
mul-long v4, v4, v11
|
|
|
|
add-int/lit8 v14, v14, -0x30
|
|
|
|
int-to-long v14, v14
|
|
|
|
sub-long/2addr v4, v14
|
|
|
|
const-wide v14, -0xcccccccccccccccL
|
|
|
|
cmp-long v7, v11, v14
|
|
|
|
if-gtz v7, :cond_7
|
|
|
|
cmp-long v7, v11, v14
|
|
|
|
if-nez v7, :cond_6
|
|
|
|
cmp-long v7, v4, v11
|
|
|
|
if-gez v7, :cond_6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
const/4 v7, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_7
|
|
:goto_1
|
|
const/4 v7, 0x1
|
|
|
|
:goto_2
|
|
and-int/2addr v7, v10
|
|
|
|
move-wide v11, v4
|
|
|
|
move v10, v7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
const-wide/16 v16, 0x0
|
|
|
|
if-ne v9, v4, :cond_9
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v9, 0x4
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_9
|
|
if-eq v9, v5, :cond_b
|
|
|
|
const/4 v4, 0x6
|
|
|
|
if-ne v9, v4, :cond_a
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
:goto_3
|
|
const/4 v7, 0x0
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_b
|
|
:goto_4
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v9, 0x7
|
|
|
|
goto/16 :goto_c
|
|
|
|
:cond_c
|
|
:goto_5
|
|
const-wide/16 v16, 0x0
|
|
|
|
add-int/lit8 v14, v14, -0x30
|
|
|
|
neg-int v4, v14
|
|
|
|
int-to-long v4, v4
|
|
|
|
move-wide v11, v4
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v9, 0x2
|
|
|
|
goto :goto_c
|
|
|
|
.line 706
|
|
:cond_d
|
|
:goto_6
|
|
invoke-direct {v0, v14}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_13
|
|
|
|
:goto_7
|
|
if-ne v9, v15, :cond_10
|
|
|
|
if-eqz v10, :cond_10
|
|
|
|
const-wide/high16 v1, -0x8000000000000000L
|
|
|
|
cmp-long v4, v11, v1
|
|
|
|
if-nez v4, :cond_e
|
|
|
|
if-eqz v13, :cond_10
|
|
|
|
:cond_e
|
|
if-eqz v13, :cond_f
|
|
|
|
goto :goto_8
|
|
|
|
:cond_f
|
|
neg-long v11, v11
|
|
|
|
.line 732
|
|
:goto_8
|
|
iput-wide v11, v0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
|
|
|
|
.line 733
|
|
iget v1, v0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, v0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
const/16 v1, 0xf
|
|
|
|
.line 734
|
|
iput v1, v0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v1
|
|
|
|
:cond_10
|
|
if-eq v9, v15, :cond_12
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-eq v9, v1, :cond_12
|
|
|
|
const/4 v1, 0x7
|
|
|
|
if-ne v9, v1, :cond_11
|
|
|
|
goto :goto_9
|
|
|
|
:cond_11
|
|
const/4 v7, 0x0
|
|
|
|
return v7
|
|
|
|
.line 737
|
|
:cond_12
|
|
:goto_9
|
|
iput v3, v0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
const/16 v1, 0x10
|
|
|
|
.line 738
|
|
iput v1, v0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v1
|
|
|
|
:cond_13
|
|
const/4 v7, 0x0
|
|
|
|
return v7
|
|
|
|
:pswitch_0
|
|
const/4 v7, 0x0
|
|
|
|
const-wide/16 v16, 0x0
|
|
|
|
if-ne v9, v15, :cond_14
|
|
|
|
const/4 v9, 0x3
|
|
|
|
goto :goto_c
|
|
|
|
:cond_14
|
|
return v7
|
|
|
|
:pswitch_1
|
|
const/4 v4, 0x6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const-wide/16 v16, 0x0
|
|
|
|
if-nez v9, :cond_15
|
|
|
|
const/4 v9, 0x1
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_c
|
|
|
|
:cond_15
|
|
if-ne v9, v5, :cond_16
|
|
|
|
goto :goto_b
|
|
|
|
:cond_16
|
|
return v7
|
|
|
|
:cond_17
|
|
const/4 v7, 0x0
|
|
|
|
const-wide/16 v16, 0x0
|
|
|
|
if-eq v9, v15, :cond_19
|
|
|
|
const/4 v4, 0x4
|
|
|
|
if-ne v9, v4, :cond_18
|
|
|
|
goto :goto_a
|
|
|
|
:cond_18
|
|
return v7
|
|
|
|
:cond_19
|
|
:goto_a
|
|
const/4 v9, 0x5
|
|
|
|
goto :goto_c
|
|
|
|
:cond_1a
|
|
const/4 v4, 0x6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const-wide/16 v16, 0x0
|
|
|
|
if-ne v9, v5, :cond_1b
|
|
|
|
:goto_b
|
|
const/4 v9, 0x6
|
|
|
|
:goto_c
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_1b
|
|
return v7
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x2d
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method private push(I)V
|
|
.locals 6
|
|
|
|
.line 1256
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
array-length v1, v1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 1257
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
new-array v0, v0, [I
|
|
|
|
.line 1258
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
mul-int/lit8 v1, v1, 0x2
|
|
|
|
new-array v1, v1, [I
|
|
|
|
.line 1259
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
mul-int/lit8 v2, v2, 0x2
|
|
|
|
new-array v2, v2, [Ljava/lang/String;
|
|
|
|
.line 1260
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-static {v3, v5, v0, v5, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 1261
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
invoke-static {v3, v5, v1, v5, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 1262
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
invoke-static {v3, v5, v2, v5, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 1263
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
.line 1264
|
|
iput-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
.line 1265
|
|
iput-object v2, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
.line 1267
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
aput p1, v0, v1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private readEscapeCharacter()C
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1495
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v0, "Unterminated escape sequence"
|
|
|
|
.line 1496
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 1499
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
aget-char v0, v0, v1
|
|
|
|
const/16 v1, 0xa
|
|
|
|
if-eq v0, v1, :cond_c
|
|
|
|
const/16 v2, 0x22
|
|
|
|
if-eq v0, v2, :cond_d
|
|
|
|
const/16 v2, 0x27
|
|
|
|
if-eq v0, v2, :cond_d
|
|
|
|
const/16 v2, 0x2f
|
|
|
|
if-eq v0, v2, :cond_d
|
|
|
|
const/16 v2, 0x5c
|
|
|
|
if-eq v0, v2, :cond_d
|
|
|
|
const/16 v2, 0x62
|
|
|
|
if-eq v0, v2, :cond_b
|
|
|
|
const/16 v2, 0x66
|
|
|
|
if-eq v0, v2, :cond_a
|
|
|
|
const/16 v3, 0x6e
|
|
|
|
if-eq v0, v3, :cond_9
|
|
|
|
const/16 v3, 0x72
|
|
|
|
if-eq v0, v3, :cond_8
|
|
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
const-string v0, "Invalid escape sequence"
|
|
|
|
.line 1550
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 1502
|
|
:pswitch_0
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
const/4 v3, 0x4
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-le v0, v4, :cond_3
|
|
|
|
invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const-string v0, "Unterminated escape sequence"
|
|
|
|
.line 1503
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 1507
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/lit8 v5, v4, 0x4
|
|
|
|
:goto_2
|
|
if-ge v4, v5, :cond_7
|
|
|
|
.line 1508
|
|
iget-object v6, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
aget-char v6, v6, v4
|
|
|
|
shl-int/lit8 v0, v0, 0x4
|
|
|
|
int-to-char v0, v0
|
|
|
|
const/16 v7, 0x30
|
|
|
|
if-lt v6, v7, :cond_4
|
|
|
|
const/16 v7, 0x39
|
|
|
|
if-gt v6, v7, :cond_4
|
|
|
|
add-int/lit8 v6, v6, -0x30
|
|
|
|
add-int/2addr v0, v6
|
|
|
|
int-to-char v0, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const/16 v7, 0x61
|
|
|
|
if-lt v6, v7, :cond_5
|
|
|
|
if-gt v6, v2, :cond_5
|
|
|
|
add-int/lit8 v6, v6, -0x61
|
|
|
|
add-int/2addr v6, v1
|
|
|
|
add-int/2addr v0, v6
|
|
|
|
int-to-char v0, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/16 v7, 0x41
|
|
|
|
if-lt v6, v7, :cond_6
|
|
|
|
const/16 v7, 0x46
|
|
|
|
if-gt v6, v7, :cond_6
|
|
|
|
add-int/lit8 v6, v6, -0x41
|
|
|
|
add-int/2addr v6, v1
|
|
|
|
add-int/2addr v0, v6
|
|
|
|
int-to-char v0, v0
|
|
|
|
:goto_3
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 1517
|
|
:cond_6
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "\\u"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
new-instance v2, Ljava/lang/String;
|
|
|
|
iget-object v4, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v5, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
invoke-direct {v2, v4, v5, v3}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 1520
|
|
:cond_7
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
return v0
|
|
|
|
:pswitch_1
|
|
const/16 v0, 0x9
|
|
|
|
return v0
|
|
|
|
:cond_8
|
|
const/16 v0, 0xd
|
|
|
|
return v0
|
|
|
|
:cond_9
|
|
return v1
|
|
|
|
:cond_a
|
|
const/16 v0, 0xc
|
|
|
|
return v0
|
|
|
|
:cond_b
|
|
const/16 v0, 0x8
|
|
|
|
return v0
|
|
|
|
.line 1539
|
|
:cond_c
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
.line 1540
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
:cond_d
|
|
return v0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x74
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method private skipQuotedValue(C)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1089
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
.line 1091
|
|
:goto_0
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1092
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
:goto_1
|
|
const/4 v3, 0x1
|
|
|
|
if-ge v1, v2, :cond_3
|
|
|
|
add-int/lit8 v4, v1, 0x1
|
|
|
|
.line 1095
|
|
aget-char v1, v0, v1
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
.line 1097
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/16 v5, 0x5c
|
|
|
|
if-ne v1, v5, :cond_1
|
|
|
|
.line 1100
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1101
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->readEscapeCharacter()C
|
|
|
|
.line 1102
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1103
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v5, 0xa
|
|
|
|
if-ne v1, v5, :cond_2
|
|
|
|
.line 1105
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
add-int/2addr v1, v3
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
.line 1106
|
|
iput v4, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
:cond_2
|
|
move v1, v4
|
|
|
|
goto :goto_1
|
|
|
|
.line 1109
|
|
:cond_3
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 1110
|
|
invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-string p1, "Unterminated string"
|
|
|
|
.line 1111
|
|
invoke-direct {p0, p1}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private skipTo(Ljava/lang/String;)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1428
|
|
:goto_0
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-le v0, v1, :cond_1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
return v2
|
|
|
|
.line 1429
|
|
:cond_1
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
aget-char v0, v0, v1
|
|
|
|
const/16 v1, 0xa
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 1430
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
.line 1431
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
goto :goto_3
|
|
|
|
.line 1434
|
|
:cond_2
|
|
:goto_2
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-ge v2, v0, :cond_4
|
|
|
|
.line 1435
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
aget-char v0, v0, v1
|
|
|
|
invoke-virtual {p1, v2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v1
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
.line 1428
|
|
:goto_3
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
return v3
|
|
.end method
|
|
|
|
.method private skipToEndOfLine()V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1411
|
|
:cond_0
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 1412
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
aget-char v0, v0, v1
|
|
|
|
const/16 v1, 0xa
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 1414
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineNumber:I
|
|
|
|
.line 1415
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->lineStart:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/16 v1, 0xd
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private skipUnquotedValue()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 1117
|
|
:goto_0
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
.line 1118
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
aget-char v1, v1, v2
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1124
|
|
:sswitch_0
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 1136
|
|
:sswitch_1
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
return-void
|
|
|
|
.line 1140
|
|
:cond_1
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1141
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
nop
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
0x9 -> :sswitch_1
|
|
0xa -> :sswitch_1
|
|
0xc -> :sswitch_1
|
|
0xd -> :sswitch_1
|
|
0x20 -> :sswitch_1
|
|
0x23 -> :sswitch_0
|
|
0x2c -> :sswitch_1
|
|
0x2f -> :sswitch_0
|
|
0x3a -> :sswitch_1
|
|
0x3b -> :sswitch_0
|
|
0x3d -> :sswitch_0
|
|
0x5b -> :sswitch_1
|
|
0x5c -> :sswitch_0
|
|
0x5d -> :sswitch_1
|
|
0x7b -> :sswitch_1
|
|
0x7d -> :sswitch_1
|
|
.end sparse-switch
|
|
.end method
|
|
|
|
.method private syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1559
|
|
new-instance v0, Lcom/google/gson/stream/MalformedJsonException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lcom/google/gson/stream/MalformedJsonException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public beginArray()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 341
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 343
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x3
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 346
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->push(I)V
|
|
|
|
.line 347
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
aput v0, v1, v2
|
|
|
|
.line 348
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return-void
|
|
|
|
.line 350
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected BEGIN_ARRAY but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public beginObject()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 377
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 379
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
.line 382
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->push(I)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 383
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return-void
|
|
|
|
.line 385
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected BEGIN_OBJECT but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public close()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1208
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 1209
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
const/16 v2, 0x8
|
|
|
|
aput v2, v1, v0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1210
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
.line 1211
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->in:Ljava/io/Reader;
|
|
|
|
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method doPeek()I
|
|
.locals 15
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 462
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
aget v0, v0, v1
|
|
|
|
const/16 v1, 0x8
|
|
|
|
const/4 v3, 0x3
|
|
|
|
const/16 v4, 0x5d
|
|
|
|
const/16 v5, 0x27
|
|
|
|
const/16 v6, 0x22
|
|
|
|
const/4 v7, 0x7
|
|
|
|
const/16 v8, 0x3b
|
|
|
|
const/16 v9, 0x2c
|
|
|
|
const/4 v10, 0x4
|
|
|
|
const/4 v11, 0x2
|
|
|
|
if-ne v0, v2, :cond_0
|
|
|
|
.line 464
|
|
iget-object v12, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v13, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v13, v2
|
|
|
|
aput v11, v12, v13
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_0
|
|
if-ne v0, v11, :cond_3
|
|
|
|
.line 467
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
|
|
|
|
move-result v12
|
|
|
|
if-eq v12, v9, :cond_c
|
|
|
|
if-eq v12, v8, :cond_2
|
|
|
|
if-ne v12, v4, :cond_1
|
|
|
|
.line 470
|
|
iput v10, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v10
|
|
|
|
:cond_1
|
|
const-string v0, "Unterminated array"
|
|
|
|
.line 476
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 472
|
|
:cond_2
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_3
|
|
const/4 v12, 0x5
|
|
|
|
if-eq v0, v3, :cond_19
|
|
|
|
if-ne v0, v12, :cond_4
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_4
|
|
if-ne v0, v10, :cond_7
|
|
|
|
.line 517
|
|
iget-object v13, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v14, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v14, v2
|
|
|
|
aput v12, v13, v14
|
|
|
|
.line 519
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
|
|
|
|
move-result v12
|
|
|
|
const/16 v13, 0x3a
|
|
|
|
if-eq v12, v13, :cond_c
|
|
|
|
const/16 v13, 0x3d
|
|
|
|
if-ne v12, v13, :cond_6
|
|
|
|
.line 524
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 525
|
|
iget v12, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v13, p0, Lcom/google/gson/stream/JsonReader;->limit:I
|
|
|
|
if-lt v12, v13, :cond_5
|
|
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->fillBuffer(I)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_c
|
|
|
|
:cond_5
|
|
iget-object v12, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v13, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
aget-char v12, v12, v13
|
|
|
|
const/16 v13, 0x3e
|
|
|
|
if-ne v12, v13, :cond_c
|
|
|
|
.line 526
|
|
iget v12, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
add-int/2addr v12, v2
|
|
|
|
iput v12, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
const-string v0, "Expected \':\'"
|
|
|
|
.line 530
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_7
|
|
const/4 v12, 0x6
|
|
|
|
if-ne v0, v12, :cond_9
|
|
|
|
.line 533
|
|
iget-boolean v12, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
|
|
|
|
if-eqz v12, :cond_8
|
|
|
|
.line 534
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->consumeNonExecutePrefix()V
|
|
|
|
.line 536
|
|
:cond_8
|
|
iget-object v12, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v13, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v13, v2
|
|
|
|
aput v7, v12, v13
|
|
|
|
goto :goto_0
|
|
|
|
:cond_9
|
|
if-ne v0, v7, :cond_b
|
|
|
|
const/4 v12, 0x0
|
|
|
|
.line 538
|
|
invoke-direct {p0, v12}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
|
|
|
|
move-result v12
|
|
|
|
const/4 v13, -0x1
|
|
|
|
if-ne v12, v13, :cond_a
|
|
|
|
const/16 v0, 0x11
|
|
|
|
.line 540
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v0
|
|
|
|
.line 542
|
|
:cond_a
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 543
|
|
iget v12, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v12, v2
|
|
|
|
iput v12, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_b
|
|
if-eq v0, v1, :cond_18
|
|
|
|
.line 549
|
|
:cond_c
|
|
:goto_0
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
|
|
|
|
move-result v12
|
|
|
|
if-eq v12, v6, :cond_17
|
|
|
|
if-eq v12, v5, :cond_16
|
|
|
|
if-eq v12, v9, :cond_13
|
|
|
|
if-eq v12, v8, :cond_13
|
|
|
|
const/16 v1, 0x5b
|
|
|
|
if-eq v12, v1, :cond_12
|
|
|
|
if-eq v12, v4, :cond_11
|
|
|
|
const/16 v0, 0x7b
|
|
|
|
if-eq v12, v0, :cond_10
|
|
|
|
.line 576
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 579
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->peekKeyword()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_d
|
|
|
|
return v0
|
|
|
|
.line 584
|
|
:cond_d
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->peekNumber()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_e
|
|
|
|
return v0
|
|
|
|
.line 589
|
|
:cond_e
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
aget-char v0, v0, v1
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_f
|
|
|
|
.line 593
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 594
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v0
|
|
|
|
:cond_f
|
|
const-string v0, "Expected value"
|
|
|
|
.line 590
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 574
|
|
:cond_10
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v2
|
|
|
|
:cond_11
|
|
if-ne v0, v2, :cond_13
|
|
|
|
.line 553
|
|
iput v10, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v10
|
|
|
|
.line 572
|
|
:cond_12
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v3
|
|
|
|
:cond_13
|
|
if-eq v0, v2, :cond_15
|
|
|
|
if-ne v0, v11, :cond_14
|
|
|
|
goto :goto_1
|
|
|
|
:cond_14
|
|
const-string v0, "Unexpected value"
|
|
|
|
.line 564
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 560
|
|
:cond_15
|
|
:goto_1
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 561
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
.line 562
|
|
iput v7, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v7
|
|
|
|
.line 567
|
|
:cond_16
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 568
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v1
|
|
|
|
:cond_17
|
|
const/16 v0, 0x9
|
|
|
|
.line 570
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v0
|
|
|
|
.line 546
|
|
:cond_18
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "JsonReader is closed"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 479
|
|
:cond_19
|
|
:goto_2
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v3, v2
|
|
|
|
aput v10, v1, v3
|
|
|
|
const/16 v1, 0x7d
|
|
|
|
if-ne v0, v12, :cond_1c
|
|
|
|
.line 482
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
|
|
|
|
move-result v3
|
|
|
|
if-eq v3, v9, :cond_1c
|
|
|
|
if-eq v3, v8, :cond_1b
|
|
|
|
if-ne v3, v1, :cond_1a
|
|
|
|
.line 485
|
|
iput v11, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v11
|
|
|
|
:cond_1a
|
|
const-string v0, "Unterminated object"
|
|
|
|
.line 491
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 487
|
|
:cond_1b
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 494
|
|
:cond_1c
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->nextNonWhitespace(Z)I
|
|
|
|
move-result v3
|
|
|
|
if-eq v3, v6, :cond_21
|
|
|
|
if-eq v3, v5, :cond_20
|
|
|
|
if-eq v3, v1, :cond_1e
|
|
|
|
.line 508
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
.line 509
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
sub-int/2addr v0, v2
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
int-to-char v0, v3
|
|
|
|
.line 510
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->isLiteral(C)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1d
|
|
|
|
const/16 v0, 0xe
|
|
|
|
.line 511
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v0
|
|
|
|
:cond_1d
|
|
const-string v0, "Expected name"
|
|
|
|
.line 513
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_1e
|
|
if-eq v0, v12, :cond_1f
|
|
|
|
.line 503
|
|
iput v11, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v11
|
|
|
|
:cond_1f
|
|
const-string v0, "Expected name"
|
|
|
|
.line 505
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->syntaxError(Ljava/lang/String;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 499
|
|
:cond_20
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->checkLenient()V
|
|
|
|
const/16 v0, 0xc
|
|
|
|
.line 500
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v0
|
|
|
|
:cond_21
|
|
const/16 v0, 0xd
|
|
|
|
.line 497
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public endArray()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 359
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 361
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x4
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 364
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
.line 365
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
aput v2, v0, v1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 366
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return-void
|
|
|
|
.line 368
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected END_ARRAY but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public endObject()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 394
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 396
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 399
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
.line 400
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
.line 401
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
aput v2, v0, v1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 402
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
return-void
|
|
|
|
.line 404
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected END_OBJECT but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getPath()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 1459
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const/16 v1, 0x24
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 1460
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
.line 1461
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->stack:[I
|
|
|
|
aget v3, v3, v2
|
|
|
|
packed-switch v3, :pswitch_data_0
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_0
|
|
const/16 v3, 0x2e
|
|
|
|
.line 1470
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 1471
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
aget-object v3, v3, v2
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 1472
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
aget-object v3, v3, v2
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_1
|
|
const/16 v3, 0x5b
|
|
|
|
.line 1464
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
aget v3, v3, v2
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v3, 0x5d
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
:cond_0
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 1482
|
|
:cond_1
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public hasNext()Z
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 412
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 414
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final isLenient()Z
|
|
.locals 1
|
|
|
|
.line 333
|
|
iget-boolean v0, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public nextBoolean()Z
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 840
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 842
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x5
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 845
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 846
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
aput v2, v0, v1
|
|
|
|
return v3
|
|
|
|
:cond_1
|
|
const/4 v1, 0x6
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 849
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 850
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
aget v4, v0, v1
|
|
|
|
add-int/2addr v4, v3
|
|
|
|
aput v4, v0, v1
|
|
|
|
return v2
|
|
|
|
.line 853
|
|
:cond_2
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected a boolean but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public nextDouble()D
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 886
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 888
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/16 v1, 0xf
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 892
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 893
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
aput v2, v0, v1
|
|
|
|
.line 894
|
|
iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
|
|
|
|
long-to-double v0, v0
|
|
|
|
return-wide v0
|
|
|
|
:cond_1
|
|
const/16 v1, 0x10
|
|
|
|
const/16 v3, 0xb
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 898
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v5, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
invoke-direct {v0, v1, v4, v5}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 899
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
const/16 v1, 0x8
|
|
|
|
if-eq v0, v1, :cond_6
|
|
|
|
const/16 v4, 0x9
|
|
|
|
if-ne v0, v4, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/16 v1, 0xa
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 903
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
if-ne v0, v3, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
.line 905
|
|
:cond_5
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected a double but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_6
|
|
:goto_0
|
|
if-ne v0, v1, :cond_7
|
|
|
|
const/16 v0, 0x27
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
const/16 v0, 0x22
|
|
|
|
.line 901
|
|
:goto_1
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 908
|
|
:goto_2
|
|
iput v3, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 909
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
|
|
|
|
move-result-wide v0
|
|
|
|
.line 910
|
|
iget-boolean v3, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
|
|
|
|
if-nez v3, :cond_9
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_8
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->isInfinite(D)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_8
|
|
|
|
goto :goto_3
|
|
|
|
.line 911
|
|
:cond_8
|
|
new-instance v2, Lcom/google/gson/stream/MalformedJsonException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "JSON forbids NaN and infinities: "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;
|
|
|
|
.line 912
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v2, v0}, Lcom/google/gson/stream/MalformedJsonException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_9
|
|
:goto_3
|
|
const/4 v3, 0x0
|
|
|
|
.line 914
|
|
iput-object v3, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 915
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 916
|
|
iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v3, v3, -0x1
|
|
|
|
aget v4, v2, v3
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
aput v4, v2, v3
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public nextInt()I
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1155
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 1157
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/16 v1, 0xf
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 1162
|
|
iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
|
|
|
|
long-to-int v0, v0
|
|
|
|
.line 1163
|
|
iget-wide v3, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
|
|
|
|
int-to-long v5, v0
|
|
|
|
cmp-long v1, v3, v5
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 1166
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 1167
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
aget v3, v1, v2
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
aput v3, v1, v2
|
|
|
|
return v0
|
|
|
|
.line 1164
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected an int but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v2, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const/16 v1, 0x10
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 1172
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
invoke-direct {v0, v1, v3, v4}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 1173
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/16 v1, 0xa
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-eq v0, v3, :cond_5
|
|
|
|
const/16 v4, 0x9
|
|
|
|
if-eq v0, v4, :cond_5
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
goto :goto_0
|
|
|
|
.line 1189
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected an int but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_5
|
|
:goto_0
|
|
if-ne v0, v1, :cond_6
|
|
|
|
.line 1176
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
if-ne v0, v3, :cond_7
|
|
|
|
const/16 v0, 0x27
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
const/16 v0, 0x22
|
|
|
|
.line 1178
|
|
:goto_1
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 1181
|
|
:goto_2
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
.line 1182
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 1183
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v3, v3, -0x1
|
|
|
|
aget v4, v1, v3
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
aput v4, v1, v3
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
:goto_3
|
|
const/16 v0, 0xb
|
|
|
|
.line 1192
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 1193
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-int v3, v0
|
|
|
|
int-to-double v4, v3
|
|
|
|
cmpl-double v6, v4, v0
|
|
|
|
if-nez v6, :cond_8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1198
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 1199
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 1200
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
aput v2, v0, v1
|
|
|
|
return v3
|
|
|
|
.line 1196
|
|
:cond_8
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected an int but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public nextLong()J
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 931
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 933
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/16 v1, 0xf
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 937
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 938
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
aput v2, v0, v1
|
|
|
|
.line 939
|
|
iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
|
|
|
|
return-wide v0
|
|
|
|
:cond_1
|
|
const/16 v1, 0x10
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 943
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
invoke-direct {v0, v1, v3, v4}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 944
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
const/16 v1, 0xa
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-eq v0, v3, :cond_4
|
|
|
|
const/16 v4, 0x9
|
|
|
|
if-eq v0, v4, :cond_4
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
.line 960
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected a long but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
:goto_0
|
|
if-ne v0, v1, :cond_5
|
|
|
|
.line 947
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
if-ne v0, v3, :cond_6
|
|
|
|
const/16 v0, 0x27
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
const/16 v0, 0x22
|
|
|
|
.line 949
|
|
:goto_1
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 952
|
|
:goto_2
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 953
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 954
|
|
iget-object v3, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v4, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v4, v4, -0x1
|
|
|
|
aget v5, v3, v4
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
aput v5, v3, v4
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-wide v0
|
|
|
|
:catch_0
|
|
:goto_3
|
|
const/16 v0, 0xb
|
|
|
|
.line 963
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 964
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-long v3, v0
|
|
|
|
long-to-double v5, v3
|
|
|
|
cmpl-double v7, v5, v0
|
|
|
|
if-nez v7, :cond_7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 969
|
|
iput-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
.line 970
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 971
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
aput v2, v0, v1
|
|
|
|
return-wide v3
|
|
|
|
.line 967
|
|
:cond_7
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected a long but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public nextName()Ljava/lang/String;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 777
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 779
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/16 v1, 0xe
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 783
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/16 v1, 0xc
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
const/16 v0, 0x27
|
|
|
|
.line 785
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/16 v1, 0xd
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
const/16 v0, 0x22
|
|
|
|
.line 787
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 791
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 792
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
return-object v0
|
|
|
|
.line 789
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected a name but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public nextNull()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 864
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 866
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x7
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 869
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 870
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
aput v2, v0, v1
|
|
|
|
return-void
|
|
|
|
.line 872
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected null but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public nextString()Ljava/lang/String;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 805
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 807
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
const/16 v1, 0xa
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 811
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->nextUnquotedValue()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/16 v1, 0x8
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
const/16 v0, 0x27
|
|
|
|
.line 813
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/16 v1, 0x9
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
const/16 v0, 0x22
|
|
|
|
.line 815
|
|
invoke-direct {p0, v0}, Lcom/google/gson/stream/JsonReader;->nextQuotedValue(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/16 v1, 0xb
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 817
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 818
|
|
iput-object v1, p0, Lcom/google/gson/stream/JsonReader;->peekedString:Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const/16 v1, 0xf
|
|
|
|
if-ne v0, v1, :cond_5
|
|
|
|
.line 820
|
|
iget-wide v0, p0, Lcom/google/gson/stream/JsonReader;->peekedLong:J
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const/16 v1, 0x10
|
|
|
|
if-ne v0, v1, :cond_6
|
|
|
|
.line 822
|
|
new-instance v0, Ljava/lang/String;
|
|
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->buffer:[C
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Ljava/lang/String;-><init>([CII)V
|
|
|
|
.line 823
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 827
|
|
iput v1, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
.line 828
|
|
iget-object v1, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
aget v3, v1, v2
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
aput v3, v1, v2
|
|
|
|
return-object v0
|
|
|
|
.line 825
|
|
:cond_6
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Expected a string but was "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public peek()Lcom/google/gson/stream/JsonToken;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 423
|
|
iget v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 425
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v0
|
|
|
|
:cond_0
|
|
packed-switch v0, :pswitch_data_0
|
|
|
|
.line 457
|
|
new-instance v0, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw v0
|
|
|
|
.line 455
|
|
:pswitch_0
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->END_DOCUMENT:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 453
|
|
:pswitch_1
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->NUMBER:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 440
|
|
:pswitch_2
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->NAME:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 450
|
|
:pswitch_3
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->STRING:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 445
|
|
:pswitch_4
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 443
|
|
:pswitch_5
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->BOOLEAN:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 436
|
|
:pswitch_6
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->END_ARRAY:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 434
|
|
:pswitch_7
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->BEGIN_ARRAY:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 432
|
|
:pswitch_8
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->END_OBJECT:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
.line 430
|
|
:pswitch_9
|
|
sget-object v0, Lcom/google/gson/stream/JsonToken;->BEGIN_OBJECT:Lcom/google/gson/stream/JsonToken;
|
|
|
|
return-object v0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_3
|
|
:pswitch_3
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_2
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public final setLenient(Z)V
|
|
.locals 0
|
|
|
|
.line 326
|
|
iput-boolean p1, p0, Lcom/google/gson/stream/JsonReader;->lenient:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public skipValue()V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 1222
|
|
:cond_0
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 1224
|
|
invoke-virtual {p0}, Lcom/google/gson/stream/JsonReader;->doPeek()I
|
|
|
|
move-result v2
|
|
|
|
:cond_1
|
|
const/4 v3, 0x3
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
.line 1228
|
|
invoke-direct {p0, v4}, Lcom/google/gson/stream/JsonReader;->push(I)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
if-ne v2, v4, :cond_3
|
|
|
|
.line 1231
|
|
invoke-direct {p0, v3}, Lcom/google/gson/stream/JsonReader;->push(I)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
const/4 v3, 0x4
|
|
|
|
if-ne v2, v3, :cond_4
|
|
|
|
.line 1234
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v2, v4
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
const/4 v3, 0x2
|
|
|
|
if-ne v2, v3, :cond_5
|
|
|
|
.line 1237
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v2, v4
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const/16 v3, 0xe
|
|
|
|
if-eq v2, v3, :cond_b
|
|
|
|
const/16 v3, 0xa
|
|
|
|
if-ne v2, v3, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const/16 v3, 0x8
|
|
|
|
if-eq v2, v3, :cond_a
|
|
|
|
const/16 v3, 0xc
|
|
|
|
if-ne v2, v3, :cond_7
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
const/16 v3, 0x9
|
|
|
|
if-eq v2, v3, :cond_9
|
|
|
|
const/16 v3, 0xd
|
|
|
|
if-ne v2, v3, :cond_8
|
|
|
|
goto :goto_0
|
|
|
|
:cond_8
|
|
const/16 v3, 0x10
|
|
|
|
if-ne v2, v3, :cond_c
|
|
|
|
.line 1246
|
|
iget v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
iget v3, p0, Lcom/google/gson/stream/JsonReader;->peekedNumberLength:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iput v2, p0, Lcom/google/gson/stream/JsonReader;->pos:I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_9
|
|
:goto_0
|
|
const/16 v2, 0x22
|
|
|
|
.line 1244
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->skipQuotedValue(C)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_a
|
|
:goto_1
|
|
const/16 v2, 0x27
|
|
|
|
.line 1242
|
|
invoke-direct {p0, v2}, Lcom/google/gson/stream/JsonReader;->skipQuotedValue(C)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 1240
|
|
:cond_b
|
|
:goto_2
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->skipUnquotedValue()V
|
|
|
|
.line 1248
|
|
:cond_c
|
|
:goto_3
|
|
iput v0, p0, Lcom/google/gson/stream/JsonReader;->peeked:I
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 1251
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathIndices:[I
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v1, v4
|
|
|
|
aget v2, v0, v1
|
|
|
|
add-int/2addr v2, v4
|
|
|
|
aput v2, v0, v1
|
|
|
|
.line 1252
|
|
iget-object v0, p0, Lcom/google/gson/stream/JsonReader;->pathNames:[Ljava/lang/String;
|
|
|
|
iget v1, p0, Lcom/google/gson/stream/JsonReader;->stackSize:I
|
|
|
|
sub-int/2addr v1, v4
|
|
|
|
const-string v2, "null"
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1445
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p0}, Lcom/google/gson/stream/JsonReader;->locationString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|