176 lines
4.4 KiB
Smali
176 lines
4.4 KiB
Smali
.class public final Lkotlin/sequences/GeneratorSequence$iterator$1;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Iterator;
|
|
.implements Lkotlin/jvm/internal/markers/KMappedMarker;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lkotlin/sequences/GeneratorSequence;->iterator()Ljava/util/Iterator;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public nextItem:Ljava/lang/Object;
|
|
|
|
.field public nextState:I
|
|
|
|
.field public final synthetic this$0:Lkotlin/sequences/GeneratorSequence;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lkotlin/sequences/GeneratorSequence;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->this$0:Lkotlin/sequences/GeneratorSequence;
|
|
|
|
.line 586
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 p1, -0x2
|
|
|
|
iput p1, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final calcNext()V
|
|
.locals 2
|
|
|
|
iget v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
const/4 v1, -0x2
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-object v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->this$0:Lkotlin/sequences/GeneratorSequence;
|
|
|
|
.line 591
|
|
invoke-static {v0}, Lkotlin/sequences/GeneratorSequence;->access$getGetInitialValue$p(Lkotlin/sequences/GeneratorSequence;)Lkotlin/jvm/functions/Function0;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->this$0:Lkotlin/sequences/GeneratorSequence;
|
|
|
|
invoke-static {v0}, Lkotlin/sequences/GeneratorSequence;->access$getGetNextValue$p(Lkotlin/sequences/GeneratorSequence;)Lkotlin/jvm/functions/Function1;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextItem:Ljava/lang/Object;
|
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-interface {v0, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
iput-object v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextItem:Ljava/lang/Object;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
iput v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public hasNext()Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
.line 609
|
|
invoke-direct {p0}, Lkotlin/sequences/GeneratorSequence$iterator$1;->calcNext()V
|
|
|
|
:cond_0
|
|
iget v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public next()Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
iget v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
.line 597
|
|
invoke-direct {p0}, Lkotlin/sequences/GeneratorSequence$iterator$1;->calcNext()V
|
|
|
|
:cond_0
|
|
iget v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextItem:Ljava/lang/Object;
|
|
|
|
const-string v1, "null cannot be cast to non-null type T of kotlin.sequences.GeneratorSequence"
|
|
|
|
.line 601
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v1, -0x1
|
|
|
|
iput v1, p0, Lkotlin/sequences/GeneratorSequence$iterator$1;->nextState:I
|
|
|
|
return-object v0
|
|
|
|
.line 600
|
|
:cond_1
|
|
new-instance v0, Ljava/util/NoSuchElementException;
|
|
|
|
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public remove()V
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v1, "Operation is not supported for read-only collection"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|