class java.util.Spliterators$1Adapter implements java.util.Iterator<T>, java.util.function.Consumer<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: java.util.Spliterators$1Adapter
super_class: java.lang.Object
{
boolean valueReady;
descriptor: Z
flags: (0x0000)
T nextElement;
descriptor: Ljava/lang/Object;
flags: (0x0000)
Signature: TT;
private final java.util.Spliterator val$spliterator;
descriptor: Ljava/util/Spliterator;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(java.util.Spliterator);
descriptor: (Ljava/util/Spliterator;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield java.util.Spliterators$1Adapter.val$spliterator:Ljava/util/Spliterator;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield java.util.Spliterators$1Adapter.valueReady:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/Spliterators$1Adapter;
MethodParameters:
Name Flags
val$spliterator final
public void accept();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
putfield java.util.Spliterators$1Adapter.valueReady:Z
1: aload 0
aload 1
putfield java.util.Spliterators$1Adapter.nextElement:Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/Spliterators$1Adapter;
0 3 1 t TT;
Signature: (TT;)V
MethodParameters:
Name Flags
t
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Spliterators$1Adapter.valueReady:Z
ifne 2
1: aload 0
getfield java.util.Spliterators$1Adapter.val$spliterator:Ljava/util/Spliterator;
aload 0
invokeinterface java.util.Spliterator.tryAdvance:(Ljava/util/function/Consumer;)Z
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield java.util.Spliterators$1Adapter.valueReady:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/util/Spliterators$1Adapter;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.Spliterators$1Adapter.valueReady:Z
ifne 2
aload 0
invokevirtual java.util.Spliterators$1Adapter.hasNext:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield java.util.Spliterators$1Adapter.valueReady:Z
3: aload 0
getfield java.util.Spliterators$1Adapter.nextElement:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/Spliterators$1Adapter;
Signature: ()TT;
}
Signature: Ljava/lang/Object;Ljava/util/Iterator<TT;>;Ljava/util/function/Consumer<TT;>;
SourceFile: "Spliterators.java"
EnclosingMethod: java.util.Spliterators.iterator:(Ljava/util/Spliterator;)Ljava/util/Iterator;
NestHost: java.util.Spliterators
InnerClasses:
Adapter = java.util.Spliterators$1Adapter