.class Lcom/google/protobuf/RopeByteString$PieceIterator; .super Ljava/lang/Object; .source "RopeByteString.java" # interfaces .implements Ljava/util/Iterator; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/protobuf/RopeByteString; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "PieceIterator" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Ljava/util/Iterator<", "Lcom/google/protobuf/ByteString$LeafByteString;", ">;" } .end annotation # instance fields .field private final breadCrumbs:Ljava/util/Stack; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Stack<", "Lcom/google/protobuf/RopeByteString;", ">;" } .end annotation .end field .field private next:Lcom/google/protobuf/ByteString$LeafByteString; # direct methods .method private constructor (Lcom/google/protobuf/ByteString;)V .locals 1 .line 2 invoke-direct {p0}, Ljava/lang/Object;->()V .line 3 new-instance v0, Ljava/util/Stack; invoke-direct {v0}, Ljava/util/Stack;->()V iput-object v0, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->breadCrumbs:Ljava/util/Stack; .line 4 invoke-direct {p0, p1}, Lcom/google/protobuf/RopeByteString$PieceIterator;->getLeafByLeft(Lcom/google/protobuf/ByteString;)Lcom/google/protobuf/ByteString$LeafByteString; move-result-object p1 iput-object p1, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->next:Lcom/google/protobuf/ByteString$LeafByteString; return-void .end method .method public synthetic constructor (Lcom/google/protobuf/ByteString;Lcom/google/protobuf/RopeByteString$1;)V .locals 0 .line 1 invoke-direct {p0, p1}, Lcom/google/protobuf/RopeByteString$PieceIterator;->(Lcom/google/protobuf/ByteString;)V return-void .end method .method private getLeafByLeft(Lcom/google/protobuf/ByteString;)Lcom/google/protobuf/ByteString$LeafByteString; .locals 1 .line 1 :goto_0 instance-of v0, p1, Lcom/google/protobuf/RopeByteString; if-eqz v0, :cond_0 .line 2 check-cast p1, Lcom/google/protobuf/RopeByteString; .line 3 iget-object v0, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->breadCrumbs:Ljava/util/Stack; invoke-virtual {v0, p1}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object; .line 4 invoke-static {p1}, Lcom/google/protobuf/RopeByteString;->access$400(Lcom/google/protobuf/RopeByteString;)Lcom/google/protobuf/ByteString; move-result-object p1 goto :goto_0 .line 5 :cond_0 check-cast p1, Lcom/google/protobuf/ByteString$LeafByteString; return-object p1 .end method .method private getNextNonEmptyLeaf()Lcom/google/protobuf/ByteString$LeafByteString; .locals 2 .line 1 :cond_0 iget-object v0, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->breadCrumbs:Ljava/util/Stack; invoke-virtual {v0}, Ljava/util/Stack;->isEmpty()Z move-result v0 if-eqz v0, :cond_1 const/4 v0, 0x0 return-object v0 .line 2 :cond_1 iget-object v0, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->breadCrumbs:Ljava/util/Stack; invoke-virtual {v0}, Ljava/util/Stack;->pop()Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/google/protobuf/RopeByteString; invoke-static {v0}, Lcom/google/protobuf/RopeByteString;->access$500(Lcom/google/protobuf/RopeByteString;)Lcom/google/protobuf/ByteString; move-result-object v0 invoke-direct {p0, v0}, Lcom/google/protobuf/RopeByteString$PieceIterator;->getLeafByLeft(Lcom/google/protobuf/ByteString;)Lcom/google/protobuf/ByteString$LeafByteString; move-result-object v0 .line 3 invoke-virtual {v0}, Lcom/google/protobuf/ByteString;->isEmpty()Z move-result v1 if-nez v1, :cond_0 return-object v0 .end method # virtual methods .method public hasNext()Z .locals 1 .line 1 iget-object v0, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->next:Lcom/google/protobuf/ByteString$LeafByteString; if-eqz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public next()Lcom/google/protobuf/ByteString$LeafByteString; .locals 2 .line 2 iget-object v0, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->next:Lcom/google/protobuf/ByteString$LeafByteString; if-eqz v0, :cond_0 .line 3 invoke-direct {p0}, Lcom/google/protobuf/RopeByteString$PieceIterator;->getNextNonEmptyLeaf()Lcom/google/protobuf/ByteString$LeafByteString; move-result-object v1 iput-object v1, p0, Lcom/google/protobuf/RopeByteString$PieceIterator;->next:Lcom/google/protobuf/ByteString$LeafByteString; return-object v0 .line 4 :cond_0 new-instance v0, Ljava/util/NoSuchElementException; invoke-direct {v0}, Ljava/util/NoSuchElementException;->()V throw v0 .end method .method public bridge synthetic next()Ljava/lang/Object; .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/protobuf/RopeByteString$PieceIterator;->next()Lcom/google/protobuf/ByteString$LeafByteString; move-result-object v0 return-object v0 .end method .method public remove()V .locals 1 .line 1 new-instance v0, Ljava/lang/UnsupportedOperationException; invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;->()V throw v0 .end method