public final class com.mongodb.client.model.Projections
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.client.model.Projections
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/client/model/Projections;
public static <TExpression> org.bson.conversions.Bson computed(java.lang.String, TExpression);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.model.SimpleExpression
dup
aload 0
aload 1
invokespecial com.mongodb.client.model.SimpleExpression.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldName Ljava/lang/String;
0 1 1 expression TTExpression;
Signature: <TExpression:Ljava/lang/Object;>(Ljava/lang/String;TTExpression;)Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
fieldName final
expression final
public static org.bson.conversions.Bson include(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Lorg/bson/conversions/Bson;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic com.mongodb.client.model.Projections.include:(Ljava/util/List;)Lorg/bson/conversions/Bson;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldNames [Ljava/lang/String;
MethodParameters:
Name Flags
fieldNames final
public static org.bson.conversions.Bson include(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new org.bson.BsonInt32
dup
iconst_1
invokespecial org.bson.BsonInt32.<init>:(I)V
invokestatic com.mongodb.client.model.Projections.combine:(Ljava/util/List;Lorg/bson/BsonValue;)Lorg/bson/conversions/Bson;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldNames Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
fieldNames final
public static org.bson.conversions.Bson exclude(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Lorg/bson/conversions/Bson;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic com.mongodb.client.model.Projections.exclude:(Ljava/util/List;)Lorg/bson/conversions/Bson;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldNames [Ljava/lang/String;
MethodParameters:
Name Flags
fieldNames final
public static org.bson.conversions.Bson exclude(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new org.bson.BsonInt32
dup
iconst_0
invokespecial org.bson.BsonInt32.<init>:(I)V
invokestatic com.mongodb.client.model.Projections.combine:(Ljava/util/List;Lorg/bson/BsonValue;)Lorg/bson/conversions/Bson;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldNames Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
fieldNames final
public static org.bson.conversions.Bson excludeId();
descriptor: ()Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new org.bson.BsonDocument
dup
ldc "_id"
new org.bson.BsonInt32
dup
iconst_0
invokespecial org.bson.BsonInt32.<init>:(I)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.bson.conversions.Bson elemMatch(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.bson.BsonDocument
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".$"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
new org.bson.BsonInt32
dup
iconst_1
invokespecial org.bson.BsonInt32.<init>:(I)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldName Ljava/lang/String;
MethodParameters:
Name Flags
fieldName final
public static org.bson.conversions.Bson elemMatch(java.lang.String, org.bson.conversions.Bson);
descriptor: (Ljava/lang/String;Lorg/bson/conversions/Bson;)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.mongodb.client.model.Projections$ElemMatchFilterProjection
dup
aload 0
aload 1
invokespecial com.mongodb.client.model.Projections$ElemMatchFilterProjection.<init>:(Ljava/lang/String;Lorg/bson/conversions/Bson;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldName Ljava/lang/String;
0 1 1 filter Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
fieldName final
filter final
public static org.bson.conversions.Bson metaTextScore(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=1, args_size=1
start local 0 0: new org.bson.BsonDocument
dup
aload 0
new org.bson.BsonDocument
dup
ldc "$meta"
new org.bson.BsonString
dup
ldc "textScore"
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldName Ljava/lang/String;
MethodParameters:
Name Flags
fieldName final
public static org.bson.conversions.Bson slice(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=2, args_size=2
start local 0 start local 1 0: new org.bson.BsonDocument
dup
aload 0
new org.bson.BsonDocument
dup
ldc "$slice"
new org.bson.BsonInt32
dup
iload 1
invokespecial org.bson.BsonInt32.<init>:(I)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldName Ljava/lang/String;
0 1 1 limit I
MethodParameters:
Name Flags
fieldName final
limit final
public static org.bson.conversions.Bson slice(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=14, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.bson.BsonDocument
dup
aload 0
new org.bson.BsonDocument
dup
ldc "$slice"
new org.bson.BsonArray
dup
iconst_2
anewarray org.bson.BsonInt32
dup
iconst_0
new org.bson.BsonInt32
dup
iload 1
invokespecial org.bson.BsonInt32.<init>:(I)V
aastore
dup
iconst_1
new org.bson.BsonInt32
dup
iload 2
invokespecial org.bson.BsonInt32.<init>:(I)V
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial org.bson.BsonArray.<init>:(Ljava/util/List;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 fieldName Ljava/lang/String;
0 1 1 skip I
0 1 2 limit I
MethodParameters:
Name Flags
fieldName final
skip final
limit final
public static org.bson.conversions.Bson fields(org.bson.conversions.Bson[]);
descriptor: ([Lorg/bson/conversions/Bson;)Lorg/bson/conversions/Bson;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic com.mongodb.client.model.Projections.fields:(Ljava/util/List;)Lorg/bson/conversions/Bson;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 projections [Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
projections final
public static org.bson.conversions.Bson fields(java.util.List<? extends org.bson.conversions.Bson>);
descriptor: (Ljava/util/List;)Lorg/bson/conversions/Bson;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc "projections"
aload 0
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new com.mongodb.client.model.Projections$FieldsProjection
dup
aload 0
invokespecial com.mongodb.client.model.Projections$FieldsProjection.<init>:(Ljava/util/List;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 projections Ljava/util/List<+Lorg/bson/conversions/Bson;>;
Signature: (Ljava/util/List<+Lorg/bson/conversions/Bson;>;)Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
projections final
private static org.bson.conversions.Bson combine(java.util.List<java.lang.String>, org.bson.BsonValue);
descriptor: (Ljava/util/List;Lorg/bson/BsonValue;)Lorg/bson/conversions/Bson;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
astore 2
start local 2 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: java.util.List org.bson.BsonValue org.bson.BsonDocument top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 3: aload 2
aload 3
invokevirtual org.bson.BsonDocument.remove:(Ljava/lang/Object;)Lorg/bson/BsonValue;
pop
4: aload 2
aload 3
aload 1
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 fieldNames Ljava/util/List<Ljava/lang/String;>;
0 7 1 value Lorg/bson/BsonValue;
1 7 2 document Lorg/bson/BsonDocument;
3 5 3 fieldName Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;Lorg/bson/BsonValue;)Lorg/bson/conversions/Bson;
MethodParameters:
Name Flags
fieldNames final
value final
}
SourceFile: "Projections.java"
NestMembers:
com.mongodb.client.model.Projections$ElemMatchFilterProjection com.mongodb.client.model.Projections$FieldsProjection
InnerClasses:
private ElemMatchFilterProjection = com.mongodb.client.model.Projections$ElemMatchFilterProjection of com.mongodb.client.model.Projections
private FieldsProjection = com.mongodb.client.model.Projections$FieldsProjection of com.mongodb.client.model.Projections