final class io.netty.handler.codec.dns.DnsMessageUtil
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.handler.codec.dns.DnsMessageUtil
super_class: java.lang.Object
{
static java.lang.StringBuilder appendQuery(java.lang.StringBuilder, io.netty.handler.codec.dns.DnsQuery);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsQuery;)Ljava/lang/StringBuilder;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendQueryHeader:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsQuery;)V
1: aload 0
aload 1
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendAllRecords:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;)V
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buf Ljava/lang/StringBuilder;
0 3 1 query Lio/netty/handler/codec/dns/DnsQuery;
MethodParameters:
Name Flags
buf
query
static java.lang.StringBuilder appendResponse(java.lang.StringBuilder, io.netty.handler.codec.dns.DnsResponse);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsResponse;)Ljava/lang/StringBuilder;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendResponseHeader:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsResponse;)V
1: aload 0
aload 1
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendAllRecords:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;)V
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buf Ljava/lang/StringBuilder;
0 3 1 response Lio/netty/handler/codec/dns/DnsResponse;
MethodParameters:
Name Flags
buf
response
static java.lang.StringBuilder appendRecordClass(java.lang.StringBuilder, int);
descriptor: (Ljava/lang/StringBuilder;I)Ljava/lang/StringBuilder;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ldc 65535
iand
dup
istore 1
lookupswitch { // 6
1: 1
2: 3
3: 5
4: 7
254: 9
255: 11
default: 13
}
1: StackMap locals:
StackMap stack:
ldc "IN"
astore 2
start local 2 2: goto 14
end local 2 3: StackMap locals:
StackMap stack:
ldc "CSNET"
astore 2
start local 2 4: goto 14
end local 2 5: StackMap locals:
StackMap stack:
ldc "CHAOS"
astore 2
start local 2 6: goto 14
end local 2 7: StackMap locals:
StackMap stack:
ldc "HESIOD"
astore 2
start local 2 8: goto 14
end local 2 9: StackMap locals:
StackMap stack:
ldc "NONE"
astore 2
start local 2 10: goto 14
end local 2 11: StackMap locals:
StackMap stack:
ldc "ANY"
astore 2
start local 2 12: goto 14
end local 2 13: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 14: StackMap locals: java.lang.String
StackMap stack:
aload 2
ifnull 17
15: aload 0
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: goto 18
17: StackMap locals:
StackMap stack:
aload 0
ldc "UNKNOWN("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
18: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 buf Ljava/lang/StringBuilder;
0 19 1 dnsClass I
2 3 2 name Ljava/lang/String;
4 5 2 name Ljava/lang/String;
6 7 2 name Ljava/lang/String;
8 9 2 name Ljava/lang/String;
10 11 2 name Ljava/lang/String;
12 13 2 name Ljava/lang/String;
14 19 2 name Ljava/lang/String;
MethodParameters:
Name Flags
buf
dnsClass
private static void appendQueryHeader(java.lang.StringBuilder, io.netty.handler.codec.dns.DnsQuery);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsQuery;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: bipush 40
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: aload 0
aload 1
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendAddresses:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;)Ljava/lang/StringBuilder;
3: aload 1
invokeinterface io.netty.handler.codec.dns.DnsQuery.id:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
4: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: aload 1
invokeinterface io.netty.handler.codec.dns.DnsQuery.opCode:()Lio/netty/handler/codec/dns/DnsOpCode;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
6: aload 1
invokeinterface io.netty.handler.codec.dns.DnsQuery.isRecursionDesired:()Z
ifeq 8
7: aload 0
ldc ", RD"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.handler.codec.dns.DnsQuery.z:()I
ifeq 11
9: aload 0
ldc ", Z: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: aload 1
invokeinterface io.netty.handler.codec.dns.DnsQuery.z:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
11: StackMap locals:
StackMap stack:
aload 0
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 buf Ljava/lang/StringBuilder;
0 13 1 msg Lio/netty/handler/codec/dns/DnsQuery;
MethodParameters:
Name Flags
buf
msg
private static void appendResponseHeader(java.lang.StringBuilder, io.netty.handler.codec.dns.DnsResponse);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsResponse;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: bipush 40
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: aload 0
aload 1
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendAddresses:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;)Ljava/lang/StringBuilder;
3: aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.id:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
4: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.opCode:()Lio/netty/handler/codec/dns/DnsOpCode;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
6: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.code:()Lio/netty/handler/codec/dns/DnsResponseCode;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
8: bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: iconst_1
istore 2
start local 2 10: aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.isRecursionDesired:()Z
ifeq 13
11: iconst_0
istore 2
12: aload 0
ldc " RD"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: StackMap locals: int
StackMap stack:
aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.isAuthoritativeAnswer:()Z
ifeq 16
14: iconst_0
istore 2
15: aload 0
ldc " AA"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.isTruncated:()Z
ifeq 19
17: iconst_0
istore 2
18: aload 0
ldc " TC"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
19: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.isRecursionAvailable:()Z
ifeq 22
20: iconst_0
istore 2
21: aload 0
ldc " RA"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
22: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.z:()I
ifeq 27
23: iload 2
ifne 25
24: aload 0
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
25: StackMap locals:
StackMap stack:
aload 0
ldc " Z: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: aload 1
invokeinterface io.netty.handler.codec.dns.DnsResponse.z:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
27: StackMap locals:
StackMap stack:
iload 2
ifeq 30
28: aload 0
aload 0
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
bipush 41
invokevirtual java.lang.StringBuilder.setCharAt:(IC)V
29: goto 31
30: StackMap locals:
StackMap stack:
aload 0
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
31: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 buf Ljava/lang/StringBuilder;
0 32 1 msg Lio/netty/handler/codec/dns/DnsResponse;
10 32 2 hasComma Z
MethodParameters:
Name Flags
buf
msg
private static java.lang.StringBuilder appendAddresses(java.lang.StringBuilder, io.netty.handler.codec.dns.DnsMessage);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;)Ljava/lang/StringBuilder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof io.netty.channel.AddressedEnvelope
ifne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast io.netty.channel.AddressedEnvelope
astore 2
start local 2 3: aload 2
invokeinterface io.netty.channel.AddressedEnvelope.sender:()Ljava/net/SocketAddress;
astore 3
start local 3 4: aload 3
ifnull 8
5: aload 0
ldc "from: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
7: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: StackMap locals: io.netty.channel.AddressedEnvelope java.net.SocketAddress
StackMap stack:
aload 2
invokeinterface io.netty.channel.AddressedEnvelope.recipient:()Ljava/net/SocketAddress;
astore 3
9: aload 3
ifnull 13
10: aload 0
ldc "to: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
12: ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 buf Ljava/lang/StringBuilder;
0 14 1 msg Lio/netty/handler/codec/dns/DnsMessage;
3 14 2 envelope Lio/netty/channel/AddressedEnvelope<*Ljava/net/SocketAddress;>;
4 14 3 addr Ljava/net/SocketAddress;
MethodParameters:
Name Flags
buf
msg
private static void appendAllRecords(java.lang.StringBuilder, io.netty.handler.codec.dns.DnsMessage);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic io.netty.handler.codec.dns.DnsSection.QUESTION:Lio/netty/handler/codec/dns/DnsSection;
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendRecords:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;Lio/netty/handler/codec/dns/DnsSection;)V
1: aload 0
aload 1
getstatic io.netty.handler.codec.dns.DnsSection.ANSWER:Lio/netty/handler/codec/dns/DnsSection;
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendRecords:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;Lio/netty/handler/codec/dns/DnsSection;)V
2: aload 0
aload 1
getstatic io.netty.handler.codec.dns.DnsSection.AUTHORITY:Lio/netty/handler/codec/dns/DnsSection;
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendRecords:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;Lio/netty/handler/codec/dns/DnsSection;)V
3: aload 0
aload 1
getstatic io.netty.handler.codec.dns.DnsSection.ADDITIONAL:Lio/netty/handler/codec/dns/DnsSection;
invokestatic io.netty.handler.codec.dns.DnsMessageUtil.appendRecords:(Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;Lio/netty/handler/codec/dns/DnsSection;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 buf Ljava/lang/StringBuilder;
0 5 1 msg Lio/netty/handler/codec/dns/DnsMessage;
MethodParameters:
Name Flags
buf
msg
private static void appendRecords(java.lang.StringBuilder, io.netty.handler.codec.dns.DnsMessage, io.netty.handler.codec.dns.DnsSection);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/handler/codec/dns/DnsMessage;Lio/netty/handler/codec/dns/DnsSection;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokeinterface io.netty.handler.codec.dns.DnsMessage.count:(Lio/netty/handler/codec/dns/DnsSection;)I
istore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 0
getstatic io.netty.util.internal.StringUtil.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: bipush 9
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
5: aload 1
aload 2
iload 4
invokeinterface io.netty.handler.codec.dns.DnsMessage.recordAt:(Lio/netty/handler/codec/dns/DnsSection;I)Lio/netty/handler/codec/dns/DnsRecord;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 3
if_icmplt 3
end local 4 8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 buf Ljava/lang/StringBuilder;
0 9 1 message Lio/netty/handler/codec/dns/DnsMessage;
0 9 2 section Lio/netty/handler/codec/dns/DnsSection;
1 9 3 count I
2 8 4 i I
MethodParameters:
Name Flags
buf
message
section
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/dns/DnsMessageUtil;
}
SourceFile: "DnsMessageUtil.java"