public class org.eclipse.collections.impl.list.mutable.MutableIterator<T> implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.collections.impl.list.mutable.MutableIterator
super_class: java.lang.Object
{
protected int currentIndex;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int lastIndex;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected final java.util.List<T> list;
descriptor: Ljava/util/List;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/List<TT;>;
public void <init>(java.util.List<T>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_m1
putfield org.eclipse.collections.impl.list.mutable.MutableIterator.lastIndex:I
2: aload 0
aload 1
putfield org.eclipse.collections.impl.list.mutable.MutableIterator.list:Ljava/util/List;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/collections/impl/list/mutable/MutableIterator<TT;>;
0 4 1 list Ljava/util/List<TT;>;
Signature: (Ljava/util/List<TT;>;)V
MethodParameters:
Name Flags
list
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.currentIndex:I
aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.list:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/list/mutable/MutableIterator<TT;>;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.list:Ljava/util/List;
aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.currentIndex:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 1
start local 1 1: aload 0
aload 0
dup
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.currentIndex:I
dup_x1
iconst_1
iadd
putfield org.eclipse.collections.impl.list.mutable.MutableIterator.currentIndex:I
putfield org.eclipse.collections.impl.list.mutable.MutableIterator.lastIndex:I
2: aload 1
3: areturn
end local 1 4: StackMap locals:
StackMap stack: java.lang.IndexOutOfBoundsException
pop
5: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/collections/impl/list/mutable/MutableIterator<TT;>;
1 4 1 next TT;
Exception table:
from to target type
0 3 4 Class java.lang.IndexOutOfBoundsException
Signature: ()TT;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.lastIndex:I
iconst_m1
if_icmpne 2
1: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.list:Ljava/util/List;
aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.lastIndex:I
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
3: aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.lastIndex:I
aload 0
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.currentIndex:I
if_icmpge 5
4: aload 0
dup
getfield org.eclipse.collections.impl.list.mutable.MutableIterator.currentIndex:I
iconst_1
isub
putfield org.eclipse.collections.impl.list.mutable.MutableIterator.currentIndex:I
5: StackMap locals:
StackMap stack:
aload 0
iconst_m1
putfield org.eclipse.collections.impl.list.mutable.MutableIterator.lastIndex:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/collections/impl/list/mutable/MutableIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "MutableIterator.java"