public final class org.glassfish.jersey.internal.guava.InetAddresses
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.jersey.internal.guava.InetAddresses
super_class: java.lang.Object
{
private static final int IPV4_PART_COUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int IPV6_PART_COUNT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
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 Lorg/glassfish/jersey/internal/guava/InetAddresses;
private static byte[] ipStringToBytes(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 16
4: StackMap locals: int int int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 5: iload 4
bipush 46
if_icmpne 8
6: iconst_1
istore 2
7: goto 15
StackMap locals: int
StackMap stack:
8: iload 4
bipush 58
if_icmpne 13
9: iload 2
ifeq 11
10: aconst_null
areturn
11: StackMap locals:
StackMap stack:
iconst_1
istore 1
12: goto 15
StackMap locals:
StackMap stack:
13: iload 4
bipush 16
invokestatic java.lang.Character.digit:(CI)I
iconst_m1
if_icmpne 15
14: aconst_null
areturn
end local 4 15: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
16: iload 3
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 4
end local 3 17: iload 1
ifeq 23
18: iload 2
ifeq 22
19: aload 0
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.convertDottedQuadToHex:(Ljava/lang/String;)Ljava/lang/String;
astore 0
20: aload 0
ifnonnull 22
21: aconst_null
areturn
22: StackMap locals:
StackMap stack:
aload 0
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.textToNumericFormatV6:(Ljava/lang/String;)[B
areturn
23: StackMap locals:
StackMap stack:
iload 2
ifeq 25
24: aload 0
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.textToNumericFormatV4:(Ljava/lang/String;)[B
areturn
25: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 ipString Ljava/lang/String;
1 26 1 hasColon Z
2 26 2 hasDot Z
3 17 3 i I
5 15 4 c C
MethodParameters:
Name Flags
ipString
private static byte[] textToNumericFormatV4(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
ldc "\\."
iconst_5
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
arraylength
iconst_4
if_icmpeq 3
2: aconst_null
areturn
3: StackMap locals: java.lang.String[]
StackMap stack:
iconst_4
newarray 8
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: byte[] int
StackMap stack:
aload 2
iload 3
aload 1
iload 3
aaload
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.parseOctet:(Ljava/lang/String;)B
bastore
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 2
arraylength
if_icmplt 6
end local 3 9: goto 12
StackMap locals: java.lang.String java.lang.String[] byte[]
StackMap stack: java.lang.NumberFormatException
10: pop
11: aconst_null
areturn
12: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 ipString Ljava/lang/String;
1 13 1 address [Ljava/lang/String;
4 13 2 bytes [B
5 9 3 i I
Exception table:
from to target type
4 9 10 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
ipString
private static byte[] textToNumericFormatV6(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
ldc ":"
bipush 10
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 1
start local 1 1: aload 1
arraylength
iconst_3
if_icmplt 2
aload 1
arraylength
bipush 9
if_icmple 3
2: StackMap locals: java.lang.String[]
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
iconst_m1
istore 2
start local 2 4: iconst_1
istore 3
start local 3 5: goto 11
6: StackMap locals: int int
StackMap stack:
aload 1
iload 3
aaload
invokevirtual java.lang.String.length:()I
ifne 10
7: iload 2
iflt 9
8: aconst_null
areturn
9: StackMap locals:
StackMap stack:
iload 3
istore 2
10: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
aload 1
arraylength
iconst_1
isub
if_icmplt 6
end local 3 12: iload 2
iflt 19
13: iload 2
istore 3
start local 3 14: aload 1
arraylength
iload 2
isub
iconst_1
isub
istore 4
start local 4 15: aload 1
iconst_0
aaload
invokevirtual java.lang.String.length:()I
ifne 17
iinc 3 -1
iload 3
ifeq 17
16: aconst_null
areturn
17: StackMap locals: int
StackMap stack:
aload 1
aload 1
arraylength
iconst_1
isub
aaload
invokevirtual java.lang.String.length:()I
ifne 21
iinc 4 -1
iload 4
ifeq 21
18: aconst_null
areturn
end local 4 end local 3 19: StackMap locals:
StackMap stack:
aload 1
arraylength
istore 3
start local 3 20: iconst_0
istore 4
start local 4 21: StackMap locals: int int
StackMap stack:
bipush 8
iload 3
iload 4
iadd
isub
istore 5
start local 5 22: iload 2
iflt 23
iload 5
iconst_1
if_icmpge 25
goto 24
StackMap locals: int
StackMap stack:
23: iload 5
ifeq 25
24: StackMap locals:
StackMap stack:
aconst_null
areturn
25: StackMap locals:
StackMap stack:
bipush 16
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 6
start local 6 26: iconst_0
istore 7
start local 7 27: goto 30
28: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
aload 6
aload 1
iload 7
aaload
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.parseHextet:(Ljava/lang/String;)S
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
29: iinc 7 1
StackMap locals:
StackMap stack:
30: iload 7
iload 3
if_icmplt 28
end local 7 31: iconst_0
istore 7
start local 7 32: goto 35
33: StackMap locals:
StackMap stack:
aload 6
iconst_0
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
34: iinc 7 1
StackMap locals:
StackMap stack:
35: iload 7
iload 5
if_icmplt 33
end local 7 36: iload 4
istore 7
start local 7 37: goto 40
38: StackMap locals:
StackMap stack:
aload 6
aload 1
aload 1
arraylength
iload 7
isub
aaload
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.parseHextet:(Ljava/lang/String;)S
invokevirtual java.nio.ByteBuffer.putShort:(S)Ljava/nio/ByteBuffer;
pop
39: iinc 7 -1
StackMap locals:
StackMap stack:
40: iload 7
ifgt 38
end local 7 41: goto 44
StackMap locals: java.lang.String java.lang.String[] int int int int java.nio.ByteBuffer
StackMap stack: java.lang.NumberFormatException
42: pop
43: aconst_null
areturn
44: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.nio.ByteBuffer.array:()[B
areturn
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 45 0 ipString Ljava/lang/String;
1 45 1 parts [Ljava/lang/String;
4 45 2 skipIndex I
5 12 3 i I
14 19 3 partsHi I
20 45 3 partsHi I
15 19 4 partsLo I
21 45 4 partsLo I
22 45 5 partsSkipped I
26 45 6 rawBytes Ljava/nio/ByteBuffer;
27 31 7 i I
32 36 7 i I
37 41 7 i I
Exception table:
from to target type
26 41 42 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
ipString
private static java.lang.String convertDottedQuadToHex(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
bipush 58
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 1
start local 1 1: aload 0
iconst_0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
start local 2 2: aload 0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 3: aload 3
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.textToNumericFormatV4:(Ljava/lang/String;)[B
astore 4
start local 4 4: aload 4
ifnonnull 6
5: aconst_null
areturn
6: StackMap locals: java.lang.String int java.lang.String java.lang.String byte[]
StackMap stack:
aload 4
iconst_0
baload
sipush 255
iand
bipush 8
ishl
aload 4
iconst_1
baload
sipush 255
iand
ior
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 5
start local 5 7: aload 4
iconst_2
baload
sipush 255
iand
bipush 8
ishl
aload 4
iconst_3
baload
sipush 255
iand
ior
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 6
start local 6 8: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
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 9 0 ipString Ljava/lang/String;
1 9 1 lastColon I
2 9 2 initialPart Ljava/lang/String;
3 9 3 dottedQuad Ljava/lang/String;
4 9 4 quad [B
7 9 5 penultimate Ljava/lang/String;
8 9 6 ultimate Ljava/lang/String;
MethodParameters:
Name Flags
ipString
private static byte parseOctet(java.lang.String);
descriptor: (Ljava/lang/String;)B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 1
start local 1 1: iload 1
sipush 255
if_icmpgt 2
aload 0
ldc "0"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 3
2: StackMap locals: int
StackMap stack:
new java.lang.NumberFormatException
dup
invokespecial java.lang.NumberFormatException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 1
i2b
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ipPart Ljava/lang/String;
1 4 1 octet I
MethodParameters:
Name Flags
ipPart
private static short parseHextet(java.lang.String);
descriptor: (Ljava/lang/String;)S
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
bipush 16
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
istore 1
start local 1 1: iload 1
ldc 65535
if_icmple 3
2: new java.lang.NumberFormatException
dup
invokespecial java.lang.NumberFormatException.<init>:()V
athrow
3: StackMap locals: int
StackMap stack:
iload 1
i2s
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ipPart Ljava/lang/String;
1 4 1 hextet I
MethodParameters:
Name Flags
ipPart
private static java.net.InetAddress bytesToInetAddress(byte[]);
descriptor: ([B)Ljava/net/InetAddress;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
1: areturn
2: StackMap locals:
StackMap stack: java.net.UnknownHostException
astore 1
start local 1 3: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 addr [B
3 4 1 e Ljava/net/UnknownHostException;
Exception table:
from to target type
0 1 2 Class java.net.UnknownHostException
MethodParameters:
Name Flags
addr
private static java.net.InetAddress forUriStringNoThrow(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/InetAddress;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokestatic org.glassfish.jersey.internal.guava.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
ldc "["
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
aload 0
ldc "]"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
2: 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 1
start local 1 3: bipush 16
istore 2
start local 2 4: goto 7
end local 2 end local 1 5: StackMap locals:
StackMap stack:
aload 0
astore 1
start local 1 6: iconst_4
istore 2
start local 2 7: StackMap locals: java.lang.String int
StackMap stack:
aload 1
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.ipStringToBytes:(Ljava/lang/String;)[B
astore 3
start local 3 8: aload 3
ifnull 9
aload 3
arraylength
iload 2
if_icmpeq 10
9: StackMap locals: byte[]
StackMap stack:
aconst_null
areturn
10: StackMap locals:
StackMap stack:
aload 3
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.bytesToInetAddress:([B)Ljava/net/InetAddress;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 hostAddr Ljava/lang/String;
3 5 1 ipString Ljava/lang/String;
6 11 1 ipString Ljava/lang/String;
4 5 2 expectBytes I
7 11 2 expectBytes I
8 11 3 addr [B
MethodParameters:
Name Flags
hostAddr
public static boolean isUriInetAddress(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 org.glassfish.jersey.internal.guava.InetAddresses.forUriStringNoThrow:(Ljava/lang/String;)Ljava/net/InetAddress;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ipString Ljava/lang/String;
MethodParameters:
Name Flags
ipString
public static boolean isMappedIPv4Address(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.glassfish.jersey.internal.guava.InetAddresses.ipStringToBytes:(Ljava/lang/String;)[B
astore 1
start local 1 1: aload 1
ifnull 15
aload 1
arraylength
bipush 16
if_icmpne 15
2: iconst_0
istore 2
start local 2 3: goto 7
4: StackMap locals: byte[] int
StackMap stack:
aload 1
iload 2
baload
ifeq 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
bipush 10
if_icmplt 4
end local 2 8: bipush 10
istore 2
start local 2 9: goto 13
10: StackMap locals:
StackMap stack:
aload 1
iload 2
baload
iconst_m1
if_icmpeq 12
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
13: iload 2
bipush 12
if_icmplt 10
end local 2 14: iconst_1
ireturn
15: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 ipString Ljava/lang/String;
1 16 1 bytes [B
3 8 2 i I
9 14 2 i I
MethodParameters:
Name Flags
ipString
}
SourceFile: "InetAddresses.java"