public class com.mongodb.client.model.ReplaceOptions
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.client.model.ReplaceOptions
super_class: java.lang.Object
{
private boolean upsert;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.Boolean bypassDocumentValidation;
descriptor: Ljava/lang/Boolean;
flags: (0x0002) ACC_PRIVATE
private com.mongodb.client.model.Collation collation;
descriptor: Lcom/mongodb/client/model/Collation;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/ReplaceOptions;
public static com.mongodb.client.model.ReplaceOptions createReplaceOptions(com.mongodb.client.model.UpdateOptions);
descriptor: (Lcom/mongodb/client/model/UpdateOptions;)Lcom/mongodb/client/model/ReplaceOptions;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: ldc "updateOptions"
aload 0
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual com.mongodb.client.model.UpdateOptions.getArrayFilters:()Ljava/util/List;
astore 1
start local 1 2: ldc "ArrayFilters should be empty."
aload 1
ifnull 3
aload 1
invokeinterface java.util.List.isEmpty:()Z
ifne 3
iconst_0
goto 4
StackMap locals: com.mongodb.client.model.UpdateOptions java.util.List
StackMap stack: java.lang.String
3: iconst_1
StackMap locals: com.mongodb.client.model.UpdateOptions java.util.List
StackMap stack: java.lang.String int
4: invokestatic com.mongodb.assertions.Assertions.isTrue:(Ljava/lang/String;Z)V
5: new com.mongodb.client.model.ReplaceOptions
dup
invokespecial com.mongodb.client.model.ReplaceOptions.<init>:()V
6: aload 0
invokevirtual com.mongodb.client.model.UpdateOptions.getBypassDocumentValidation:()Ljava/lang/Boolean;
invokevirtual com.mongodb.client.model.ReplaceOptions.bypassDocumentValidation:(Ljava/lang/Boolean;)Lcom/mongodb/client/model/ReplaceOptions;
7: aload 0
invokevirtual com.mongodb.client.model.UpdateOptions.getCollation:()Lcom/mongodb/client/model/Collation;
invokevirtual com.mongodb.client.model.ReplaceOptions.collation:(Lcom/mongodb/client/model/Collation;)Lcom/mongodb/client/model/ReplaceOptions;
8: aload 0
invokevirtual com.mongodb.client.model.UpdateOptions.isUpsert:()Z
invokevirtual com.mongodb.client.model.ReplaceOptions.upsert:(Z)Lcom/mongodb/client/model/ReplaceOptions;
9: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 updateOptions Lcom/mongodb/client/model/UpdateOptions;
2 10 1 arrayFilters Ljava/util/List<+Lorg/bson/conversions/Bson;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
updateOptions final
public boolean isUpsert();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.model.ReplaceOptions.upsert:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/ReplaceOptions;
public com.mongodb.client.model.ReplaceOptions upsert(boolean);
descriptor: (Z)Lcom/mongodb/client/model/ReplaceOptions;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield com.mongodb.client.model.ReplaceOptions.upsert:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/model/ReplaceOptions;
0 2 1 upsert Z
MethodParameters:
Name Flags
upsert final
public java.lang.Boolean getBypassDocumentValidation();
descriptor: ()Ljava/lang/Boolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.model.ReplaceOptions.bypassDocumentValidation:Ljava/lang/Boolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/ReplaceOptions;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public com.mongodb.client.model.ReplaceOptions bypassDocumentValidation(java.lang.Boolean);
descriptor: (Ljava/lang/Boolean;)Lcom/mongodb/client/model/ReplaceOptions;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.mongodb.client.model.ReplaceOptions.bypassDocumentValidation:Ljava/lang/Boolean;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/model/ReplaceOptions;
0 2 1 bypassDocumentValidation Ljava/lang/Boolean;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
bypassDocumentValidation final
public com.mongodb.client.model.Collation getCollation();
descriptor: ()Lcom/mongodb/client/model/Collation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.client.model.ReplaceOptions.collation:Lcom/mongodb/client/model/Collation;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/client/model/ReplaceOptions;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public com.mongodb.client.model.ReplaceOptions collation(com.mongodb.client.model.Collation);
descriptor: (Lcom/mongodb/client/model/Collation;)Lcom/mongodb/client/model/ReplaceOptions;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.mongodb.client.model.ReplaceOptions.collation:Lcom/mongodb/client/model/Collation;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/model/ReplaceOptions;
0 2 1 collation Lcom/mongodb/client/model/Collation;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
collation final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ReplaceOptions{upsert="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield com.mongodb.client.model.ReplaceOptions.upsert:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
2: ldc ", bypassDocumentValidation="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.client.model.ReplaceOptions.bypassDocumentValidation:Ljava/lang/Boolean;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: ldc ", collation="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.client.model.ReplaceOptions.collation:Lcom/mongodb/client/model/Collation;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
4: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/client/model/ReplaceOptions;
}
SourceFile: "ReplaceOptions.java"