123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- .class public abstract Lcom/google/gson/JsonElement;
- .super Ljava/lang/Object;
- .source ""
- # direct methods
- .method public constructor <init>()V
- .locals 0
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- return-void
- .end method
- # virtual methods
- .method abstract deepCopy()Lcom/google/gson/JsonElement;
- .end method
- .method public getAsBigDecimal()Ljava/math/BigDecimal;
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsBigInteger()Ljava/math/BigInteger;
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsBoolean()Z
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method getAsBooleanWrapper()Ljava/lang/Boolean;
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsByte()B
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsCharacter()C
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsDouble()D
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsFloat()F
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsInt()I
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsJsonArray()Lcom/google/gson/JsonArray;
- .locals 3
- invoke-virtual {p0}, Lcom/google/gson/JsonElement;->isJsonArray()Z
- move-result v0
- if-eqz v0, :cond_0
- move-object v0, p0
- check-cast v0, Lcom/google/gson/JsonArray;
- return-object v0
- :cond_0
- new-instance v0, Ljava/lang/IllegalStateException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "Not a JSON Array: "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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 getAsJsonNull()Lcom/google/gson/JsonNull;
- .locals 3
- invoke-virtual {p0}, Lcom/google/gson/JsonElement;->isJsonNull()Z
- move-result v0
- if-eqz v0, :cond_0
- move-object v0, p0
- check-cast v0, Lcom/google/gson/JsonNull;
- return-object v0
- :cond_0
- new-instance v0, Ljava/lang/IllegalStateException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "Not a JSON Null: "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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 getAsJsonObject()Lcom/google/gson/JsonObject;
- .locals 3
- invoke-virtual {p0}, Lcom/google/gson/JsonElement;->isJsonObject()Z
- move-result v0
- if-eqz v0, :cond_0
- move-object v0, p0
- check-cast v0, Lcom/google/gson/JsonObject;
- return-object v0
- :cond_0
- new-instance v0, Ljava/lang/IllegalStateException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "Not a JSON Object: "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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 getAsJsonPrimitive()Lcom/google/gson/JsonPrimitive;
- .locals 3
- invoke-virtual {p0}, Lcom/google/gson/JsonElement;->isJsonPrimitive()Z
- move-result v0
- if-eqz v0, :cond_0
- move-object v0, p0
- check-cast v0, Lcom/google/gson/JsonPrimitive;
- return-object v0
- :cond_0
- new-instance v0, Ljava/lang/IllegalStateException;
- new-instance v1, Ljava/lang/StringBuilder;
- invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
- const-string v2, "Not a JSON Primitive: "
- invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
- invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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 getAsLong()J
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsNumber()Ljava/lang/Number;
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsShort()S
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public getAsString()Ljava/lang/String;
- .locals 2
- new-instance v0, Ljava/lang/UnsupportedOperationException;
- 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-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
- throw v0
- .end method
- .method public isJsonArray()Z
- .locals 1
- instance-of v0, p0, Lcom/google/gson/JsonArray;
- return v0
- .end method
- .method public isJsonNull()Z
- .locals 1
- instance-of v0, p0, Lcom/google/gson/JsonNull;
- return v0
- .end method
- .method public isJsonObject()Z
- .locals 1
- instance-of v0, p0, Lcom/google/gson/JsonObject;
- return v0
- .end method
- .method public isJsonPrimitive()Z
- .locals 1
- instance-of v0, p0, Lcom/google/gson/JsonPrimitive;
- return v0
- .end method
- .method public toString()Ljava/lang/String;
- .locals 3
- :try_start_0
- new-instance v0, Ljava/io/StringWriter;
- invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V
- new-instance v1, Lcom/google/gson/stream/JsonWriter;
- invoke-direct {v1, v0}, Lcom/google/gson/stream/JsonWriter;-><init>(Ljava/io/Writer;)V
- const/4 v2, 0x1
- invoke-virtual {v1, v2}, Lcom/google/gson/stream/JsonWriter;->setLenient(Z)V
- invoke-static {p0, v1}, Lcom/google/gson/internal/Streams;->write(Lcom/google/gson/JsonElement;Lcom/google/gson/stream/JsonWriter;)V
- invoke-virtual {v0}, Ljava/io/StringWriter;->toString()Ljava/lang/String;
- move-result-object v0
- :try_end_0
- .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
- return-object v0
- :catch_0
- move-exception v0
- new-instance v1, Ljava/lang/AssertionError;
- invoke-direct {v1, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
- throw v1
- .end method
|