LinkedHashTreeMap$AvlIterator.smali 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .class Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingClass;
  6. value = Lcom/google/gson/internal/LinkedHashTreeMap;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x8
  10. name = "AvlIterator"
  11. .end annotation
  12. .annotation system Ldalvik/annotation/Signature;
  13. value = {
  14. "<K:",
  15. "Ljava/lang/Object;",
  16. "V:",
  17. "Ljava/lang/Object;",
  18. ">",
  19. "Ljava/lang/Object;"
  20. }
  21. .end annotation
  22. # instance fields
  23. .field private stackTop:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  24. .annotation system Ldalvik/annotation/Signature;
  25. value = {
  26. "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
  27. "TK;TV;>;"
  28. }
  29. .end annotation
  30. .end field
  31. # direct methods
  32. .method constructor <init>()V
  33. .locals 0
  34. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  35. return-void
  36. .end method
  37. # virtual methods
  38. .method public next()Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  39. .locals 4
  40. .annotation system Ldalvik/annotation/Signature;
  41. value = {
  42. "()",
  43. "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
  44. "TK;TV;>;"
  45. }
  46. .end annotation
  47. iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->stackTop:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  48. const/4 v1, 0x0
  49. if-nez v0, :cond_0
  50. return-object v1
  51. :cond_0
  52. iget-object v2, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  53. iput-object v1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  54. iget-object v1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  55. :goto_0
  56. move-object v3, v2
  57. move-object v2, v1
  58. move-object v1, v3
  59. if-eqz v2, :cond_1
  60. iput-object v1, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  61. iget-object v1, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  62. goto :goto_0
  63. :cond_1
  64. iput-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->stackTop:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  65. return-object v0
  66. .end method
  67. .method reset(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V
  68. .locals 2
  69. .annotation system Ldalvik/annotation/Signature;
  70. value = {
  71. "(",
  72. "Lcom/google/gson/internal/LinkedHashTreeMap$Node<",
  73. "TK;TV;>;)V"
  74. }
  75. .end annotation
  76. const/4 v0, 0x0
  77. :goto_0
  78. move-object v1, v0
  79. move-object v0, p1
  80. move-object p1, v1
  81. if-eqz v0, :cond_0
  82. iput-object p1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  83. iget-object p1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  84. goto :goto_0
  85. :cond_0
  86. iput-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->stackTop:Lcom/google/gson/internal/LinkedHashTreeMap$Node;
  87. return-void
  88. .end method