123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- .class final Lcom/google/gson/stream/JsonReader$1;
- .super Lcom/google/gson/internal/JsonReaderInternalAccess;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lcom/google/gson/stream/JsonReader;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x8
- name = null
- .end annotation
- # direct methods
- .method constructor <init>()V
- .locals 0
- invoke-direct {p0}, Lcom/google/gson/internal/JsonReaderInternalAccess;-><init>()V
- return-void
- .end method
- # virtual methods
- .method public promoteNameToValue(Lcom/google/gson/stream/JsonReader;)V
- .locals 3
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- instance-of v0, p1, Lcom/google/gson/internal/bind/JsonTreeReader;
- if-eqz v0, :cond_0
- check-cast p1, Lcom/google/gson/internal/bind/JsonTreeReader;
- invoke-virtual {p1}, Lcom/google/gson/internal/bind/JsonTreeReader;->promoteNameToValue()V
- return-void
- :cond_0
- iget v0, p1, Lcom/google/gson/stream/JsonReader;->peeked:I
- if-nez v0, :cond_1
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->doPeek()I
- move-result v0
- :cond_1
- const/16 v1, 0xd
- if-ne v0, v1, :cond_2
- const/16 v0, 0x9
- :goto_0
- iput v0, p1, Lcom/google/gson/stream/JsonReader;->peeked:I
- goto :goto_1
- :cond_2
- const/16 v1, 0xc
- if-ne v0, v1, :cond_3
- const/16 v0, 0x8
- goto :goto_0
- :cond_3
- const/16 v1, 0xe
- if-ne v0, v1, :cond_4
- const/16 v0, 0xa
- goto :goto_0
- :goto_1
- return-void
- :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 a name but was "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {p1}, 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-virtual {p1}, 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}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
- goto :goto_3
- :goto_2
- throw v0
- :goto_3
- goto :goto_2
- .end method
|