public class org.apache.commons.collections4.iterators.ObjectGraphIterator<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.ObjectGraphIterator
super_class: java.lang.Object
{
private final java.util.Deque<java.util.Iterator<? extends E>> stack;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<Ljava/util/Iterator<+TE;>;>;
private E root;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TE;
private final org.apache.commons.collections4.Transformer<? super E, ? extends E> transformer;
descriptor: Lorg/apache/commons/collections4/Transformer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/commons/collections4/Transformer<-TE;+TE;>;
private boolean hasNext;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.Iterator<? extends E> currentIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<+TE;>;
private E currentValue;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TE;
private java.util.Iterator<? extends E> lastUsedIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<+TE;>;
public void <init>(E, org.apache.commons.collections4.Transformer<? super E, ? extends E>);
descriptor: (Ljava/lang/Object;Lorg/apache/commons/collections4/Transformer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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.ArrayDeque
dup
bipush 8
invokespecial java.util.ArrayDeque.<init>:(I)V
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.stack:Ljava/util/Deque;
2: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
3: aload 1
instanceof java.util.Iterator
ifeq 6
4: aload 0
aload 1
checkcast java.util.Iterator
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
5: goto 7
6: StackMap locals: org.apache.commons.collections4.iterators.ObjectGraphIterator java.lang.Object org.apache.commons.collections4.Transformer
StackMap stack:
aload 0
aload 1
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.root:Ljava/lang/Object;
7: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.transformer:Lorg/apache/commons/collections4/Transformer;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
0 9 1 root TE;
0 9 2 transformer Lorg/apache/commons/collections4/Transformer<-TE;+TE;>;
Signature: (TE;Lorg/apache/commons/collections4/Transformer<-TE;+TE;>;)V
MethodParameters:
Name Flags
root final
transformer final
public void <init>(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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.ArrayDeque
dup
bipush 8
invokespecial java.util.ArrayDeque.<init>:(I)V
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.stack:Ljava/util/Deque;
2: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
3: aload 0
aload 1
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
4: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.transformer:Lorg/apache/commons/collections4/Transformer;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
0 6 1 rootIterator Ljava/util/Iterator<+TE;>;
Signature: (Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
rootIterator final
protected void updateCurrentIterator();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
ifnonnull 10
3: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.root:Ljava/lang/Object;
ifnull 11
4: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.transformer:Lorg/apache/commons/collections4/Transformer;
ifnonnull 7
5: aload 0
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.root:Ljava/lang/Object;
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.findNext:(Ljava/lang/Object;)V
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.transformer:Lorg/apache/commons/collections4/Transformer;
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.root:Ljava/lang/Object;
invokeinterface org.apache.commons.collections4.Transformer.transform:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.findNext:(Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.root:Ljava/lang/Object;
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.findNextByIterator:(Ljava/util/Iterator;)V
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
protected void findNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.util.Iterator
ifeq 3
1: aload 0
aload 1
checkcast java.util.Iterator
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.findNextByIterator:(Ljava/util/Iterator;)V
2: goto 5
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentValue:Ljava/lang/Object;
4: aload 0
iconst_1
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
0 6 1 value TE;
Signature: (TE;)V
MethodParameters:
Name Flags
value final
protected void findNextByIterator(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
if_acmpeq 9
1: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
ifnull 3
2: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.stack:Ljava/util/Deque;
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
4: goto 9
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 6: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.transformer:Lorg/apache/commons/collections4/Transformer;
ifnull 8
7: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.transformer:Lorg/apache/commons/collections4/Transformer;
aload 2
invokeinterface org.apache.commons.collections4.Transformer.transform:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
8: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.findNext:(Ljava/lang/Object;)V
end local 2 9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 10
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
ifeq 5
10: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
ifne 13
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifne 13
11: aload 0
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
checkcast java.util.Iterator
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
12: aload 0
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.findNextByIterator:(Ljava/util/Iterator;)V
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
0 14 1 iterator Ljava/util/Iterator<+TE;>;
6 9 2 next TE;
Signature: (Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
iterator final
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.updateCurrentIterator:()V
1: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
public E next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.ObjectGraphIterator.updateCurrentIterator:()V
1: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
ifne 3
2: new java.util.NoSuchElementException
dup
ldc "No more elements in the iteration"
invokespecial java.util.NoSuchElementException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentIterator:Ljava/util/Iterator;
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.lastUsedIterator:Ljava/util/Iterator;
4: aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentValue:Ljava/lang/Object;
astore 1
start local 1 5: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.currentValue:Ljava/lang/Object;
6: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.hasNext:Z
7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
5 8 1 result TE;
Signature: ()TE;
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.apache.commons.collections4.iterators.ObjectGraphIterator.lastUsedIterator:Ljava/util/Iterator;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "Iterator remove() cannot be called at this time"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.ObjectGraphIterator.lastUsedIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.remove:()V
3: aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.ObjectGraphIterator.lastUsedIterator:Ljava/util/Iterator;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/collections4/iterators/ObjectGraphIterator<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TE;>;
SourceFile: "ObjectGraphIterator.java"