public class com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV implements java.lang.Comparable<com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV
super_class: java.lang.Object
{
private static final java.util.regex.Pattern PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int priority;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int weight;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int port;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String serverName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "^([0-9]+) ([0-9]+) ([0-9]+) (.+)$"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.PATTERN:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
public static com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV parseFromDNSRecord(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: getstatic com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 1: aload 1
invokevirtual java.util.regex.Matcher.matches:()Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "record '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' cannot be matched as a valid DNS SRV Record"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.util.regex.Matcher
StackMap stack:
aload 1
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 2
start local 2 4: aload 1
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 3
start local 3 5: aload 1
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 4
start local 4 6: aload 1
iconst_4
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 5
start local 5 7: aload 5
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 9
8: aload 5
iconst_0
aload 5
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
9: StackMap locals: java.lang.String java.util.regex.Matcher int int int java.lang.String
StackMap stack:
new com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV
dup
iload 2
iload 3
iload 4
aload 5
invokespecial com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.<init>:(IIILjava/lang/String;)V
10: areturn
end local 5 end local 4 end local 3 end local 2 11: StackMap locals: java.lang.String java.util.regex.Matcher
StackMap stack: java.lang.IllegalArgumentException
astore 2
start local 2 12: aload 2
athrow
end local 2 13: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 14: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Failed to parse DNS SRV record '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 record Ljava/lang/String;
1 15 1 m Ljava/util/regex/Matcher;
4 11 2 priority I
5 11 3 weight I
6 11 4 port I
7 11 5 serverName Ljava/lang/String;
12 13 2 err Ljava/lang/IllegalArgumentException;
14 15 2 err Ljava/lang/Exception;
Exception table:
from to target type
3 10 11 Class java.lang.IllegalArgumentException
3 10 13 Class java.lang.Exception
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
record
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "DNS.SRV[pri=%d w=%d port=%d h='%s']"
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.priority:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.weight:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.port:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
public void <init>(int, int, int, java.lang.String);
descriptor: (IIILjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iload 1
ifge 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "priority must be >= 0, but was: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV int int int java.lang.String
StackMap stack:
aload 0
iload 1
putfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.priority:I
4: iload 2
ifge 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "weight must be >= 0, but was: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.weight:I
7: iload 3
iflt 8
iload 3
ldc 65535
if_icmple 9
8: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "port must be between 0 and 65535, but was: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
iload 3
putfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.port:I
10: aload 4
ifnull 11
aload 4
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 12
11: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "hostname is not supposed to be null or empty in a SRV Record"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
13: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
0 14 1 priority I
0 14 2 weight I
0 14 3 port I
0 14 4 serverName Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
priority
weight
port
serverName
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
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 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV
astore 2
start local 2 5: aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.port:I
aload 2
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.port:I
if_icmpne 6
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.weight:I
aload 2
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.weight:I
if_icmpne 6
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.priority:I
aload 2
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.priority:I
if_icmpne 6
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
aload 2
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
iconst_1
ireturn
StackMap locals: com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
0 7 1 other Ljava/lang/Object;
5 7 2 r Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
MethodParameters:
Name Flags
other
public int compareTo(com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV);
descriptor: (Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.priority:I
aload 1
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.priority:I
invokestatic java.lang.Integer.compare:(II)I
istore 2
start local 2 3: iload 2
ifeq 5
4: iload 2
ireturn
5: StackMap locals: int
StackMap stack:
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.weight:I
aload 1
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.weight:I
invokestatic java.lang.Integer.compare:(II)I
istore 2
6: iload 2
ifeq 8
7: iload 2
ireturn
8: StackMap locals:
StackMap stack:
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.port:I
aload 1
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.port:I
invokestatic java.lang.Integer.compare:(II)I
istore 2
9: iload 2
ifeq 11
10: iload 2
ireturn
11: StackMap locals:
StackMap stack:
aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
aload 1
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
0 12 1 o Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
3 12 2 p I
MethodParameters:
Name Flags
o
public int getPriority();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.priority:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
public int getWeight();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.weight:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.port:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
public java.lang.String getServerName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.serverName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV
invokevirtual com.microsoft.sqlserver.jdbc.dns.DNSRecordSRV.compareTo:(Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lcom/microsoft/sqlserver/jdbc/dns/DNSRecordSRV;>;
SourceFile: "DNSRecordSRV.java"