public class com.mongodb.selector.ServerAddressSelector implements com.mongodb.selector.ServerSelector
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.selector.ServerAddressSelector
super_class: java.lang.Object
{
private final com.mongodb.ServerAddress serverAddress;
descriptor: Lcom/mongodb/ServerAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(com.mongodb.ServerAddress);
descriptor: (Lcom/mongodb/ServerAddress;)V
flags: (0x0001) ACC_PUBLIC
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
ldc "serverAddress"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.ServerAddress
putfield com.mongodb.selector.ServerAddressSelector.serverAddress:Lcom/mongodb/ServerAddress;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/selector/ServerAddressSelector;
0 3 1 serverAddress Lcom/mongodb/ServerAddress;
MethodParameters:
Name Flags
serverAddress final
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.selector.ServerAddressSelector.serverAddress:Lcom/mongodb/ServerAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/selector/ServerAddressSelector;
public java.util.List<com.mongodb.connection.ServerDescription> select(com.mongodb.connection.ClusterDescription);
descriptor: (Lcom/mongodb/connection/ClusterDescription;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.mongodb.selector.ServerAddressSelector.serverAddress:Lcom/mongodb/ServerAddress;
invokevirtual com.mongodb.connection.ClusterDescription.getByServerAddress:(Lcom/mongodb/ServerAddress;)Lcom/mongodb/connection/ServerDescription;
ifnull 2
1: iconst_1
anewarray com.mongodb.connection.ServerDescription
dup
iconst_0
aload 1
aload 0
getfield com.mongodb.selector.ServerAddressSelector.serverAddress:Lcom/mongodb/ServerAddress;
invokevirtual com.mongodb.connection.ClusterDescription.getByServerAddress:(Lcom/mongodb/ServerAddress;)Lcom/mongodb/connection/ServerDescription;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/selector/ServerAddressSelector;
0 3 1 clusterDescription Lcom/mongodb/connection/ClusterDescription;
Signature: (Lcom/mongodb/connection/ClusterDescription;)Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
MethodParameters:
Name Flags
clusterDescription 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 "ServerAddressSelector{serverAddress="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield com.mongodb.selector.ServerAddressSelector.serverAddress:Lcom/mongodb/ServerAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/selector/ServerAddressSelector;
}
SourceFile: "ServerAddressSelector.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()