123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- .class abstract Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;
- .super Ljava/lang/Object;
- .source ""
- # interfaces
- .implements Ljava/util/Iterator;
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lcom/google/gson/internal/LinkedTreeMap;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x402
- name = "LinkedTreeMapIterator"
- .end annotation
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "<T:",
- "Ljava/lang/Object;",
- ">",
- "Ljava/lang/Object;",
- "Ljava/util/Iterator<",
- "TT;>;"
- }
- .end annotation
- # instance fields
- .field expectedModCount:I
- .field lastReturned:Lcom/google/gson/internal/LinkedTreeMap$Node;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Lcom/google/gson/internal/LinkedTreeMap$Node<",
- "TK;TV;>;"
- }
- .end annotation
- .end field
- .field next:Lcom/google/gson/internal/LinkedTreeMap$Node;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Lcom/google/gson/internal/LinkedTreeMap$Node<",
- "TK;TV;>;"
- }
- .end annotation
- .end field
- .field final synthetic this$0:Lcom/google/gson/internal/LinkedTreeMap;
- # direct methods
- .method constructor <init>(Lcom/google/gson/internal/LinkedTreeMap;)V
- .locals 1
- iput-object p1, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- iget-object p1, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
- iget-object v0, p1, Lcom/google/gson/internal/LinkedTreeMap;->header:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iget-object v0, v0, Lcom/google/gson/internal/LinkedTreeMap$Node;->next:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iput-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedTreeMap$Node;
- const/4 v0, 0x0
- iput-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iget p1, p1, Lcom/google/gson/internal/LinkedTreeMap;->modCount:I
- iput p1, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->expectedModCount:I
- return-void
- .end method
- # virtual methods
- .method public final hasNext()Z
- .locals 2
- iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iget-object v1, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
- iget-object v1, v1, Lcom/google/gson/internal/LinkedTreeMap;->header:Lcom/google/gson/internal/LinkedTreeMap$Node;
- if-eq v0, v1, :cond_0
- const/4 v0, 0x1
- goto :goto_0
- :cond_0
- const/4 v0, 0x0
- :goto_0
- return v0
- .end method
- .method final nextNode()Lcom/google/gson/internal/LinkedTreeMap$Node;
- .locals 3
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "()",
- "Lcom/google/gson/internal/LinkedTreeMap$Node<",
- "TK;TV;>;"
- }
- .end annotation
- iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iget-object v1, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
- iget-object v2, v1, Lcom/google/gson/internal/LinkedTreeMap;->header:Lcom/google/gson/internal/LinkedTreeMap$Node;
- if-eq v0, v2, :cond_1
- iget v1, v1, Lcom/google/gson/internal/LinkedTreeMap;->modCount:I
- iget v2, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->expectedModCount:I
- if-ne v1, v2, :cond_0
- iget-object v1, v0, Lcom/google/gson/internal/LinkedTreeMap$Node;->next:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iput-object v1, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->next:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iput-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedTreeMap$Node;
- return-object v0
- :cond_0
- new-instance v0, Ljava/util/ConcurrentModificationException;
- invoke-direct {v0}, Ljava/util/ConcurrentModificationException;-><init>()V
- throw v0
- :cond_1
- new-instance v0, Ljava/util/NoSuchElementException;
- invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
- throw v0
- .end method
- .method public final remove()V
- .locals 3
- iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedTreeMap$Node;
- if-eqz v0, :cond_0
- iget-object v1, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
- const/4 v2, 0x1
- invoke-virtual {v1, v0, v2}, Lcom/google/gson/internal/LinkedTreeMap;->removeInternal(Lcom/google/gson/internal/LinkedTreeMap$Node;Z)V
- const/4 v0, 0x0
- iput-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->lastReturned:Lcom/google/gson/internal/LinkedTreeMap$Node;
- iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
- iget v0, v0, Lcom/google/gson/internal/LinkedTreeMap;->modCount:I
- iput v0, p0, Lcom/google/gson/internal/LinkedTreeMap$LinkedTreeMapIterator;->expectedModCount:I
- return-void
- :cond_0
- new-instance v0, Ljava/lang/IllegalStateException;
- invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
- throw v0
- .end method
|