public class org.apache.commons.collections4.iterators.PushbackIterator<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.PushbackIterator
super_class: java.lang.Object
{
private final java.util.Iterator<? extends E> iterator;
descriptor: Ljava/util/Iterator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Iterator<+TE;>;
private final java.util.Deque<E> items;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<TE;>;
public static <E> org.apache.commons.collections4.iterators.PushbackIterator<E> pushbackIterator(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)Lorg/apache/commons/collections4/iterators/PushbackIterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "Iterator must not be null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.apache.commons.collections4.iterators.PushbackIterator
ifeq 5
3: aload 0
checkcast org.apache.commons.collections4.iterators.PushbackIterator
astore 1
start local 1 4: aload 1
areturn
end local 1 5: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.iterators.PushbackIterator
dup
aload 0
invokespecial org.apache.commons.collections4.iterators.PushbackIterator.<init>:(Ljava/util/Iterator;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 iterator Ljava/util/Iterator<+TE;>;
4 5 1 it Lorg/apache/commons/collections4/iterators/PushbackIterator<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Iterator<+TE;>;)Lorg/apache/commons/collections4/iterators/PushbackIterator<TE;>;
MethodParameters:
Name Flags
iterator final
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.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield org.apache.commons.collections4.iterators.PushbackIterator.items:Ljava/util/Deque;
2: aload 0
aload 1
putfield org.apache.commons.collections4.iterators.PushbackIterator.iterator:Ljava/util/Iterator;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/collections4/iterators/PushbackIterator<TE;>;
0 4 1 iterator Ljava/util/Iterator<+TE;>;
Signature: (Ljava/util/Iterator<+TE;>;)V
MethodParameters:
Name Flags
iterator final
public void pushback();
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
getfield org.apache.commons.collections4.iterators.PushbackIterator.items:Ljava/util/Deque;
aload 1
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/PushbackIterator<TE;>;
0 2 1 item TE;
Signature: (TE;)V
MethodParameters:
Name Flags
item final
public boolean hasNext();
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.PushbackIterator.items:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.apache.commons.collections4.iterators.PushbackIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/iterators/PushbackIterator<TE;>;
public E next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.PushbackIterator.items:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifne 1
aload 0
getfield org.apache.commons.collections4.iterators.PushbackIterator.items:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.apache.commons.collections4.iterators.PushbackIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/iterators/PushbackIterator<TE;>;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/PushbackIterator<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TE;>;
SourceFile: "PushbackIterator.java"