public class com.mongodb.client.internal.MongoBatchCursorAdapter<T> implements com.mongodb.client.MongoCursor<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.client.internal.MongoBatchCursorAdapter
super_class: java.lang.Object
{
private final com.mongodb.operation.BatchCursor<T> batchCursor;
descriptor: Lcom/mongodb/operation/BatchCursor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/mongodb/operation/BatchCursor<TT;>;
private java.util.List<T> curBatch;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<TT;>;
private int curPos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(com.mongodb.operation.BatchCursor<T>);
descriptor: (Lcom/mongodb/operation/BatchCursor;)V
flags: (0x0001) ACC_PUBLIC
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 com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
0 3 1 batchCursor Lcom/mongodb/operation/BatchCursor<TT;>;
Signature: (Lcom/mongodb/operation/BatchCursor<TT;>;)V
MethodParameters:
Name Flags
batchCursor final
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 "Cursors do not support removal"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
invokeinterface com.mongodb.operation.BatchCursor.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
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.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
ifnonnull 1
aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
invokeinterface com.mongodb.operation.BatchCursor.hasNext:()Z
ifne 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 Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.mongodb.client.internal.MongoBatchCursorAdapter.hasNext:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
ifnonnull 4
3: aload 0
aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
invokeinterface com.mongodb.operation.BatchCursor.next:()Ljava/util/List;
putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.mongodb.client.internal.MongoBatchCursorAdapter.getNextInBatch:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
Signature: ()TT;
public T tryNext();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
ifnonnull 2
1: aload 0
aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
invokeinterface com.mongodb.operation.BatchCursor.tryNext:()Ljava/util/List;
putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
2: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
ifnonnull 3
aconst_null
goto 4
StackMap locals:
StackMap stack:
3: aload 0
invokevirtual com.mongodb.client.internal.MongoBatchCursorAdapter.getNextInBatch:()Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
Signature: ()TT;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public com.mongodb.ServerCursor getServerCursor();
descriptor: ()Lcom/mongodb/ServerCursor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
invokeinterface com.mongodb.operation.BatchCursor.getServerCursor:()Lcom/mongodb/ServerCursor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public com.mongodb.ServerAddress getServerAddress();
descriptor: ()Lcom/mongodb/ServerAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.batchCursor:Lcom/mongodb/operation/BatchCursor;
invokeinterface com.mongodb.operation.BatchCursor.getServerAddress:()Lcom/mongodb/ServerAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
private T getNextInBatch();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 1
start local 1 1: aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
aload 0
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
if_icmpge 4
2: aload 0
dup
getfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
iconst_1
iadd
putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
3: goto 6
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aconst_null
putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curBatch:Ljava/util/List;
5: aload 0
iconst_0
putfield com.mongodb.client.internal.MongoBatchCursorAdapter.curPos:I
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/client/internal/MongoBatchCursorAdapter<TT;>;
1 7 1 nextInBatch TT;
Signature: ()TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lcom/mongodb/client/MongoCursor<TT;>;
SourceFile: "MongoBatchCursorAdapter.java"