288 lines
4.9 KiB
Smali
288 lines
4.9 KiB
Smali
.class public Lmg/l;
|
|
.super Ljava/lang/Object;
|
|
.source "BasicListHeaderIterator.java"
|
|
|
|
# interfaces
|
|
.implements Ldf/g;
|
|
|
|
|
|
# annotations
|
|
.annotation build Lcz/msebera/android/httpclient/annotation/NotThreadSafe;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ldf/d;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:I
|
|
|
|
.field public c:I
|
|
|
|
.field public d:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/List;Ljava/lang/String;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Ldf/d;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const-string v0, "Header list"
|
|
|
|
.line 2
|
|
invoke-static {p1, v0}, Lqg/a;->h(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/util/List;
|
|
|
|
iput-object p1, p0, Lmg/l;->a:Ljava/util/List;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Lmg/l;->d:Ljava/lang/String;
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Lmg/l;->b(I)I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lmg/l;->b:I
|
|
|
|
.line 5
|
|
iput p1, p0, Lmg/l;->c:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(I)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lmg/l;->d:Ljava/lang/String;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lmg/l;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ldf/d;
|
|
|
|
invoke-interface {p1}, Ldf/d;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lmg/l;->d:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public b(I)I
|
|
.locals 3
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 1
|
|
:cond_0
|
|
iget-object v1, p0, Lmg/l;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-nez v2, :cond_1
|
|
|
|
if-ge p1, v1, :cond_1
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Lmg/l;->a(I)Z
|
|
|
|
move-result v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-eqz v2, :cond_2
|
|
|
|
move v0, p1
|
|
|
|
:cond_2
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasNext()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lmg/l;->b:I
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final next()Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/util/NoSuchElementException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lmg/l;->nextHeader()Ldf/d;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public nextHeader()Ldf/d;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/util/NoSuchElementException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lmg/l;->b:I
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 2
|
|
iput v0, p0, Lmg/l;->c:I
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lmg/l;->b(I)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lmg/l;->b:I
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lmg/l;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ldf/d;
|
|
|
|
return-object v0
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance v0, Ljava/util/NoSuchElementException;
|
|
|
|
const-string v1, "Iteration already finished."
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public remove()V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/UnsupportedOperationException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lmg/l;->c:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const-string v2, "No header to remove"
|
|
|
|
invoke-static {v0, v2}, Lqg/b;->a(ZLjava/lang/String;)V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lmg/l;->a:Ljava/util/List;
|
|
|
|
iget v2, p0, Lmg/l;->c:I
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 3
|
|
iput v0, p0, Lmg/l;->c:I
|
|
|
|
.line 4
|
|
iget v0, p0, Lmg/l;->b:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iput v0, p0, Lmg/l;->b:I
|
|
|
|
return-void
|
|
.end method
|