class com.oracle.truffle.js.runtime.util.IteratorUtil$4 implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.js.runtime.util.IteratorUtil$4
super_class: java.lang.Object
{
private int cursor;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.util.List val$list;
descriptor: Ljava/util/List;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(java.util.List);
descriptor: (Ljava/util/List;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield com.oracle.truffle.js.runtime.util.IteratorUtil$4.val$list:Ljava/util/List;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/util/IteratorUtil$4;
MethodParameters:
Name Flags
val$list final
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.runtime.util.IteratorUtil$4.cursor:I
aload 0
getfield com.oracle.truffle.js.runtime.util.IteratorUtil$4.val$list:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 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 Lcom/oracle/truffle/js/runtime/util/IteratorUtil$4;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.runtime.util.IteratorUtil$4.hasNext:()Z
ifeq 2
1: aload 0
getfield com.oracle.truffle.js.runtime.util.IteratorUtil$4.val$list:Ljava/util/List;
aload 0
dup
getfield com.oracle.truffle.js.runtime.util.IteratorUtil$4.cursor:I
dup_x1
iconst_1
iadd
putfield com.oracle.truffle.js.runtime.util.IteratorUtil$4.cursor:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/runtime/util/IteratorUtil$4;
Signature: ()TT;
}
Signature: Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "IteratorUtil.java"
EnclosingMethod: com.oracle.truffle.js.runtime.util.IteratorUtil.simpleListIterator:(Ljava/util/List;)Ljava/util/Iterator;
NestHost: com.oracle.truffle.js.runtime.util.IteratorUtil
InnerClasses:
com.oracle.truffle.js.runtime.util.IteratorUtil$4