Gson$3.smali 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .class final Lcom/google/gson/Gson$3;
  2. .super Lcom/google/gson/TypeAdapter;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lcom/google/gson/Gson;->longAdapter(Lcom/google/gson/LongSerializationPolicy;)Lcom/google/gson/TypeAdapter;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x8
  10. name = null
  11. .end annotation
  12. .annotation system Ldalvik/annotation/Signature;
  13. value = {
  14. "Lcom/google/gson/TypeAdapter<",
  15. "Ljava/lang/Number;",
  16. ">;"
  17. }
  18. .end annotation
  19. # direct methods
  20. .method constructor <init>()V
  21. .locals 0
  22. invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
  23. return-void
  24. .end method
  25. # virtual methods
  26. .method public read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Number;
  27. .locals 2
  28. .annotation system Ldalvik/annotation/Throws;
  29. value = {
  30. Ljava/io/IOException;
  31. }
  32. .end annotation
  33. invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->peek()Lcom/google/gson/stream/JsonToken;
  34. move-result-object v0
  35. sget-object v1, Lcom/google/gson/stream/JsonToken;->NULL:Lcom/google/gson/stream/JsonToken;
  36. if-ne v0, v1, :cond_0
  37. invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->nextNull()V
  38. const/4 p1, 0x0
  39. return-object p1
  40. :cond_0
  41. invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->nextLong()J
  42. move-result-wide v0
  43. invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
  44. move-result-object p1
  45. return-object p1
  46. .end method
  47. .method public bridge synthetic read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
  48. .locals 0
  49. .annotation system Ldalvik/annotation/Throws;
  50. value = {
  51. Ljava/io/IOException;
  52. }
  53. .end annotation
  54. invoke-virtual {p0, p1}, Lcom/google/gson/Gson$3;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Number;
  55. move-result-object p1
  56. return-object p1
  57. .end method
  58. .method public write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Number;)V
  59. .locals 0
  60. .annotation system Ldalvik/annotation/Throws;
  61. value = {
  62. Ljava/io/IOException;
  63. }
  64. .end annotation
  65. if-nez p2, :cond_0
  66. invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->nullValue()Lcom/google/gson/stream/JsonWriter;
  67. return-void
  68. :cond_0
  69. invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
  70. move-result-object p2
  71. invoke-virtual {p1, p2}, Lcom/google/gson/stream/JsonWriter;->value(Ljava/lang/String;)Lcom/google/gson/stream/JsonWriter;
  72. return-void
  73. .end method
  74. .method public bridge synthetic write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
  75. .locals 0
  76. .annotation system Ldalvik/annotation/Throws;
  77. value = {
  78. Ljava/io/IOException;
  79. }
  80. .end annotation
  81. check-cast p2, Ljava/lang/Number;
  82. invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson$3;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Number;)V
  83. return-void
  84. .end method