f.smali
.class Lcom/google/protobuf/f;
.super Ljava/lang/Object;
.source "ByteString.java"
# interfaces
.implements Lcom/google/protobuf/ByteString$c;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/protobuf/ByteString;->iterator()Lcom/google/protobuf/ByteString$c;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private a:I
.field private final b:I
.field final synthetic c:Lcom/google/protobuf/ByteString;
# direct methods
.method constructor <init>(Lcom/google/protobuf/ByteString;)V
.registers 2
.line 1
iput-object p1, p0, Lcom/google/protobuf/f;->c:Lcom/google/protobuf/ByteString;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
.line 2
iput p1, p0, Lcom/google/protobuf/f;->a:I
.line 3
iget-object p1, p0, Lcom/google/protobuf/f;->c:Lcom/google/protobuf/ByteString;
invoke-virtual {p1}, Lcom/google/protobuf/ByteString;->size()I
move-result p1
iput p1, p0, Lcom/google/protobuf/f;->b:I
return-void
.end method
# virtual methods
.method public a()B
.registers 4
.line 1
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/f;->c:Lcom/google/protobuf/ByteString;
iget v1, p0, Lcom/google/protobuf/f;->a:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/f;->a:I
invoke-virtual {v0, v1}, Lcom/google/protobuf/ByteString;->byteAt(I)B
move-result v0
:try_end_c
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_c} :catch_d
return v0
:catch_d
move-exception v0
.line 2
new-instance v1, Ljava/util/NoSuchElementException;
invoke-virtual {v0}, Ljava/lang/IndexOutOfBoundsException;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public hasNext()Z
.registers 3
.line 1
iget v0, p0, Lcom/google/protobuf/f;->a:I
iget v1, p0, Lcom/google/protobuf/f;->b:I
if-ge v0, v1, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method
.method public next()Ljava/lang/Byte;
.registers 2
.line 2
invoke-virtual {p0}, Lcom/google/protobuf/f;->a()B
move-result v0
invoke-static {v0}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/f;->next()Ljava/lang/Byte;
move-result-object v0
return-object v0
.end method
.method public remove()V
.registers 2
.line 1
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method