public final class org.apache.commons.collections4.iterators.UnmodifiableIterator<E> implements java.util.Iterator<E>, org.apache.commons.collections4.Unmodifiable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.commons.collections4.iterators.UnmodifiableIterator
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;>;
public static <E> java.util.Iterator<E> unmodifiableIterator(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)Ljava/util/Iterator;
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.Unmodifiable
ifeq 5
3: aload 0
astore 1
start local 1 4: aload 1
areturn
end local 1 5: StackMap locals:
StackMap stack:
new org.apache.commons.collections4.iterators.UnmodifiableIterator
dup
aload 0
invokespecial org.apache.commons.collections4.iterators.UnmodifiableIterator.<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 tmpIterator Ljava/util/Iterator<TE;>;
Signature: <E:Ljava/lang/Object;>(Ljava/util/Iterator<+TE;>;)Ljava/util/Iterator<TE;>;
MethodParameters:
Name Flags
iterator final
private void <init>(java.util.Iterator<? extends E>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.commons.collections4.iterators.UnmodifiableIterator.iterator:Ljava/util/Iterator;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/iterators/UnmodifiableIterator<TE;>;
0 3 1 iterator Ljava/util/Iterator<+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
getfield org.apache.commons.collections4.iterators.UnmodifiableIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/UnmodifiableIterator<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.UnmodifiableIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/UnmodifiableIterator<TE;>;
Signature: ()TE;
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 "remove() is not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/UnmodifiableIterator<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TE;>;Lorg/apache/commons/collections4/Unmodifiable;
SourceFile: "UnmodifiableIterator.java"