Excluder$1.smali 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. .class Lcom/google/gson/internal/Excluder$1;
  2. .super Lcom/google/gson/TypeAdapter;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingMethod;
  6. value = Lcom/google/gson/internal/Excluder;->create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = null
  11. .end annotation
  12. .annotation system Ldalvik/annotation/Signature;
  13. value = {
  14. "Lcom/google/gson/TypeAdapter<",
  15. "TT;>;"
  16. }
  17. .end annotation
  18. # instance fields
  19. .field private delegate:Lcom/google/gson/TypeAdapter;
  20. .annotation system Ldalvik/annotation/Signature;
  21. value = {
  22. "Lcom/google/gson/TypeAdapter<",
  23. "TT;>;"
  24. }
  25. .end annotation
  26. .end field
  27. .field final synthetic this$0:Lcom/google/gson/internal/Excluder;
  28. .field final synthetic val$gson:Lcom/google/gson/Gson;
  29. .field final synthetic val$skipDeserialize:Z
  30. .field final synthetic val$skipSerialize:Z
  31. .field final synthetic val$type:Lcom/google/gson/reflect/TypeToken;
  32. # direct methods
  33. .method constructor <init>(Lcom/google/gson/internal/Excluder;ZZLcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)V
  34. .locals 0
  35. iput-object p1, p0, Lcom/google/gson/internal/Excluder$1;->this$0:Lcom/google/gson/internal/Excluder;
  36. iput-boolean p2, p0, Lcom/google/gson/internal/Excluder$1;->val$skipDeserialize:Z
  37. iput-boolean p3, p0, Lcom/google/gson/internal/Excluder$1;->val$skipSerialize:Z
  38. iput-object p4, p0, Lcom/google/gson/internal/Excluder$1;->val$gson:Lcom/google/gson/Gson;
  39. iput-object p5, p0, Lcom/google/gson/internal/Excluder$1;->val$type:Lcom/google/gson/reflect/TypeToken;
  40. invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
  41. return-void
  42. .end method
  43. .method private delegate()Lcom/google/gson/TypeAdapter;
  44. .locals 3
  45. .annotation system Ldalvik/annotation/Signature;
  46. value = {
  47. "()",
  48. "Lcom/google/gson/TypeAdapter<",
  49. "TT;>;"
  50. }
  51. .end annotation
  52. iget-object v0, p0, Lcom/google/gson/internal/Excluder$1;->delegate:Lcom/google/gson/TypeAdapter;
  53. if-eqz v0, :cond_0
  54. goto :goto_0
  55. :cond_0
  56. iget-object v0, p0, Lcom/google/gson/internal/Excluder$1;->val$gson:Lcom/google/gson/Gson;
  57. iget-object v1, p0, Lcom/google/gson/internal/Excluder$1;->this$0:Lcom/google/gson/internal/Excluder;
  58. iget-object v2, p0, Lcom/google/gson/internal/Excluder$1;->val$type:Lcom/google/gson/reflect/TypeToken;
  59. invoke-virtual {v0, v1, v2}, Lcom/google/gson/Gson;->getDelegateAdapter(Lcom/google/gson/TypeAdapterFactory;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
  60. move-result-object v0
  61. iput-object v0, p0, Lcom/google/gson/internal/Excluder$1;->delegate:Lcom/google/gson/TypeAdapter;
  62. :goto_0
  63. return-object v0
  64. .end method
  65. # virtual methods
  66. .method public read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
  67. .locals 1
  68. .annotation system Ldalvik/annotation/Signature;
  69. value = {
  70. "(",
  71. "Lcom/google/gson/stream/JsonReader;",
  72. ")TT;"
  73. }
  74. .end annotation
  75. .annotation system Ldalvik/annotation/Throws;
  76. value = {
  77. Ljava/io/IOException;
  78. }
  79. .end annotation
  80. iget-boolean v0, p0, Lcom/google/gson/internal/Excluder$1;->val$skipDeserialize:Z
  81. if-eqz v0, :cond_0
  82. invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->skipValue()V
  83. const/4 p1, 0x0
  84. return-object p1
  85. :cond_0
  86. invoke-direct {p0}, Lcom/google/gson/internal/Excluder$1;->delegate()Lcom/google/gson/TypeAdapter;
  87. move-result-object v0
  88. invoke-virtual {v0, p1}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
  89. move-result-object p1
  90. return-object p1
  91. .end method
  92. .method public write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
  93. .locals 1
  94. .annotation system Ldalvik/annotation/Signature;
  95. value = {
  96. "(",
  97. "Lcom/google/gson/stream/JsonWriter;",
  98. "TT;)V"
  99. }
  100. .end annotation
  101. .annotation system Ldalvik/annotation/Throws;
  102. value = {
  103. Ljava/io/IOException;
  104. }
  105. .end annotation
  106. iget-boolean v0, p0, Lcom/google/gson/internal/Excluder$1;->val$skipSerialize:Z
  107. if-eqz v0, :cond_0
  108. invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->nullValue()Lcom/google/gson/stream/JsonWriter;
  109. return-void
  110. :cond_0
  111. invoke-direct {p0}, Lcom/google/gson/internal/Excluder$1;->delegate()Lcom/google/gson/TypeAdapter;
  112. move-result-object v0
  113. invoke-virtual {v0, p1, p2}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
  114. return-void
  115. .end method