public final class io.netty.util.NetUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.util.NetUtil
super_class: java.lang.Object
{
public static final java.net.Inet4Address LOCALHOST4;
descriptor: Ljava/net/Inet4Address;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.net.Inet6Address LOCALHOST6;
descriptor: Ljava/net/Inet6Address;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.net.InetAddress LOCALHOST;
descriptor: Ljava/net/InetAddress;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.net.NetworkInterface LOOPBACK_IF;
descriptor: Ljava/net/NetworkInterface;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int SOMAXCONN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final int IPV6_WORD_COUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int IPV6_MAX_CHAR_COUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 39
private static final int IPV6_BYTE_COUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private static final int IPV6_MAX_CHAR_BETWEEN_SEPARATOR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int IPV6_MIN_SEPARATORS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int IPV6_MAX_SEPARATORS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int IPV4_MAX_CHAR_BETWEEN_SEPARATOR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int IPV4_SEPARATORS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final boolean IPV4_PREFERRED;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean IPV6_ADDRESSES_PREFERRED;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=11, args_size=0
0: ldc "java.net.preferIPv4Stack"
iconst_0
invokestatic io.netty.util.internal.SystemPropertyUtil.getBoolean:(Ljava/lang/String;Z)Z
putstatic io.netty.util.NetUtil.IPV4_PREFERRED:Z
1: ldc "java.net.preferIPv6Addresses"
iconst_0
invokestatic io.netty.util.internal.SystemPropertyUtil.getBoolean:(Ljava/lang/String;Z)Z
2: putstatic io.netty.util.NetUtil.IPV6_ADDRESSES_PREFERRED:Z
3: ldc Lio/netty/util/NetUtil;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
4: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Djava.net.preferIPv4Stack: {}"
getstatic io.netty.util.NetUtil.IPV4_PREFERRED:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
5: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Djava.net.preferIPv6Addresses: {}"
getstatic io.netty.util.NetUtil.IPV6_ADDRESSES_PREFERRED:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
6: iconst_4
newarray 8
dup
iconst_0
bipush 127
bastore
dup
iconst_3
iconst_1
bastore
astore 0
start local 0 7: bipush 16
newarray 8
dup
bipush 15
iconst_1
bastore
astore 1
start local 1 8: aconst_null
astore 2
start local 2 9: ldc "localhost"
aload 0
invokestatic java.net.InetAddress.getByAddress:(Ljava/lang/String;[B)Ljava/net/InetAddress;
checkcast java.net.Inet4Address
astore 2
10: goto 13
StackMap locals: byte[] byte[] java.net.Inet4Address
StackMap stack: java.lang.Exception
11: astore 3
start local 3 12: aload 3
invokestatic io.netty.util.internal.PlatformDependent.throwException:(Ljava/lang/Throwable;)V
end local 3 13: StackMap locals:
StackMap stack:
aload 2
putstatic io.netty.util.NetUtil.LOCALHOST4:Ljava/net/Inet4Address;
14: aconst_null
astore 3
start local 3 15: ldc "localhost"
aload 1
invokestatic java.net.InetAddress.getByAddress:(Ljava/lang/String;[B)Ljava/net/InetAddress;
checkcast java.net.Inet6Address
astore 3
16: goto 19
StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address
StackMap stack: java.lang.Exception
17: astore 4
start local 4 18: aload 4
invokestatic io.netty.util.internal.PlatformDependent.throwException:(Ljava/lang/Throwable;)V
end local 4 19: StackMap locals:
StackMap stack:
aload 3
putstatic io.netty.util.NetUtil.LOCALHOST6:Ljava/net/Inet6Address;
20: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 21: invokestatic java.net.NetworkInterface.getNetworkInterfaces:()Ljava/util/Enumeration;
astore 5
start local 5 22: aload 5
ifnull 31
23: goto 27
24: StackMap locals: java.util.List java.util.Enumeration
StackMap stack:
aload 5
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.NetworkInterface
astore 6
start local 6 25: aload 6
invokestatic io.netty.util.internal.SocketUtils.addressesFromNetworkInterface:(Ljava/net/NetworkInterface;)Ljava/util/Enumeration;
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifeq 27
26: aload 4
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 27: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 24
end local 5 28: goto 31
StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address java.util.List
StackMap stack: java.net.SocketException
29: astore 5
start local 5 30: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to retrieve the list of available network interfaces"
aload 5
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 5 31: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 32: aconst_null
astore 6
start local 6 33: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 43
StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address java.util.List java.net.NetworkInterface java.net.InetAddress top java.util.Iterator
StackMap stack:
34: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.NetworkInterface
astore 7
start local 7 35: aload 7
invokestatic io.netty.util.internal.SocketUtils.addressesFromNetworkInterface:(Ljava/net/NetworkInterface;)Ljava/util/Enumeration;
astore 9
start local 9 36: goto 42
37: StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address java.util.List java.net.NetworkInterface java.net.InetAddress java.net.NetworkInterface java.util.Iterator java.util.Enumeration
StackMap stack:
aload 9
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 10
start local 10 38: aload 10
invokevirtual java.net.InetAddress.isLoopbackAddress:()Z
ifeq 42
39: aload 7
astore 5
40: aload 10
astore 6
41: goto 44
end local 10 42: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 37
end local 9 end local 7 43: StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address java.util.List java.net.NetworkInterface java.net.InetAddress top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 34
44: StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address java.util.List java.net.NetworkInterface java.net.InetAddress
StackMap stack:
aload 5
ifnonnull 59
45: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 53
StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address java.util.List java.net.NetworkInterface java.net.InetAddress top java.util.Iterator
StackMap stack:
46: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.NetworkInterface
astore 7
start local 7 47: aload 7
invokevirtual java.net.NetworkInterface.isLoopback:()Z
ifeq 53
48: aload 7
invokestatic io.netty.util.internal.SocketUtils.addressesFromNetworkInterface:(Ljava/net/NetworkInterface;)Ljava/util/Enumeration;
astore 9
start local 9 49: aload 9
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifeq 53
50: aload 7
astore 5
51: aload 9
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 6
52: goto 54
end local 9 end local 7 53: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 46
54: StackMap locals: byte[] byte[] java.net.Inet4Address java.net.Inet6Address java.util.List java.net.NetworkInterface java.net.InetAddress
StackMap stack:
aload 5
ifnonnull 59
55: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to find the loopback interface"
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;)V
56: goto 59
StackMap locals:
StackMap stack: java.net.SocketException
57: astore 7
start local 7 58: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to find the loopback interface"
aload 7
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 7 59: StackMap locals:
StackMap stack:
aload 5
ifnull 65
60: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
61: ldc "Loopback interface: {} ({}, {})"
iconst_3
anewarray java.lang.Object
dup
iconst_0
62: aload 5
invokevirtual java.net.NetworkInterface.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 5
invokevirtual java.net.NetworkInterface.getDisplayName:()Ljava/lang/String;
aastore
dup
iconst_2
aload 6
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
aastore
63: invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
64: goto 82
65: StackMap locals:
StackMap stack:
aload 6
ifnonnull 82
66: getstatic io.netty.util.NetUtil.LOCALHOST6:Ljava/net/Inet6Address;
invokestatic java.net.NetworkInterface.getByInetAddress:(Ljava/net/InetAddress;)Ljava/net/NetworkInterface;
ifnull 79
67: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Using hard-coded IPv6 localhost address: {}"
aload 3
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
68: aload 3
astore 6
69: goto 79
StackMap locals:
StackMap stack: java.lang.Exception
70: pop
71: aload 6
ifnonnull 82
72: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Using hard-coded IPv4 localhost address: {}"
aload 2
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
73: aload 2
astore 6
goto 82
74: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
75: aload 6
ifnonnull 78
76: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Using hard-coded IPv4 localhost address: {}"
aload 2
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
77: aload 2
astore 6
78: StackMap locals: java.lang.Throwable
StackMap stack:
aload 7
athrow
79: StackMap locals:
StackMap stack:
aload 6
ifnonnull 82
80: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Using hard-coded IPv4 localhost address: {}"
aload 2
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
81: aload 2
astore 6
82: StackMap locals:
StackMap stack:
aload 5
putstatic io.netty.util.NetUtil.LOOPBACK_IF:Ljava/net/NetworkInterface;
83: aload 6
putstatic io.netty.util.NetUtil.LOCALHOST:Ljava/net/InetAddress;
84: new io.netty.util.NetUtil$1
dup
invokespecial io.netty.util.NetUtil$1.<init>:()V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
putstatic io.netty.util.NetUtil.SOMAXCONN:I
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 85: return
LocalVariableTable:
Start End Slot Name Signature
7 85 0 LOCALHOST4_BYTES [B
8 85 1 LOCALHOST6_BYTES [B
9 85 2 localhost4 Ljava/net/Inet4Address;
12 13 3 e Ljava/lang/Exception;
15 85 3 localhost6 Ljava/net/Inet6Address;
18 19 4 e Ljava/lang/Exception;
21 85 4 ifaces Ljava/util/List<Ljava/net/NetworkInterface;>;
22 28 5 interfaces Ljava/util/Enumeration<Ljava/net/NetworkInterface;>;
25 27 6 iface Ljava/net/NetworkInterface;
30 31 5 e Ljava/net/SocketException;
32 85 5 loopbackIface Ljava/net/NetworkInterface;
33 85 6 loopbackAddr Ljava/net/InetAddress;
35 43 7 iface Ljava/net/NetworkInterface;
36 43 9 i Ljava/util/Enumeration<Ljava/net/InetAddress;>;
38 42 10 addr Ljava/net/InetAddress;
47 53 7 iface Ljava/net/NetworkInterface;
49 53 9 i Ljava/util/Enumeration<Ljava/net/InetAddress;>;
58 59 7 e Ljava/net/SocketException;
Exception table:
from to target type
9 10 11 Class java.lang.Exception
15 16 17 Class java.lang.Exception
21 28 29 Class java.net.SocketException
45 56 57 Class java.net.SocketException
66 69 70 Class java.lang.Exception
66 71 74 any
private static java.lang.Integer sysctlGetInt(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Integer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=10, args_size=1
start local 0 0: new java.lang.ProcessBuilder
dup
iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "sysctl"
aastore
dup
iconst_1
aload 0
aastore
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
astore 2
start local 2 2: new java.io.InputStreamReader
dup
aload 2
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
astore 3
start local 3 3: new java.io.BufferedReader
dup
aload 3
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 4: aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 5
start local 5 5: aload 5
aload 0
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
6: aload 5
invokevirtual java.lang.String.length:()I
iconst_1
isub
istore 6
start local 6 7: goto 15
8: StackMap locals: java.lang.String java.lang.Process java.io.InputStream java.io.InputStreamReader java.io.BufferedReader java.lang.String int
StackMap stack:
aload 5
iload 6
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isDigit:(C)Z
ifne 14
9: aload 5
iload 6
iconst_1
iadd
aload 5
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;)Ljava/lang/Integer;
astore 8
10: aload 4
invokevirtual java.io.BufferedReader.close:()V
11: aload 1
ifnull 13
12: aload 1
invokevirtual java.lang.Process.destroy:()V
13: StackMap locals: java.lang.String java.lang.Process java.io.InputStream java.io.InputStreamReader java.io.BufferedReader java.lang.String int top java.lang.Integer
StackMap stack:
aload 8
areturn
14: StackMap locals: java.lang.String java.lang.Process java.io.InputStream java.io.InputStreamReader java.io.BufferedReader java.lang.String int
StackMap stack:
iinc 6 -1
StackMap locals:
StackMap stack:
15: iload 6
aload 0
invokevirtual java.lang.String.length:()I
if_icmpgt 8
end local 6 16: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.io.BufferedReader.close:()V
17: aload 1
ifnull 19
18: aload 1
invokevirtual java.lang.Process.destroy:()V
19: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 5 20: StackMap locals: java.lang.String java.lang.Process java.io.InputStream java.io.InputStreamReader java.io.BufferedReader
StackMap stack: java.lang.Throwable
astore 7
21: aload 4
invokevirtual java.io.BufferedReader.close:()V
22: aload 7
athrow
end local 4 end local 3 end local 2 23: StackMap locals: java.lang.String java.lang.Process
StackMap stack: java.lang.Throwable
astore 9
24: aload 1
ifnull 26
25: aload 1
invokevirtual java.lang.Process.destroy:()V
26: StackMap locals: java.lang.String java.lang.Process top top top top top top top java.lang.Throwable
StackMap stack:
aload 9
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 sysctlKey Ljava/lang/String;
1 27 1 process Ljava/lang/Process;
2 23 2 is Ljava/io/InputStream;
3 23 3 isr Ljava/io/InputStreamReader;
4 23 4 br Ljava/io/BufferedReader;
5 20 5 line Ljava/lang/String;
7 16 6 i I
Exception table:
from to target type
4 10 20 any
14 16 20 any
1 11 23 any
14 17 23 any
20 23 23 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sysctlKey
public static boolean isIpV4StackPreferred();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.util.NetUtil.IPV4_PREFERRED:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static boolean isIpV6AddressesPreferred();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.util.NetUtil.IPV6_ADDRESSES_PREFERRED:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static byte[] createByteArrayFromIpAddressString(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
invokestatic io.netty.util.NetUtil.validIpV4ToBytes:(Ljava/lang/String;)[B
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic io.netty.util.NetUtil.isValidIpV6Address:(Ljava/lang/String;)Z
ifeq 9
3: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 91
if_icmpne 5
4: aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
5: StackMap locals:
StackMap stack:
aload 0
bipush 37
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 6: iload 1
iflt 8
7: aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
8: StackMap locals: int
StackMap stack:
aload 0
iconst_1
invokestatic io.netty.util.NetUtil.getIPv6ByName:(Ljava/lang/CharSequence;Z)[B
areturn
end local 1 9: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 ipAddressString Ljava/lang/String;
6 9 1 percentPos I
MethodParameters:
Name Flags
ipAddressString
private static int decimalDigit(java.lang.String, int);
descriptor: (Ljava/lang/String;I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
bipush 48
isub
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
0 1 1 pos I
MethodParameters:
Name Flags
str
pos
private static byte ipv4WordToByte(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokestatic io.netty.util.NetUtil.decimalDigit:(Ljava/lang/String;I)I
istore 3
start local 3 1: iinc 1 1
2: iload 1
iload 2
if_icmpne 4
3: iload 3
i2b
ireturn
4: StackMap locals: int
StackMap stack:
iload 3
bipush 10
imul
aload 0
iload 1
invokestatic io.netty.util.NetUtil.decimalDigit:(Ljava/lang/String;I)I
iadd
istore 3
5: iinc 1 1
6: iload 1
iload 2
if_icmpne 8
7: iload 3
i2b
ireturn
8: StackMap locals:
StackMap stack:
iload 3
bipush 10
imul
aload 0
iload 1
invokestatic io.netty.util.NetUtil.decimalDigit:(Ljava/lang/String;I)I
iadd
i2b
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 ip Ljava/lang/String;
0 9 1 from I
0 9 2 toExclusive I
1 9 3 ret I
MethodParameters:
Name Flags
ip
from
toExclusive
static byte[] validIpV4ToBytes(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=2, args_size=1
start local 0 0: iconst_4
newarray 8
dup
iconst_0
1: aload 0
iconst_0
aload 0
bipush 46
iconst_1
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 1
start local 1 2: invokestatic io.netty.util.NetUtil.ipv4WordToByte:(Ljava/lang/String;II)B
bastore
dup
iconst_1
3: aload 0
iload 1
iconst_1
iadd
aload 0
bipush 46
iload 1
iconst_2
iadd
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 1
invokestatic io.netty.util.NetUtil.ipv4WordToByte:(Ljava/lang/String;II)B
bastore
dup
iconst_2
4: aload 0
iload 1
iconst_1
iadd
aload 0
bipush 46
iload 1
iconst_2
iadd
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 1
invokestatic io.netty.util.NetUtil.ipv4WordToByte:(Ljava/lang/String;II)B
bastore
dup
iconst_3
5: aload 0
iload 1
iconst_1
iadd
aload 0
invokevirtual java.lang.String.length:()I
invokestatic io.netty.util.NetUtil.ipv4WordToByte:(Ljava/lang/String;II)B
bastore
6: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 ip Ljava/lang/String;
2 7 1 i I
MethodParameters:
Name Flags
ip
public static java.lang.String intToIpAddress(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
bipush 15
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 1: aload 1
iload 0
bipush 24
ishr
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
2: aload 1
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: aload 1
iload 0
bipush 16
ishr
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
4: aload 1
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: aload 1
iload 0
bipush 8
ishr
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
6: aload 1
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: aload 1
iload 0
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
8: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 i I
1 9 1 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
i
public static java.lang.String bytesToIpAddress(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
arraylength
invokestatic io.netty.util.NetUtil.bytesToIpAddress:([BII)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 bytes [B
MethodParameters:
Name Flags
bytes
public static java.lang.String bytesToIpAddress(byte[], int, int);
descriptor: ([BII)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
lookupswitch { // 2
4: 1
16: 10
default: 11
}
1: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
bipush 15
invokespecial java.lang.StringBuilder.<init>:(I)V
2: aload 0
iload 1
baload
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
3: bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
4: aload 0
iload 1
iconst_1
iadd
baload
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
5: bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
6: aload 0
iload 1
iconst_2
iadd
baload
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
7: bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
8: aload 0
iload 1
iconst_3
iadd
baload
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: areturn
10: StackMap locals:
StackMap stack:
aload 0
iload 1
iconst_0
invokestatic io.netty.util.NetUtil.toAddressString:([BIZ)Ljava/lang/String;
areturn
11: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "length: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 4 or 16)"
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
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 bytes [B
0 12 1 offset I
0 12 2 length I
MethodParameters:
Name Flags
bytes
offset
length
public static boolean isValidIpV6Address(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.netty.util.NetUtil.isValidIpV6Address:(Ljava/lang/CharSequence;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ip Ljava/lang/String;
MethodParameters:
Name Flags
ip
public static boolean isValidIpV6Address(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=11, args_size=1
start local 0 0: aload 0
invokeinterface java.lang.CharSequence.length:()I
istore 1
start local 1 1: iload 1
iconst_2
if_icmpge 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
iconst_0
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 3
start local 3 4: iload 3
bipush 91
if_icmpne 11
5: iinc 1 -1
6: aload 0
iload 1
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 93
if_icmpeq 8
7: iconst_0
ireturn
8: StackMap locals: java.lang.CharSequence int top int
StackMap stack:
iconst_1
istore 2
start local 2 9: aload 0
iconst_1
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 3
10: goto 12
end local 2 11: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 12: StackMap locals: java.lang.CharSequence int int int
StackMap stack:
iload 3
bipush 58
if_icmpne 19
13: aload 0
iload 2
iconst_1
iadd
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpeq 15
14: iconst_0
ireturn
15: StackMap locals:
StackMap stack:
iconst_2
istore 4
start local 4 16: iload 2
istore 5
start local 5 17: iinc 2 2
18: goto 21
end local 5 end local 4 19: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 20: iconst_m1
istore 5
start local 5 21: StackMap locals: int int
StackMap stack:
iconst_0
istore 6
start local 6 22: iload 2
istore 7
start local 7 23: goto 67
24: StackMap locals: int int
StackMap stack:
aload 0
iload 7
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 3
25: iload 3
invokestatic io.netty.util.NetUtil.isValidHexChar:(C)Z
ifeq 30
26: iload 6
iconst_4
if_icmpge 29
27: iinc 6 1
28: goto 66
29: StackMap locals:
StackMap stack:
iconst_0
ireturn
30: StackMap locals:
StackMap stack:
iload 3
lookupswitch { // 3
37: 63
46: 41
58: 31
default: 65
}
31: StackMap locals:
StackMap stack:
iload 4
bipush 7
if_icmple 33
32: iconst_0
ireturn
33: StackMap locals:
StackMap stack:
aload 0
iload 7
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 38
34: iload 5
iflt 36
35: iconst_0
ireturn
36: StackMap locals:
StackMap stack:
iload 7
iconst_1
isub
istore 5
37: goto 39
38: StackMap locals:
StackMap stack:
iconst_0
istore 6
39: StackMap locals:
StackMap stack:
iinc 4 1
40: goto 66
41: StackMap locals:
StackMap stack:
iload 5
ifge 42
iload 4
bipush 6
if_icmpne 44
42: StackMap locals:
StackMap stack:
iload 4
bipush 7
if_icmpne 43
iload 5
iload 2
if_icmpge 44
StackMap locals:
StackMap stack:
43: iload 4
bipush 7
if_icmple 45
44: StackMap locals:
StackMap stack:
iconst_0
ireturn
45: StackMap locals:
StackMap stack:
iload 7
iload 6
isub
istore 8
start local 8 46: iload 8
iconst_2
isub
istore 9
start local 9 47: aload 0
iload 9
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidIPv4MappedChar:(C)Z
ifeq 58
48: aload 0
iload 9
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidIPv4MappedChar:(C)Z
ifeq 51
49: aload 0
iload 9
iconst_2
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidIPv4MappedChar:(C)Z
ifeq 51
50: aload 0
iload 9
iconst_3
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidIPv4MappedChar:(C)Z
ifne 52
51: StackMap locals: int int
StackMap stack:
iconst_0
ireturn
52: StackMap locals:
StackMap stack:
iinc 9 -5
53: goto 58
54: StackMap locals:
StackMap stack:
aload 0
iload 9
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 10
start local 10 55: iload 10
bipush 48
if_icmpeq 57
iload 10
bipush 58
if_icmpeq 57
56: iconst_0
ireturn
end local 10 57: StackMap locals:
StackMap stack:
iinc 9 -1
StackMap locals:
StackMap stack:
58: iload 9
iload 2
if_icmpge 54
59: aload 0
bipush 37
iload 8
bipush 7
iadd
invokestatic io.netty.util.AsciiString.indexOf:(Ljava/lang/CharSequence;CI)I
istore 10
start local 10 60: iload 10
ifge 62
61: iload 1
istore 10
62: StackMap locals: int
StackMap stack:
aload 0
iload 8
iload 10
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Ljava/lang/CharSequence;II)Z
ireturn
end local 10 end local 9 end local 8 63: StackMap locals:
StackMap stack:
iload 7
istore 1
64: goto 68
65: StackMap locals:
StackMap stack:
iconst_0
ireturn
66: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
67: iload 7
iload 1
if_icmplt 24
end local 7 68: StackMap locals:
StackMap stack:
iload 5
ifge 71
69: iload 4
bipush 7
if_icmpne 70
iload 6
ifle 70
iconst_1
ireturn
StackMap locals:
StackMap stack:
70: iconst_0
ireturn
71: StackMap locals:
StackMap stack:
iload 5
iconst_2
iadd
iload 1
if_icmpeq 75
72: iload 6
ifle 74
iload 4
bipush 8
if_icmplt 75
iload 5
iload 2
73: if_icmple 75
StackMap locals:
StackMap stack:
74: iconst_0
ireturn
StackMap locals:
StackMap stack:
75: iconst_1
ireturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 76 0 ip Ljava/lang/CharSequence;
1 76 1 end I
9 11 2 start I
12 76 2 start I
4 76 3 c C
16 19 4 colons I
20 76 4 colons I
17 19 5 compressBegin I
21 76 5 compressBegin I
22 76 6 wordLen I
23 68 7 i I
46 63 8 ipv4Start I
47 63 9 j I
55 57 10 tmpChar C
60 63 10 ipv4End I
MethodParameters:
Name Flags
ip
private static boolean isValidIpV4Word(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
isub
istore 3
start local 3 1: iload 3
iconst_1
if_icmplt 3
iload 3
iconst_3
if_icmpgt 3
aload 0
iload 1
invokeinterface java.lang.CharSequence.charAt:(I)C
dup
istore 4
start local 4 2: bipush 48
if_icmpge 4
end local 4 3: StackMap locals: int
StackMap stack:
iconst_0
ireturn
start local 4 4: StackMap locals: int
StackMap stack:
iload 3
iconst_3
if_icmpne 14
5: aload 0
iload 1
iconst_1
iadd
invokeinterface java.lang.CharSequence.charAt:(I)C
dup
istore 5
start local 5 6: bipush 48
if_icmplt 13
7: aload 0
iload 1
iconst_2
iadd
invokeinterface java.lang.CharSequence.charAt:(I)C
dup
istore 6
start local 6 8: bipush 48
if_icmplt 13
9: iload 4
bipush 49
if_icmpgt 10
iload 5
bipush 57
if_icmpgt 10
iload 6
bipush 57
if_icmple 12
10: StackMap locals: int int
StackMap stack:
iload 4
bipush 50
if_icmpne 13
iload 5
bipush 53
if_icmpgt 13
iload 6
bipush 53
if_icmple 12
iload 5
bipush 53
if_icmpge 13
iload 6
bipush 57
11: if_icmpgt 13
end local 6 StackMap locals:
StackMap stack:
12: iconst_1
ireturn
StackMap locals:
StackMap stack:
13: iconst_0
ireturn
end local 5 14: StackMap locals:
StackMap stack:
iload 4
bipush 57
if_icmpgt 16
iload 3
iconst_1
if_icmpeq 15
aload 0
iload 1
iconst_1
iadd
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifeq 16
StackMap locals:
StackMap stack:
15: iconst_1
ireturn
StackMap locals:
StackMap stack:
16: iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 word Ljava/lang/CharSequence;
0 17 1 from I
0 17 2 toExclusive I
1 17 3 len I
2 3 4 c0 C
4 17 4 c0 C
6 14 5 c1 C
8 12 6 c2 C
MethodParameters:
Name Flags
word
from
toExclusive
private static boolean isValidHexChar(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 48
if_icmplt 1
iload 0
bipush 57
if_icmple 4
StackMap locals:
StackMap stack:
1: iload 0
bipush 65
if_icmplt 2
iload 0
bipush 70
if_icmple 4
StackMap locals:
StackMap stack:
2: iload 0
bipush 97
if_icmplt 3
iload 0
bipush 102
if_icmple 4
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
StackMap locals:
StackMap stack:
4: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 c C
MethodParameters:
Name Flags
c
private static boolean isValidNumericChar(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 48
if_icmplt 1
iload 0
bipush 57
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private static boolean isValidIPv4MappedChar(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 102
if_icmpeq 1
iload 0
bipush 70
if_icmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private static boolean isValidIPv4MappedSeparators(byte, byte, boolean);
descriptor: (BBZ)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 0
iload 1
if_icmpne 2
iload 0
ifeq 1
iload 2
ifne 2
iload 1
iconst_m1
if_icmpne 2
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 b0 B
0 3 1 b1 B
0 3 2 mustBeZero Z
MethodParameters:
Name Flags
b0
b1
mustBeZero
private static boolean isValidIPv4Mapped(byte[], int, int, int);
descriptor: ([BIII)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
iadd
bipush 14
if_icmplt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: iload 1
bipush 12
if_icmpgt 7
iload 1
iconst_2
if_icmplt 7
iload 4
ifeq 4
iload 2
bipush 12
if_icmpge 7
4: StackMap locals: int
StackMap stack:
aload 0
iload 1
iconst_1
isub
baload
aload 0
iload 1
iconst_2
isub
baload
iload 4
invokestatic io.netty.util.NetUtil.isValidIPv4MappedSeparators:(BBZ)Z
ifeq 7
5: aload 0
iconst_0
iload 1
iconst_3
isub
invokestatic io.netty.util.internal.PlatformDependent.isZero:([BII)Z
ifeq 7
6: iconst_1
ireturn
StackMap locals:
StackMap stack:
7: iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 bytes [B
0 8 1 currentIndex I
0 8 2 compressBegin I
0 8 3 compressLength I
3 8 4 mustBeZero Z
MethodParameters:
Name Flags
bytes
currentIndex
compressBegin
compressLength
public static boolean isValidIpV4Address(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
invokeinterface java.lang.CharSequence.length:()I
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Ljava/lang/CharSequence;II)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ip Ljava/lang/CharSequence;
MethodParameters:
Name Flags
ip
public static boolean isValidIpV4Address(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Ljava/lang/String;II)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ip Ljava/lang/String;
MethodParameters:
Name Flags
ip
private static boolean isValidIpV4Address(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
instanceof java.lang.String
ifeq 1
aload 0
checkcast java.lang.String
iload 1
iload 2
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Ljava/lang/String;II)Z
goto 3
1: StackMap locals:
StackMap stack:
aload 0
instanceof io.netty.util.AsciiString
ifeq 2
aload 0
checkcast io.netty.util.AsciiString
iload 1
iload 2
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Lio/netty/util/AsciiString;II)Z
goto 3
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
invokestatic io.netty.util.NetUtil.isValidIpV4Address0:(Ljava/lang/CharSequence;II)Z
3: StackMap locals:
StackMap stack: int
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ip Ljava/lang/CharSequence;
0 4 1 from I
0 4 2 toExcluded I
MethodParameters:
Name Flags
ip
from
toExcluded
private static boolean isValidIpV4Address(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
isub
istore 3
start local 3 1: iload 3
bipush 15
if_icmpgt 8
iload 3
bipush 7
if_icmplt 8
2: aload 0
bipush 46
iload 1
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 4
start local 4 3: ifle 8
aload 0
iload 1
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
4: aload 0
bipush 46
iload 4
iconst_2
iadd
dup
istore 1
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 4
ifle 8
aload 0
iload 1
iconst_1
isub
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
5: aload 0
bipush 46
iload 4
iconst_2
iadd
dup
istore 1
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 4
ifle 8
aload 0
iload 1
iconst_1
isub
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
6: aload 0
iload 4
iconst_1
iadd
iload 2
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
end local 4 7: iconst_1
ireturn
StackMap locals: int
StackMap stack:
8: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 ip Ljava/lang/String;
0 9 1 from I
0 9 2 toExcluded I
1 9 3 len I
3 7 4 i I
MethodParameters:
Name Flags
ip
from
toExcluded
private static boolean isValidIpV4Address(io.netty.util.AsciiString, int, int);
descriptor: (Lio/netty/util/AsciiString;II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
isub
istore 3
start local 3 1: iload 3
bipush 15
if_icmpgt 8
iload 3
bipush 7
if_icmplt 8
2: aload 0
bipush 46
iload 1
iconst_1
iadd
invokevirtual io.netty.util.AsciiString.indexOf:(CI)I
dup
istore 4
start local 4 3: ifle 8
aload 0
iload 1
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
4: aload 0
bipush 46
iload 4
iconst_2
iadd
dup
istore 1
invokevirtual io.netty.util.AsciiString.indexOf:(CI)I
dup
istore 4
ifle 8
aload 0
iload 1
iconst_1
isub
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
5: aload 0
bipush 46
iload 4
iconst_2
iadd
dup
istore 1
invokevirtual io.netty.util.AsciiString.indexOf:(CI)I
dup
istore 4
ifle 8
aload 0
iload 1
iconst_1
isub
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
6: aload 0
iload 4
iconst_1
iadd
iload 2
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
end local 4 7: iconst_1
ireturn
StackMap locals: int
StackMap stack:
8: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 ip Lio/netty/util/AsciiString;
0 9 1 from I
0 9 2 toExcluded I
1 9 3 len I
3 7 4 i I
MethodParameters:
Name Flags
ip
from
toExcluded
private static boolean isValidIpV4Address0(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 1
isub
istore 3
start local 3 1: iload 3
bipush 15
if_icmpgt 8
iload 3
bipush 7
if_icmplt 8
2: aload 0
bipush 46
iload 1
iconst_1
iadd
invokestatic io.netty.util.AsciiString.indexOf:(Ljava/lang/CharSequence;CI)I
dup
istore 4
start local 4 3: ifle 8
aload 0
iload 1
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
4: aload 0
bipush 46
iload 4
iconst_2
iadd
dup
istore 1
invokestatic io.netty.util.AsciiString.indexOf:(Ljava/lang/CharSequence;CI)I
dup
istore 4
ifle 8
aload 0
iload 1
iconst_1
isub
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
5: aload 0
bipush 46
iload 4
iconst_2
iadd
dup
istore 1
invokestatic io.netty.util.AsciiString.indexOf:(Ljava/lang/CharSequence;CI)I
dup
istore 4
ifle 8
aload 0
iload 1
iconst_1
isub
iload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
6: aload 0
iload 4
iconst_1
iadd
iload 2
invokestatic io.netty.util.NetUtil.isValidIpV4Word:(Ljava/lang/CharSequence;II)Z
ifeq 8
end local 4 7: iconst_1
ireturn
StackMap locals: int
StackMap stack:
8: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 ip Ljava/lang/CharSequence;
0 9 1 from I
0 9 2 toExcluded I
1 9 3 len I
3 7 4 i I
MethodParameters:
Name Flags
ip
from
toExcluded
public static java.net.Inet6Address getByName(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Ljava/net/Inet6Address;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokestatic io.netty.util.NetUtil.getByName:(Ljava/lang/CharSequence;Z)Ljava/net/Inet6Address;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ip Ljava/lang/CharSequence;
MethodParameters:
Name Flags
ip
public static java.net.Inet6Address getByName(java.lang.CharSequence, boolean);
descriptor: (Ljava/lang/CharSequence;Z)Ljava/net/Inet6Address;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic io.netty.util.NetUtil.getIPv6ByName:(Ljava/lang/CharSequence;Z)[B
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: byte[]
StackMap stack:
aconst_null
aload 2
iconst_m1
invokestatic java.net.Inet6Address.getByAddress:(Ljava/lang/String;[BI)Ljava/net/Inet6Address;
4: areturn
5: StackMap locals:
StackMap stack: java.net.UnknownHostException
astore 3
start local 3 6: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 ip Ljava/lang/CharSequence;
0 7 1 ipv4Mapped Z
1 7 2 bytes [B
6 7 3 e Ljava/net/UnknownHostException;
Exception table:
from to target type
3 4 5 Class java.net.UnknownHostException
MethodParameters:
Name Flags
ip
ipv4Mapped
private static byte[] getIPv6ByName(java.lang.CharSequence, boolean);
descriptor: (Ljava/lang/CharSequence;Z)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=15, args_size=2
start local 0 start local 1 0: bipush 16
newarray 8
astore 2
start local 2 1: aload 0
invokeinterface java.lang.CharSequence.length:()I
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: iconst_0
istore 6
start local 6 5: iconst_0
istore 7
start local 7 6: iconst_m1
istore 8
start local 8 7: iconst_0
istore 9
start local 9 8: iconst_0
istore 10
start local 10 9: iconst_0
istore 11
start local 11 10: iconst_0
istore 13
start local 13 11: goto 76
12: StackMap locals: java.lang.CharSequence int byte[] int int int int int int int int int top int
StackMap stack:
aload 0
iload 9
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 14
start local 14 13: iload 14
lookupswitch { // 2
46: 39
58: 14
default: 67
}
14: StackMap locals: int
StackMap stack:
iinc 10 1
15: iload 9
iload 8
isub
iconst_4
if_icmpgt 18
16: iload 11
ifgt 18
iload 10
bipush 8
if_icmpgt 18
17: iload 6
iconst_1
iadd
aload 2
arraylength
if_icmplt 19
18: StackMap locals:
StackMap stack:
aconst_null
areturn
19: StackMap locals:
StackMap stack:
iload 7
iconst_4
iload 9
iload 8
isub
isub
iconst_2
ishl
ishl
istore 7
20: iload 5
ifle 22
21: iinc 5 -2
22: StackMap locals:
StackMap stack:
aload 2
iload 6
iinc 6 1
iload 7
bipush 15
iand
iconst_4
ishl
iload 7
iconst_4
ishr
bipush 15
iand
ior
i2b
bastore
23: aload 2
iload 6
iinc 6 1
iload 7
bipush 8
ishr
bipush 15
iand
iconst_4
ishl
iload 7
bipush 12
ishr
bipush 15
iand
ior
i2b
bastore
24: iload 9
iconst_1
iadd
istore 12
start local 12 25: iload 12
iload 3
if_icmpge 36
aload 0
iload 12
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 36
26: iinc 12 1
27: iload 4
ifne 28
iload 12
iload 3
if_icmpge 29
aload 0
iload 12
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 29
28: StackMap locals: java.lang.CharSequence int byte[] int int int int int int int int int int int int
StackMap stack:
aconst_null
areturn
29: StackMap locals:
StackMap stack:
iinc 10 1
30: iload 10
iconst_2
if_icmpne 31
iload 7
ifne 31
iconst_1
goto 32
StackMap locals:
StackMap stack:
31: iconst_0
StackMap locals:
StackMap stack: int
32: istore 13
33: iload 6
istore 4
34: aload 2
arraylength
iload 4
isub
iconst_2
isub
istore 5
35: iinc 9 1
36: StackMap locals:
StackMap stack:
iconst_0
istore 7
37: iconst_m1
istore 8
38: goto 75
end local 12 39: StackMap locals: java.lang.CharSequence int byte[] int int int int int int int int int top int int
StackMap stack:
iinc 11 1
40: iload 9
iload 8
isub
istore 12
start local 12 41: iload 12
iconst_3
if_icmpgt 58
42: iload 8
iflt 58
43: iload 11
iconst_3
if_icmpgt 58
44: iload 10
ifle 45
iload 6
iload 5
iadd
bipush 12
if_icmplt 58
45: StackMap locals: java.lang.CharSequence int byte[] int int int int int int int int int int int int
StackMap stack:
iload 9
iconst_1
iadd
iload 3
if_icmpge 58
46: iload 6
aload 2
arraylength
if_icmpge 58
47: iload 11
iconst_1
if_icmpne 59
48: iload 1
ifeq 58
iload 6
ifeq 52
aload 2
iload 6
49: iload 4
iload 5
50: invokestatic io.netty.util.NetUtil.isValidIPv4Mapped:([BIII)Z
51: ifeq 58
52: StackMap locals:
StackMap stack:
iload 12
iconst_3
if_icmpne 55
aload 0
iload 9
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifeq 58
53: aload 0
iload 9
iconst_2
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifeq 58
54: aload 0
iload 9
iconst_3
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifeq 58
55: StackMap locals:
StackMap stack:
iload 12
iconst_2
if_icmpne 57
aload 0
iload 9
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifeq 58
56: aload 0
iload 9
iconst_2
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifeq 58
57: StackMap locals:
StackMap stack:
iload 12
iconst_1
if_icmpne 59
aload 0
iload 9
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifne 59
58: StackMap locals:
StackMap stack:
aconst_null
areturn
59: StackMap locals:
StackMap stack:
iload 7
iconst_3
iload 12
isub
iconst_2
ishl
ishl
istore 7
60: iload 7
bipush 15
iand
bipush 100
imul
iload 7
iconst_4
ishr
bipush 15
iand
bipush 10
imul
iadd
iload 7
bipush 8
ishr
bipush 15
iand
iadd
istore 8
61: iload 8
iflt 62
iload 8
sipush 255
if_icmple 63
62: StackMap locals:
StackMap stack:
aconst_null
areturn
63: StackMap locals:
StackMap stack:
aload 2
iload 6
iinc 6 1
iload 8
i2b
bastore
64: iconst_0
istore 7
65: iconst_m1
istore 8
66: goto 75
end local 12 67: StackMap locals: java.lang.CharSequence int byte[] int int int int int int int int int top int int
StackMap stack:
iload 14
invokestatic io.netty.util.NetUtil.isValidHexChar:(C)Z
ifeq 68
iload 11
ifle 69
iload 14
invokestatic io.netty.util.NetUtil.isValidNumericChar:(C)Z
ifne 69
68: StackMap locals:
StackMap stack:
aconst_null
areturn
69: StackMap locals:
StackMap stack:
iload 8
ifge 72
70: iload 9
istore 8
71: goto 74
StackMap locals:
StackMap stack:
72: iload 9
iload 8
isub
iconst_4
if_icmple 74
73: aconst_null
areturn
74: StackMap locals:
StackMap stack:
iload 7
iload 14
invokestatic io.netty.util.internal.StringUtil.decodeHexNibble:(C)I
iload 9
iload 8
isub
iconst_2
ishl
ishl
iadd
istore 7
end local 14 75: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
76: iload 9
iload 3
if_icmplt 12
77: iload 4
ifle 78
iconst_1
goto 79
StackMap locals:
StackMap stack:
78: iconst_0
StackMap locals:
StackMap stack: int
79: istore 14
start local 14 80: iload 11
ifle 101
81: iload 8
ifle 82
iload 9
iload 8
isub
iconst_3
if_icmpgt 84
82: StackMap locals: int
StackMap stack:
iload 11
iconst_3
if_icmpne 84
83: iload 6
aload 2
arraylength
if_icmplt 85
84: StackMap locals:
StackMap stack:
aconst_null
areturn
85: StackMap locals:
StackMap stack:
iload 10
ifne 88
86: bipush 12
istore 5
87: goto 95
StackMap locals:
StackMap stack:
88: iload 10
iconst_2
if_icmplt 94
89: iload 14
ifne 90
iload 10
bipush 6
if_icmpne 90
aload 0
iconst_0
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 92
90: StackMap locals:
StackMap stack:
iload 14
ifeq 94
iload 10
bipush 8
if_icmpge 94
91: aload 0
iconst_0
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 92
iload 4
iconst_2
if_icmpgt 94
92: StackMap locals:
StackMap stack:
iinc 5 -2
93: goto 95
94: StackMap locals:
StackMap stack:
aconst_null
areturn
95: StackMap locals:
StackMap stack:
iload 7
iconst_3
iload 9
iload 8
isub
isub
iconst_2
ishl
ishl
istore 7
96: iload 7
bipush 15
iand
bipush 100
imul
iload 7
iconst_4
ishr
bipush 15
iand
bipush 10
imul
iadd
iload 7
bipush 8
ishr
bipush 15
iand
iadd
istore 8
97: iload 8
iflt 98
iload 8
sipush 255
if_icmple 99
98: StackMap locals:
StackMap stack:
aconst_null
areturn
99: StackMap locals:
StackMap stack:
aload 2
iload 6
iinc 6 1
iload 8
i2b
bastore
100: goto 118
101: StackMap locals:
StackMap stack:
iload 3
iconst_1
isub
istore 12
start local 12 102: iload 8
ifle 103
iload 9
iload 8
isub
iconst_4
if_icmpgt 113
103: StackMap locals: java.lang.CharSequence int byte[] int int int int int int int int int int int int
StackMap stack:
iload 10
iconst_2
if_icmplt 113
104: iload 14
ifne 106
iload 10
iconst_1
iadd
bipush 8
if_icmpne 113
105: aload 0
iconst_0
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpeq 113
aload 0
iload 12
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpeq 113
106: StackMap locals:
StackMap stack:
iload 14
ifeq 110
iload 10
bipush 8
if_icmpgt 113
107: iload 10
bipush 8
if_icmpne 110
108: iload 4
iconst_2
if_icmpgt 109
aload 0
iconst_0
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 113
109: StackMap locals:
StackMap stack:
iload 4
bipush 14
if_icmplt 110
aload 0
iload 12
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 113
110: StackMap locals:
StackMap stack:
iload 6
iconst_1
iadd
aload 2
arraylength
if_icmpge 113
111: iload 8
ifge 112
aload 0
iload 12
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 113
112: StackMap locals:
StackMap stack:
iload 4
iconst_2
if_icmple 114
aload 0
iconst_0
invokeinterface java.lang.CharSequence.charAt:(I)C
bipush 58
if_icmpne 114
113: StackMap locals:
StackMap stack:
aconst_null
areturn
114: StackMap locals:
StackMap stack:
iload 8
iflt 116
iload 9
iload 8
isub
iconst_4
if_icmpgt 116
115: iload 7
iconst_4
iload 9
iload 8
isub
isub
iconst_2
ishl
ishl
istore 7
116: StackMap locals:
StackMap stack:
aload 2
iload 6
iinc 6 1
iload 7
bipush 15
iand
iconst_4
ishl
iload 7
iconst_4
ishr
bipush 15
iand
ior
i2b
bastore
117: aload 2
iload 6
iinc 6 1
iload 7
bipush 8
ishr
bipush 15
iand
iconst_4
ishl
iload 7
bipush 12
ishr
bipush 15
iand
ior
i2b
bastore
end local 12 118: StackMap locals: java.lang.CharSequence int byte[] int int int int int int int int int top int int
StackMap stack:
iload 6
iload 5
iadd
istore 9
119: iload 13
ifne 120
iload 9
aload 2
arraylength
if_icmplt 132
120: StackMap locals:
StackMap stack:
iload 9
aload 2
arraylength
if_icmplt 122
121: iinc 4 1
122: StackMap locals:
StackMap stack:
iload 6
istore 9
goto 130
123: StackMap locals:
StackMap stack:
aload 2
arraylength
iconst_1
isub
istore 8
goto 126
124: StackMap locals:
StackMap stack:
aload 2
iload 8
aload 2
iload 8
iconst_1
isub
baload
bastore
125: iinc 8 -1
StackMap locals:
StackMap stack:
126: iload 8
iload 4
if_icmpge 124
127: aload 2
iload 8
iconst_0
bastore
128: iinc 4 1
129: iinc 9 1
StackMap locals:
StackMap stack:
130: iload 9
aload 2
arraylength
if_icmplt 123
131: goto 140
132: StackMap locals:
StackMap stack:
iconst_0
istore 9
goto 139
133: StackMap locals:
StackMap stack:
iload 9
iload 4
iadd
istore 8
134: iload 8
iload 5
iadd
istore 6
135: iload 6
aload 2
arraylength
if_icmpge 140
136: aload 2
iload 6
aload 2
iload 8
baload
bastore
137: aload 2
iload 8
iconst_0
bastore
138: iinc 9 1
StackMap locals:
StackMap stack:
139: iload 9
iload 5
if_icmplt 133
140: StackMap locals:
StackMap stack:
iload 11
ifle 142
141: aload 2
bipush 10
aload 2
bipush 11
iconst_m1
dup_x2
bastore
bastore
142: StackMap locals:
StackMap stack:
aload 2
areturn
end local 14 end local 13 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 143 0 ip Ljava/lang/CharSequence;
0 143 1 ipv4Mapped Z
1 143 2 bytes [B
2 143 3 ipLength I
3 143 4 compressBegin I
4 143 5 compressLength I
5 143 6 currentIndex I
6 143 7 value I
7 143 8 begin I
8 143 9 i I
9 143 10 ipv6Separators I
10 143 11 ipv4Separators I
25 39 12 tmp I
41 67 12 tmp I
102 118 12 tmp I
11 143 13 needsShift Z
13 75 14 c C
80 143 14 isCompressed Z
MethodParameters:
Name Flags
ip
ipv4Mapped
public static java.lang.String toSocketAddressString(java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
astore 1
start local 1 1: aload 0
invokevirtual java.net.InetSocketAddress.isUnresolved:()Z
ifeq 7
2: aload 0
invokestatic io.netty.util.NetUtil.getHostname:(Ljava/net/InetSocketAddress;)Ljava/lang/String;
astore 3
start local 3 3: aload 3
aload 1
aload 3
invokestatic io.netty.util.NetUtil.isValidIpV6Address:(Ljava/lang/String;)Z
ifeq 4
iconst_0
goto 5
StackMap locals: java.net.InetSocketAddress java.lang.String top java.lang.String
StackMap stack: java.lang.String java.lang.String
4: iconst_1
StackMap locals: java.net.InetSocketAddress java.lang.String top java.lang.String
StackMap stack: java.lang.String java.lang.String int
5: invokestatic io.netty.util.NetUtil.newSocketAddressStringBuilder:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/StringBuilder;
astore 2
end local 3 start local 2 6: goto 10
end local 2 7: StackMap locals: java.net.InetSocketAddress java.lang.String
StackMap stack:
aload 0
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
astore 3
start local 3 8: aload 3
invokestatic io.netty.util.NetUtil.toAddressString:(Ljava/net/InetAddress;)Ljava/lang/String;
astore 4
start local 4 9: aload 4
aload 1
aload 3
instanceof java.net.Inet4Address
invokestatic io.netty.util.NetUtil.newSocketAddressStringBuilder:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/StringBuilder;
astore 2
end local 4 end local 3 start local 2 10: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 2
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 addr Ljava/net/InetSocketAddress;
1 11 1 port Ljava/lang/String;
6 7 2 sb Ljava/lang/StringBuilder;
10 11 2 sb Ljava/lang/StringBuilder;
3 6 3 hostname Ljava/lang/String;
8 10 3 address Ljava/net/InetAddress;
9 10 4 hostString Ljava/lang/String;
MethodParameters:
Name Flags
addr
public static java.lang.String toSocketAddressString(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
aload 0
invokestatic io.netty.util.NetUtil.isValidIpV6Address:(Ljava/lang/String;)Z
ifeq 2
iconst_0
goto 3
StackMap locals: java.lang.String int java.lang.String
StackMap stack: java.lang.String java.lang.String
2: iconst_1
3: StackMap locals: java.lang.String int java.lang.String
StackMap stack: java.lang.String java.lang.String int
invokestatic io.netty.util.NetUtil.newSocketAddressStringBuilder:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/StringBuilder;
4: bipush 58
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;
5: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 host Ljava/lang/String;
0 6 1 port I
1 6 2 portStr Ljava/lang/String;
MethodParameters:
Name Flags
host
port
private static java.lang.StringBuilder newSocketAddressStringBuilder(java.lang.String, java.lang.String, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/StringBuilder;
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 0
invokevirtual java.lang.String.length:()I
istore 3
start local 3 1: iload 2
ifeq 3
2: new java.lang.StringBuilder
dup
iload 3
iconst_1
iadd
aload 1
invokevirtual java.lang.String.length:()I
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
areturn
3: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
iload 3
iconst_3
iadd
aload 1
invokevirtual java.lang.String.length:()I
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 4
start local 4 4: iload 3
iconst_1
if_icmple 6
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 91
if_icmpne 6
aload 0
iload 3
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 93
if_icmpne 6
5: aload 4
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
areturn
6: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 4
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 host Ljava/lang/String;
0 7 1 port Ljava/lang/String;
0 7 2 ipv4 Z
1 7 3 hostLen I
4 7 4 stringBuilder Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
host
port
ipv4
public static java.lang.String toAddressString(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokestatic io.netty.util.NetUtil.toAddressString:(Ljava/net/InetAddress;Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ip Ljava/net/InetAddress;
MethodParameters:
Name Flags
ip
public static java.lang.String toAddressString(java.net.InetAddress, boolean);
descriptor: (Ljava/net/InetAddress;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
instanceof java.net.Inet4Address
ifeq 2
1: aload 0
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.net.Inet6Address
ifne 4
3: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unhandled type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.InetAddress.getAddress:()[B
iconst_0
iload 1
invokestatic io.netty.util.NetUtil.toAddressString:([BIZ)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 ip Ljava/net/InetAddress;
0 5 1 ipv4Mapped Z
MethodParameters:
Name Flags
ip
ipv4Mapped
private static java.lang.String toAddressString(byte[], int, boolean);
descriptor: ([BIZ)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=13, args_size=3
start local 0 start local 1 start local 2 0: bipush 8
newarray 10
astore 3
start local 3 1: iload 1
aload 3
arraylength
iadd
istore 5
start local 5 2: iload 1
istore 4
start local 4 3: goto 6
4: StackMap locals: int[] int int
StackMap stack:
aload 3
iload 4
aload 0
iload 4
iconst_1
ishl
baload
sipush 255
iand
bipush 8
ishl
aload 0
iload 4
iconst_1
ishl
iconst_1
iadd
baload
sipush 255
iand
ior
iastore
5: iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 5
if_icmplt 4
7: iconst_m1
istore 6
start local 6 8: iconst_m1
istore 8
start local 8 9: iconst_0
istore 9
start local 9 10: iconst_0
istore 4
goto 22
11: StackMap locals: byte[] int int int[] int int int top int int
StackMap stack:
aload 3
iload 4
iaload
ifne 15
12: iload 6
ifge 21
13: iload 4
istore 6
14: goto 21
StackMap locals:
StackMap stack:
15: iload 6
iflt 21
16: iload 4
iload 6
isub
istore 7
start local 7 17: iload 7
iload 9
if_icmple 20
18: iload 6
istore 8
19: iload 7
istore 9
20: StackMap locals: byte[] int int int[] int int int int int int
StackMap stack:
iconst_m1
istore 6
end local 7 21: StackMap locals: byte[] int int int[] int int int top int int
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
22: iload 4
aload 3
arraylength
if_icmplt 11
23: iload 6
iflt 28
24: iload 4
iload 6
isub
istore 7
start local 7 25: iload 7
iload 9
if_icmple 28
26: iload 6
istore 8
27: iload 7
istore 9
end local 7 28: StackMap locals:
StackMap stack:
iload 9
iconst_1
if_icmpne 31
29: iconst_0
istore 9
30: iconst_m1
istore 8
31: StackMap locals:
StackMap stack:
iload 8
iload 9
iadd
istore 10
start local 10 32: new java.lang.StringBuilder
dup
bipush 39
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 11
start local 11 33: iload 10
ifge 41
34: aload 11
aload 3
iconst_0
iaload
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
35: iconst_1
istore 4
goto 39
36: StackMap locals: int java.lang.StringBuilder
StackMap stack:
aload 11
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
37: aload 11
aload 3
iload 4
iaload
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
38: iinc 4 1
StackMap locals:
StackMap stack:
39: iload 4
aload 3
arraylength
if_icmplt 36
40: goto 67
41: StackMap locals:
StackMap stack:
iconst_0
iload 8
iload 10
invokestatic io.netty.util.NetUtil.inRangeEndExclusive:(III)Z
ifeq 47
42: aload 11
ldc "::"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
43: iload 2
ifeq 44
iload 10
iconst_5
if_icmpne 44
aload 3
iconst_5
iaload
ldc 65535
if_icmpne 44
iconst_1
goto 45
StackMap locals:
StackMap stack:
44: iconst_0
StackMap locals:
StackMap stack: int
45: istore 12
start local 12 46: goto 49
end local 12 47: StackMap locals:
StackMap stack:
aload 11
aload 3
iconst_0
iaload
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
48: iconst_0
istore 12
start local 12 49: StackMap locals: int
StackMap stack:
iconst_1
istore 4
goto 66
50: StackMap locals:
StackMap stack:
iload 4
iload 8
iload 10
invokestatic io.netty.util.NetUtil.inRangeEndExclusive:(III)Z
ifne 63
51: iload 4
iconst_1
isub
iload 8
iload 10
invokestatic io.netty.util.NetUtil.inRangeEndExclusive:(III)Z
ifne 56
52: iload 12
ifeq 53
iload 4
bipush 6
if_icmpne 55
53: StackMap locals:
StackMap stack:
aload 11
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
54: goto 56
55: StackMap locals:
StackMap stack:
aload 11
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
56: StackMap locals:
StackMap stack:
iload 12
ifeq 61
iload 4
iconst_5
if_icmple 61
57: aload 11
aload 3
iload 4
iaload
bipush 8
ishr
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
58: aload 11
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
59: aload 11
aload 3
iload 4
iaload
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
60: goto 65
61: StackMap locals:
StackMap stack:
aload 11
aload 3
iload 4
iaload
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
62: goto 65
StackMap locals:
StackMap stack:
63: iload 4
iconst_1
isub
iload 8
iload 10
invokestatic io.netty.util.NetUtil.inRangeEndExclusive:(III)Z
ifne 65
64: aload 11
ldc "::"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
65: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
66: iload 4
aload 3
arraylength
if_icmplt 50
end local 12 67: StackMap locals:
StackMap stack:
aload 11
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 11 end local 10 end local 9 end local 8 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 68 0 bytes [B
0 68 1 offset I
0 68 2 ipv4Mapped Z
1 68 3 words [I
3 68 4 i I
2 68 5 end I
8 68 6 currentStart I
17 21 7 currentLength I
25 28 7 currentLength I
9 68 8 shortestStart I
10 68 9 shortestLength I
32 68 10 shortestEnd I
33 68 11 b Ljava/lang/StringBuilder;
46 47 12 isIpv4Mapped Z
49 67 12 isIpv4Mapped Z
MethodParameters:
Name Flags
bytes
offset
ipv4Mapped
public static java.lang.String getHostname(java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic io.netty.util.internal.PlatformDependent.javaVersion:()I
bipush 7
if_icmplt 1
aload 0
invokevirtual java.net.InetSocketAddress.getHostString:()Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
invokevirtual java.net.InetSocketAddress.getHostName:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 addr Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
addr
private static boolean inRangeEndExclusive(int, int, int);
descriptor: (III)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 0
iload 1
if_icmplt 1
iload 0
iload 2
if_icmpge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 value I
0 2 1 start I
0 2 2 end I
MethodParameters:
Name Flags
value
start
end
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 Lio/netty/util/NetUtil;
}
SourceFile: "NetUtil.java"
NestMembers:
io.netty.util.NetUtil$1
InnerClasses:
io.netty.util.NetUtil$1