public final class org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator<T> implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator
super_class: java.lang.Object
{
private static final java.lang.Object NULL;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.Iterator<T> iterator;
descriptor: Ljava/util/Iterator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Iterator<TT;>;
private final org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate;
descriptor: Lorg/eclipse/collections/api/block/predicate/Predicate;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;
private boolean terminate;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.Object next;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.NULL:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.Iterable<T>, org.eclipse.collections.api.block.predicate.Predicate<? super T>);
descriptor: (Ljava/lang/Iterable;Lorg/eclipse/collections/api/block/predicate/Predicate;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
aload 2
invokespecial org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.<init>:(Ljava/util/Iterator;Lorg/eclipse/collections/api/block/predicate/Predicate;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeWhileIterator<TT;>;
0 2 1 iterable Ljava/lang/Iterable<TT;>;
0 2 2 predicate Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;
Signature: (Ljava/lang/Iterable<TT;>;Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;)V
MethodParameters:
Name Flags
iterable
predicate
public void <init>(java.util.Iterator<T>, org.eclipse.collections.api.block.predicate.Predicate<? super T>);
descriptor: (Ljava/util/Iterator;Lorg/eclipse/collections/api/block/predicate/Predicate;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.NULL:Ljava/lang/Object;
putfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.next:Ljava/lang/Object;
2: aload 0
aload 1
putfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.iterator:Ljava/util/Iterator;
3: aload 0
aload 2
putfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.predicate:Lorg/eclipse/collections/api/block/predicate/Predicate;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeWhileIterator<TT;>;
0 5 1 iterator Ljava/util/Iterator<TT;>;
0 5 2 predicate Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;
Signature: (Ljava/util/Iterator<TT;>;Lorg/eclipse/collections/api/block/predicate/Predicate<-TT;>;)V
MethodParameters:
Name Flags
iterator
predicate
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.next:Ljava/lang/Object;
getstatic org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.NULL:Ljava/lang/Object;
if_acmpeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.terminate:Z
ifne 9
aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 9
3: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 1
start local 1 4: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.predicate:Lorg/eclipse/collections/api/block/predicate/Predicate;
aload 1
invokeinterface org.eclipse.collections.api.block.predicate.Predicate.accept:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
aload 1
putfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.next:Ljava/lang/Object;
6: iconst_1
ireturn
7: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.terminate:Z
8: aload 0
getstatic org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.NULL:Ljava/lang/Object;
putfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.next:Ljava/lang/Object;
end local 1 9: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeWhileIterator<TT;>;
4 9 1 temp TT;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.hasNext:()Z
ifeq 4
1: aload 0
getfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.next:Ljava/lang/Object;
astore 1
start local 1 2: aload 0
getstatic org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.NULL:Ljava/lang/Object;
putfield org.eclipse.collections.impl.lazy.iterator.TakeWhileIterator.next:Ljava/lang/Object;
3: aload 1
areturn
end local 1 4: 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 5 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeWhileIterator<TT;>;
2 4 1 temp Ljava/lang/Object;
Signature: ()TT;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "Cannot remove from a takeWhile iterator"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/collections/impl/lazy/iterator/TakeWhileIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "TakeWhileIterator.java"