ArrayCharIterator.smali
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
.class final Lkotlin/jvm/internal/ArrayCharIterator;
.super Lkotlin/collections/CharIterator;
.source "ArrayIterators.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0019\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000c\n\u0000\u0008\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\u0008H\u0096\u0002J\u0008\u0010\t\u001a\u00020\nH\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000b"
}
d2 = {
"Lkotlin/jvm/internal/ArrayCharIterator;",
"Lkotlin/collections/CharIterator;",
"array",
"",
"([C)V",
"index",
"",
"hasNext",
"",
"nextChar",
"",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x1,
0xf
}
.end annotation
# instance fields
.field private final array:[C
.field private index:I
# direct methods
.method public constructor <init>([C)V
.locals 1
.param p1 # [C
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
const-string v0, "array"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
.line 16
invoke-direct {p0}, Lkotlin/collections/CharIterator;-><init>()V
iput-object p1, p0, Lkotlin/jvm/internal/ArrayCharIterator;->array:[C
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 2
.line 18
iget v0, p0, Lkotlin/jvm/internal/ArrayCharIterator;->index:I
iget-object v1, p0, Lkotlin/jvm/internal/ArrayCharIterator;->array:[C
array-length v1, v1
if-ge v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public nextChar()C
.locals 3
.line 19
:try_start_0
iget-object v0, p0, Lkotlin/jvm/internal/ArrayCharIterator;->array:[C
iget v1, p0, Lkotlin/jvm/internal/ArrayCharIterator;->index:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lkotlin/jvm/internal/ArrayCharIterator;->index:I
aget-char v0, v0, v1
:try_end_0
.catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return v0
:catch_0
move-exception v0
iget v1, p0, Lkotlin/jvm/internal/ArrayCharIterator;->index:I
add-int/lit8 v1, v1, -0x1
iput v1, p0, Lkotlin/jvm/internal/ArrayCharIterator;->index:I
new-instance v1, Ljava/util/NoSuchElementException;
invoke-virtual {v0}, Ljava/lang/ArrayIndexOutOfBoundsException;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-direct {v1, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
.end method