public class org.apache.commons.collections4.iterators.SingletonIterator<E> implements org.apache.commons.collections4.ResettableIterator<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.iterators.SingletonIterator
super_class: java.lang.Object
{
private final boolean removeAllowed;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean beforeFirst;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean removed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private E object;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Signature: TE;
public void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial org.apache.commons.collections4.iterators.SingletonIterator.<init>:(Ljava/lang/Object;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/SingletonIterator<TE;>;
0 2 1 object TE;
Signature: (TE;)V
MethodParameters:
Name Flags
object final
public void <init>(E, );
descriptor: (Ljava/lang/Object;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
iconst_1
putfield org.apache.commons.collections4.iterators.SingletonIterator.beforeFirst:Z
2: aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.SingletonIterator.removed:Z
3: aload 0
aload 1
putfield org.apache.commons.collections4.iterators.SingletonIterator.object:Ljava/lang/Object;
4: aload 0
iload 2
putfield org.apache.commons.collections4.iterators.SingletonIterator.removeAllowed:Z
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/collections4/iterators/SingletonIterator<TE;>;
0 6 1 object TE;
0 6 2 removeAllowed Z
Signature: (TE;Z)V
MethodParameters:
Name Flags
object final
removeAllowed 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.SingletonIterator.beforeFirst:Z
ifeq 1
aload 0
getfield org.apache.commons.collections4.iterators.SingletonIterator.removed:Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/SingletonIterator<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
getfield org.apache.commons.collections4.iterators.SingletonIterator.beforeFirst:Z
ifeq 1
aload 0
getfield org.apache.commons.collections4.iterators.SingletonIterator.removed:Z
ifeq 2
1: StackMap locals:
StackMap stack:
new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield org.apache.commons.collections4.iterators.SingletonIterator.beforeFirst:Z
3: aload 0
getfield org.apache.commons.collections4.iterators.SingletonIterator.object:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/commons/collections4/iterators/SingletonIterator<TE;>;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.SingletonIterator.removeAllowed:Z
ifeq 6
1: aload 0
getfield org.apache.commons.collections4.iterators.SingletonIterator.removed:Z
ifne 2
aload 0
getfield org.apache.commons.collections4.iterators.SingletonIterator.beforeFirst:Z
ifeq 3
2: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.commons.collections4.iterators.SingletonIterator.object:Ljava/lang/Object;
4: aload 0
iconst_1
putfield org.apache.commons.collections4.iterators.SingletonIterator.removed:Z
5: goto 7
6: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/collections4/iterators/SingletonIterator<TE;>;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.apache.commons.collections4.iterators.SingletonIterator.beforeFirst:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/SingletonIterator<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/commons/collections4/ResettableIterator<TE;>;
SourceFile: "SingletonIterator.java"