LinkedHashTreeMap$LinkedTreeMapIterator.smali 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. .class abstract Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/util/Iterator;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingClass;
  8. value = Lcom/google/gson/internal/LinkedHashTreeMap;
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x402
  12. name = "LinkedTreeMapIterator"
  13. .end annotation
  14. .annotation system Ldalvik/annotation/Signature;
  15. value = {
  16. "<T:",
  17. "Ljava/lang/Object;",
  18. ">",
  19. "Ljava/lang/Object;",
  20. "Ljava/util/Iterator<",
  21. "TT;>;"
  22. }
  23. .end annotation
  24. # instance fields
  25. .field expectedModCount:I
  26. .field lastReturned:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  27. .annotation system Ldalvik/annotation/Signature;
  28. value = {
  29. "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
  30. "TK;TV;>;"
  31. }
  32. .end annotation
  33. .end field
  34. .field next:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  35. .annotation system Ldalvik/annotation/Signature;
  36. value = {
  37. "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
  38. "TK;TV;>;"
  39. }
  40. .end annotation
  41. .end field
  42. .field final synthetic this$0:Lcom/google/gson/internal/LinkedHashTreeMap;
  43. # direct methods
  44. .method constructor <init>(Lcom/google/gson/internal/LinkedHashTreeMap;)V
  45. .locals 1
  46. iput-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedHashTreeMap;
  47. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  48. iget-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedHashTreeMap;
  49. iget-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap;->header:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  50. iget-object v0, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  51. iput-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  52. const/4 v0, 0x0
  53. iput-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  54. iget p1, p1, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I
  55. iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->expectedModCount:I
  56. return-void
  57. .end method
  58. # virtual methods
  59. .method public final hasNext()Z
  60. .locals 2
  61. iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  62. iget-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedHashTreeMap;
  63. iget-object v1, v1, Lcom/google/gson/internal/LinkedHashTreeMap;->header:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  64. if-eq v0, v1, :cond_0
  65. const/4 v0, 0x1
  66. goto :goto_0
  67. :cond_0
  68. const/4 v0, 0x0
  69. :goto_0
  70. return v0
  71. .end method
  72. .method final nextNode()Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  73. .locals 3
  74. .annotation system Ldalvik/annotation/Signature;
  75. value = {
  76. "()",
  77. "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
  78. "TK;TV;>;"
  79. }
  80. .end annotation
  81. iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  82. iget-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedHashTreeMap;
  83. iget-object v2, v1, Lcom/google/gson/internal/LinkedHashTreeMap;->header:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  84. if-eq v0, v2, :cond_1
  85. iget v1, v1, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I
  86. iget v2, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->expectedModCount:I
  87. if-ne v1, v2, :cond_0
  88. iget-object v1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  89. iput-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  90. iput-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  91. return-object v0
  92. :cond_0
  93. new-instance v0, Ljava/util/ConcurrentModificationException;
  94. invoke-direct {v0}, Ljava/util/ConcurrentModificationException;-><init>()V
  95. throw v0
  96. :cond_1
  97. new-instance v0, Ljava/util/NoSuchElementException;
  98. invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
  99. throw v0
  100. .end method
  101. .method public final remove()V
  102. .locals 3
  103. iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  104. if-eqz v0, :cond_0
  105. iget-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedHashTreeMap;
  106. const/4 v2, 0x1
  107. invoke-virtual {v1, v0, v2}, Lcom/google/gson/internal/LinkedHashTreeMap;->removeInternal(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Z)V
  108. const/4 v0, 0x0
  109. iput-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  110. iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedHashTreeMap;
  111. iget v0, v0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I
  112. iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;->expectedModCount:I
  113. return-void
  114. :cond_0
  115. new-instance v0, Ljava/lang/IllegalStateException;
  116. invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
  117. throw v0
  118. .end method