AscIntegerIterator.smali

.class Lorg/apache/commons/jexl3/internal/AscIntegerIterator;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/util/Iterator;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Iterator<",
        "Ljava/lang/Integer;",
        ">;"
    }
.end annotation


# instance fields
.field private cursor:I

.field private final max:I

.field private final min:I


# direct methods
.method public constructor <init>(II)V
    .registers 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput p1, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->min:I

    .line 3
    iput p2, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->max:I

    .line 4
    iput p1, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->cursor:I

    return-void
.end method


# virtual methods
.method public hasNext()Z
    .registers 3

    iget v0, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->cursor:I

    iget v1, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->max:I

    if-gt 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/Integer;
    .registers 3

    .line 2
    iget v0, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->cursor:I

    iget v1, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->max:I

    if-gt v0, v1, :cond_f

    add-int/lit8 v1, v0, 0x1

    .line 3
    iput v1, p0, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->cursor:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    return-object v0

    .line 4
    :cond_f
    new-instance v0, Ljava/util/NoSuchElementException;

    invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V

    throw v0
.end method

.method public bridge synthetic next()Ljava/lang/Object;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lorg/apache/commons/jexl3/internal/AscIntegerIterator;->next()Ljava/lang/Integer;

    move-result-object v0

    return-object v0
.end method

.method public remove()V
    .registers 3

    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Not supported."

    invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V

    throw v0
.end method