Rabbit-R1/switch port/smali/smali_classes3/kotlin/io/LinesSequence$iterator$1.smali
2024-05-21 17:08:36 -04:00

172 lines
4.2 KiB
Smali

.class public final Lkotlin/io/LinesSequence$iterator$1;
.super Ljava/lang/Object;
.source "ReadWrite.kt"
# interfaces
.implements Ljava/util/Iterator;
.implements Lkotlin/jvm/internal/markers/KMappedMarker;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlin/io/LinesSequence;->iterator()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"Ljava/lang/String;",
">;",
"Lkotlin/jvm/internal/markers/KMappedMarker;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u0017\n\u0000\n\u0002\u0010(\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0004*\u0001\u0000\u0008\n\u0018\u00002\u0008\u0012\u0004\u0012\u00020\u00020\u0001J\t\u0010\u0006\u001a\u00020\u0004H\u0096\u0002J\t\u0010\u0007\u001a\u00020\u0002H\u0096\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0002X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0008"
}
d2 = {
"kotlin/io/LinesSequence$iterator$1",
"",
"",
"done",
"",
"nextValue",
"hasNext",
"next",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private done:Z
.field private nextValue:Ljava/lang/String;
.field final synthetic this$0:Lkotlin/io/LinesSequence;
# direct methods
.method constructor <init>(Lkotlin/io/LinesSequence;)V
.locals 0
iput-object p1, p0, Lkotlin/io/LinesSequence$iterator$1;->this$0:Lkotlin/io/LinesSequence;
.line 73
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 2
iget-object v0, p0, Lkotlin/io/LinesSequence$iterator$1;->nextValue:Ljava/lang/String;
const/4 v1, 0x1
if-nez v0, :cond_0
iget-boolean v0, p0, Lkotlin/io/LinesSequence$iterator$1;->done:Z
if-nez v0, :cond_0
iget-object v0, p0, Lkotlin/io/LinesSequence$iterator$1;->this$0:Lkotlin/io/LinesSequence;
.line 79
invoke-static {v0}, Lkotlin/io/LinesSequence;->access$getReader$p(Lkotlin/io/LinesSequence;)Ljava/io/BufferedReader;
move-result-object v0
invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lkotlin/io/LinesSequence$iterator$1;->nextValue:Ljava/lang/String;
if-nez v0, :cond_0
iput-boolean v1, p0, Lkotlin/io/LinesSequence$iterator$1;->done:Z
:cond_0
iget-object p0, p0, Lkotlin/io/LinesSequence$iterator$1;->nextValue:Ljava/lang/String;
if-eqz p0, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
return v1
.end method
.method public bridge synthetic next()Ljava/lang/Object;
.locals 0
.line 73
invoke-virtual {p0}, Lkotlin/io/LinesSequence$iterator$1;->next()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public next()Ljava/lang/String;
.locals 2
.line 86
invoke-virtual {p0}, Lkotlin/io/LinesSequence$iterator$1;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lkotlin/io/LinesSequence$iterator$1;->nextValue:Ljava/lang/String;
const/4 v1, 0x0
iput-object v1, p0, Lkotlin/io/LinesSequence$iterator$1;->nextValue:Ljava/lang/String;
.line 91
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
return-object v0
.line 87
:cond_0
new-instance p0, Ljava/util/NoSuchElementException;
invoke-direct {p0}, Ljava/util/NoSuchElementException;-><init>()V
throw p0
.end method
.method public remove()V
.locals 1
new-instance p0, Ljava/lang/UnsupportedOperationException;
const-string v0, "Operation is not supported for read-only collection"
invoke-direct {p0, v0}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
throw p0
.end method