260 lines
6.1 KiB
Smali
260 lines
6.1 KiB
Smali
.class public Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;
|
|
.super Ljava/lang/Object;
|
|
.source "Predicate.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Iterator;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/badlogic/gdx/utils/Predicate;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "PredicateIterator"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Ljava/util/Iterator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:Lcom/badlogic/gdx/utils/Predicate;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/badlogic/gdx/utils/Predicate<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public c:Z
|
|
|
|
.field public d:Z
|
|
|
|
.field public e:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/util/Iterator;Lcom/badlogic/gdx/utils/Predicate;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;",
|
|
"Lcom/badlogic/gdx/utils/Predicate<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 39
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 31
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->c:Z
|
|
|
|
.line 32
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->d:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 33
|
|
iput-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->e:Ljava/lang/Object;
|
|
|
|
.line 40
|
|
invoke-virtual {p0, p1, p2}, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->a(Ljava/util/Iterator;Lcom/badlogic/gdx/utils/Predicate;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/util/Iterator;Lcom/badlogic/gdx/utils/Predicate;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;",
|
|
"Lcom/badlogic/gdx/utils/Predicate<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 48
|
|
iput-object p1, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->a:Ljava/util/Iterator;
|
|
|
|
.line 49
|
|
iput-object p2, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->b:Lcom/badlogic/gdx/utils/Predicate;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 50
|
|
iput-boolean p1, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->d:Z
|
|
|
|
iput-boolean p1, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->c:Z
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 51
|
|
iput-object p1, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->e:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public hasNext()Z
|
|
.locals 4
|
|
|
|
.line 56
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->c:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 57
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->e:Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return v2
|
|
|
|
.line 58
|
|
:cond_1
|
|
iput-boolean v2, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->d:Z
|
|
|
|
.line 59
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->a:Ljava/util/Iterator;
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 60
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->a:Ljava/util/Iterator;
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 61
|
|
iget-object v3, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->b:Lcom/badlogic/gdx/utils/Predicate;
|
|
|
|
invoke-interface {v3, v0}, Lcom/badlogic/gdx/utils/Predicate;->a(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 62
|
|
iput-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->e:Ljava/lang/Object;
|
|
|
|
return v2
|
|
|
|
.line 66
|
|
:cond_3
|
|
iput-boolean v2, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->c:Z
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method public next()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 72
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->e:Ljava/lang/Object;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
.line 73
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->e:Ljava/lang/Object;
|
|
|
|
.line 74
|
|
iput-object v1, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->e:Ljava/lang/Object;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 75
|
|
iput-boolean v1, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->d:Z
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public remove()V
|
|
.locals 2
|
|
|
|
.line 81
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->d:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 82
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/Predicate$PredicateIterator;->a:Ljava/util/Iterator;
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
|
|
|
return-void
|
|
|
|
.line 81
|
|
:cond_0
|
|
new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;
|
|
|
|
const-string v1, "Cannot remove between a call to hasNext() and next()."
|
|
|
|
invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|