public final class com.mongodb.MongoNamespace
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.MongoNamespace
super_class: java.lang.Object
{
public static final java.lang.String COMMAND_COLLECTION_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "$cmd"
private static final java.util.Set<java.lang.Character> PROHIBITED_CHARACTERS_IN_DATABASE_NAME;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/Character;>;
private final java.lang.String databaseName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String collectionName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String fullName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.bson.codecs.pojo.annotations.BsonIgnore()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new java.util.HashSet
dup
bipush 6
anewarray java.lang.Character
dup
iconst_0
iconst_0
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_1
bipush 47
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_2
bipush 92
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_3
bipush 32
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_4
bipush 34
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_5
bipush 46
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
1: putstatic com.mongodb.MongoNamespace.PROHIBITED_CHARACTERS_IN_DATABASE_NAME:Ljava/util/Set;
2: return
LocalVariableTable:
Start End Slot Name Signature
public static void checkDatabaseNameValidity(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: ldc "databaseName"
aload 0
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "databaseName is not empty"
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: java.lang.String
2: iconst_1
StackMap locals: java.lang.String
StackMap stack: java.lang.String int
3: invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
4: iconst_0
istore 1
start local 1 5: goto 11
6: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
ldc "databaseName does not contain '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: getstatic com.mongodb.MongoNamespace.PROHIBITED_CHARACTERS_IN_DATABASE_NAME:Ljava/util/Set;
aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 8
iconst_0
goto 9
StackMap locals:
StackMap stack: java.lang.String
8: iconst_1
9: StackMap locals: java.lang.String int
StackMap stack: java.lang.String int
invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
10: iinc 1 1
StackMap locals:
StackMap stack:
11: iload 1
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 6
end local 1 12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 databaseName Ljava/lang/String;
5 12 1 i I
MethodParameters:
Name Flags
databaseName final
public static void checkCollectionNameValidity(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "collectionName"
aload 0
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: ldc "collectionName is not empty"
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack: java.lang.String
2: iconst_1
StackMap locals: java.lang.String
StackMap stack: java.lang.String int
3: invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 collectionName Ljava/lang/String;
MethodParameters:
Name Flags
collectionName final
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)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: ldc "fullName"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
putfield com.mongodb.MongoNamespace.fullName:Ljava/lang/String;
3: aload 0
aload 1
invokestatic com.mongodb.MongoNamespace.getDatatabaseNameFromFullName:(Ljava/lang/String;)Ljava/lang/String;
putfield com.mongodb.MongoNamespace.databaseName:Ljava/lang/String;
4: aload 0
aload 1
invokestatic com.mongodb.MongoNamespace.getCollectionNameFullName:(Ljava/lang/String;)Ljava/lang/String;
putfield com.mongodb.MongoNamespace.collectionName:Ljava/lang/String;
5: aload 0
getfield com.mongodb.MongoNamespace.databaseName:Ljava/lang/String;
invokestatic com.mongodb.MongoNamespace.checkDatabaseNameValidity:(Ljava/lang/String;)V
6: aload 0
getfield com.mongodb.MongoNamespace.collectionName:Ljava/lang/String;
invokestatic com.mongodb.MongoNamespace.checkCollectionNameValidity:(Ljava/lang/String;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/mongodb/MongoNamespace;
0 8 1 fullName Ljava/lang/String;
MethodParameters:
Name Flags
fullName final
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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 1
invokestatic com.mongodb.MongoNamespace.checkDatabaseNameValidity:(Ljava/lang/String;)V
2: aload 2
invokestatic com.mongodb.MongoNamespace.checkCollectionNameValidity:(Ljava/lang/String;)V
3: aload 0
aload 1
putfield com.mongodb.MongoNamespace.databaseName:Ljava/lang/String;
4: aload 0
aload 2
putfield com.mongodb.MongoNamespace.collectionName:Ljava/lang/String;
5: aload 0
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield com.mongodb.MongoNamespace.fullName:Ljava/lang/String;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/MongoNamespace;
0 7 1 databaseName Ljava/lang/String;
0 7 2 collectionName Ljava/lang/String;
RuntimeVisibleAnnotations:
org.bson.codecs.pojo.annotations.BsonCreator()
RuntimeVisibleParameterAnnotations:
0:
org.bson.codecs.pojo.annotations.BsonProperty(value = "db")
1:
org.bson.codecs.pojo.annotations.BsonProperty(value = "coll")
MethodParameters:
Name Flags
databaseName final
collectionName final
public java.lang.String getDatabaseName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoNamespace.databaseName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoNamespace;
RuntimeVisibleAnnotations:
org.bson.codecs.pojo.annotations.BsonProperty(value = "db")
public java.lang.String getCollectionName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoNamespace.collectionName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoNamespace;
RuntimeVisibleAnnotations:
org.bson.codecs.pojo.annotations.BsonProperty(value = "coll")
public java.lang.String getFullName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoNamespace.fullName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoNamespace;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.mongodb.MongoNamespace
astore 2
start local 2 5: aload 0
getfield com.mongodb.MongoNamespace.collectionName:Ljava/lang/String;
aload 2
getfield com.mongodb.MongoNamespace.collectionName:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals: com.mongodb.MongoNamespace
StackMap stack:
aload 0
getfield com.mongodb.MongoNamespace.databaseName:Ljava/lang/String;
aload 2
getfield com.mongodb.MongoNamespace.databaseName:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/MongoNamespace;
0 10 1 o Ljava/lang/Object;
5 10 2 that Lcom/mongodb/MongoNamespace;
MethodParameters:
Name Flags
o final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoNamespace.fullName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoNamespace;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoNamespace.databaseName:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.MongoNamespace.collectionName:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
iadd
istore 1
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/MongoNamespace;
1 3 1 result I
private static java.lang.String getCollectionNameFullName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpne 3
2: aload 0
areturn
3: StackMap locals: int
StackMap stack:
aload 0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 namespace Ljava/lang/String;
1 4 1 firstDot I
MethodParameters:
Name Flags
namespace final
private static java.lang.String getDatatabaseNameFromFullName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpne 3
2: ldc ""
areturn
3: StackMap locals: int
StackMap stack:
aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 namespace Ljava/lang/String;
1 4 1 firstDot I
MethodParameters:
Name Flags
namespace final
}
SourceFile: "MongoNamespace.java"
RuntimeVisibleAnnotations:
com.mongodb.annotations.Immutable()