final class com.google.common.collect.TreeTraverser$PreOrderIterator extends com.google.common.collect.UnmodifiableIterator<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.collect.TreeTraverser$PreOrderIterator
super_class: com.google.common.collect.UnmodifiableIterator
{
private final java.util.Deque<java.util.Iterator<T>> stack;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<Ljava/util/Iterator<TT;>;>;
final com.google.common.collect.TreeTraverser this$0;
descriptor: Lcom/google/common/collect/TreeTraverser;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>();
descriptor: (Lcom/google/common/collect/TreeTraverser;Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield com.google.common.collect.TreeTraverser$PreOrderIterator.this$0:Lcom/google/common/collect/TreeTraverser;
aload 0
invokespecial com.google.common.collect.UnmodifiableIterator.<init>:()V
1: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield com.google.common.collect.TreeTraverser$PreOrderIterator.stack:Ljava/util/Deque;
2: aload 0
getfield com.google.common.collect.TreeTraverser$PreOrderIterator.stack:Ljava/util/Deque;
aload 2
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic com.google.common.collect.Iterators.singletonIterator:(Ljava/lang/Object;)Lcom/google/common/collect/UnmodifiableIterator;
invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/collect/TreeTraverser$PreOrderIterator;
0 4 2 root TT;
Signature: (TT;)V
MethodParameters:
Name Flags
this$0 final
root
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.TreeTraverser$PreOrderIterator.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/collect/TreeTraverser$PreOrderIterator;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield com.google.common.collect.TreeTraverser$PreOrderIterator.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.getLast:()Ljava/lang/Object;
checkcast java.util.Iterator
astore 1
start local 1 1: aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 2: aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
3: aload 0
getfield com.google.common.collect.TreeTraverser$PreOrderIterator.stack:Ljava/util/Deque;
invokeinterface java.util.Deque.removeLast:()Ljava/lang/Object;
pop
4: StackMap locals: java.util.Iterator java.lang.Object
StackMap stack:
aload 0
getfield com.google.common.collect.TreeTraverser$PreOrderIterator.this$0:Lcom/google/common/collect/TreeTraverser;
aload 2
invokevirtual com.google.common.collect.TreeTraverser.children:(Ljava/lang/Object;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
start local 3 5: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 7
6: aload 0
getfield com.google.common.collect.TreeTraverser$PreOrderIterator.stack:Ljava/util/Deque;
aload 3
invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
7: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/google/common/collect/TreeTraverser$PreOrderIterator;
1 8 1 itr Ljava/util/Iterator<TT;>;
2 8 2 result TT;
5 8 3 childItr Ljava/util/Iterator<TT;>;
Signature: ()TT;
}
Signature: Lcom/google/common/collect/UnmodifiableIterator<TT;>;
SourceFile: "TreeTraverser.java"
NestHost: com.google.common.collect.TreeTraverser
InnerClasses:
private final PreOrderIterator = com.google.common.collect.TreeTraverser$PreOrderIterator of com.google.common.collect.TreeTraverser