public class org.apache.commons.collections4.iterators.IteratorChain<E> implements java.util.Iterator<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.iterators.IteratorChain
super_class: java.lang.Object
{
private final java.util.Queue<java.util.Iterator<? extends E>> iteratorChain;
descriptor: Ljava/util/Queue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Queue<Ljava/util/Iterator<+TE;>;>;
private java.util.Iterator<? extends E> currentIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<+TE;>;
private java.util.Iterator<? extends E> lastUsedIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<+TE;>;
private boolean isLocked;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
2: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
3: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
4: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
public void <init>(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
2: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
3: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
4: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
5: aload 0
aload 1
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.addIterator:(Ljava/util/Iterator;)V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
0 7 1 iterator Ljava/util/Iterator<+TE;>;
Signature: (Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
iterator final
public void <init>(java.util.Iterator<? extends E>, java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;Ljava/util/Iterator;)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
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
2: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
3: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
4: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
5: aload 0
aload 1
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.addIterator:(Ljava/util/Iterator;)V
6: aload 0
aload 2
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.addIterator:(Ljava/util/Iterator;)V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
0 8 1 first Ljava/util/Iterator<+TE;>;
0 8 2 second Ljava/util/Iterator<+TE;>;
Signature: (Ljava/util/Iterator<+TE;>;Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
first final
second final
public void <init>(java.util.Iterator<? extends E>[]);
descriptor: ([Ljava/util/Iterator;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
2: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
3: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
4: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
5: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: org.apache.commons.collections4.iterators.IteratorChain java.util.Iterator[] top int int java.util.Iterator[]
StackMap stack:
6: aload 5
iload 3
aaload
astore 2
start local 2 7: aload 0
aload 2
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.addIterator:(Ljava/util/Iterator;)V
end local 2 8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 6
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
0 11 1 iteratorChain [Ljava/util/Iterator;
7 8 2 element Ljava/util/Iterator<+TE;>;
Signature: ([Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
iteratorChain final
public void <init>(java.util.Collection<java.util.Iterator<? extends E>>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
2: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
3: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
4: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
5: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: org.apache.commons.collections4.iterators.IteratorChain java.util.Collection top java.util.Iterator
StackMap stack:
6: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Iterator
astore 2
start local 2 7: aload 0
aload 2
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.addIterator:(Ljava/util/Iterator;)V
end local 2 8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
0 10 1 iteratorChain Ljava/util/Collection<Ljava/util/Iterator<+TE;>;>;
7 8 2 iterator Ljava/util/Iterator<+TE;>;
Signature: (Ljava/util/Collection<Ljava/util/Iterator<+TE;>;>;)V
MethodParameters:
Name Flags
iteratorChain final
public void addIterator(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.checkLocked:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
ldc "Iterator must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
0 5 1 iterator Ljava/util/Iterator<+TE;>;
Signature: (Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
iterator final
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
invokeinterface java.util.Queue.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
public boolean isLocked();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
private void checkLocked();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
ifeq 4
1: new java.lang.UnsupportedOperationException
dup
2: ldc "IteratorChain cannot be changed after the first use of a method from the Iterator interface"
3: invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
private void lockChain();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
ifne 2
1: aload 0
iconst_1
putfield org.apache.commons.collections4.iterators.IteratorChain.isLocked:Z
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
protected void updateCurrentIterator();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
ifnonnull 8
1: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
invokeinterface java.util.Queue.isEmpty:()Z
ifeq 4
2: aload 0
invokestatic org.apache.commons.collections4.iterators.EmptyIterator.emptyIterator:()Ljava/util/Iterator;
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
invokeinterface java.util.Queue.remove:()Ljava/lang/Object;
checkcast java.util.Iterator
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
invokeinterface java.util.Queue.remove:()Ljava/lang/Object;
checkcast java.util.Iterator
putfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.iteratorChain:Ljava/util/Queue;
invokeinterface java.util.Queue.isEmpty:()Z
ifeq 7
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.lockChain:()V
1: aload 0
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.updateCurrentIterator:()V
2: aload 0
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
3: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
public E next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.lockChain:()V
1: aload 0
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.updateCurrentIterator:()V
2: aload 0
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
putfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
3: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.lockChain:()V
1: aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.currentIterator:Ljava/util/Iterator;
ifnonnull 3
2: aload 0
invokevirtual org.apache.commons.collections4.iterators.IteratorChain.updateCurrentIterator:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.IteratorChain.lastUsedIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.remove:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/iterators/IteratorChain<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TE;>;
SourceFile: "IteratorChain.java"