class org.bson.BsonDocumentReader$BsonDocumentMarkableIterator<T> implements java.util.Iterator<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bson.BsonDocumentReader$BsonDocumentMarkableIterator
super_class: java.lang.Object
{
private java.util.Iterator<T> baseIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<TT;>;
private java.util.List<T> markIterator;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<TT;>;
private int curIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean marking;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected void <init>(java.util.Iterator<T>);
descriptor: (Ljava/util/Iterator;)V
flags: (0x0004) ACC_PROTECTED
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.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.markIterator:Ljava/util/List;
2: aload 0
aload 1
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.baseIterator:Ljava/util/Iterator;
3: aload 0
iconst_0
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
4: aload 0
iconst_0
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.marking:Z
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/BsonDocumentReader$BsonDocumentMarkableIterator<TT;>;
0 6 1 baseIterator Ljava/util/Iterator<TT;>;
Signature: (Ljava/util/Iterator<TT;>;)V
MethodParameters:
Name Flags
baseIterator final
protected void mark();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.marking:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonDocumentReader$BsonDocumentMarkableIterator<TT;>;
protected void reset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
1: aload 0
iconst_0
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.marking:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/BsonDocumentReader$BsonDocumentMarkableIterator<TT;>;
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.baseIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.markIterator:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonDocumentReader$BsonDocumentMarkableIterator<TT;>;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.markIterator:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpge 7
1: aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.markIterator:Ljava/util/List;
aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 1
start local 1 2: aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.marking:Z
ifeq 5
3: aload 0
dup
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
iconst_1
iadd
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
4: goto 11
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.markIterator:Ljava/util/List;
iconst_0
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
6: goto 11
end local 1 7: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.baseIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 1
start local 1 8: aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.marking:Z
ifeq 11
9: aload 0
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.markIterator:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: aload 0
dup
getfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
iconst_1
iadd
putfield org.bson.BsonDocumentReader$BsonDocumentMarkableIterator.curIndex:I
11: StackMap locals: java.lang.Object
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/bson/BsonDocumentReader$BsonDocumentMarkableIterator<TT;>;
2 7 1 value TT;
8 12 1 value TT;
Signature: ()TT;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonDocumentReader$BsonDocumentMarkableIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/Iterator<TT;>;
SourceFile: "BsonDocumentReader.java"
NestHost: org.bson.BsonDocumentReader
InnerClasses:
private BsonDocumentMarkableIterator = org.bson.BsonDocumentReader$BsonDocumentMarkableIterator of org.bson.BsonDocumentReader