public class java.net.InetSocketAddress extends java.net.SocketAddress
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.net.InetSocketAddress
super_class: java.net.SocketAddress
{
private final transient java.net.InetSocketAddress$InetSocketAddressHolder holder;
descriptor: Ljava/net/InetSocketAddress$InetSocketAddressHolder;
flags: (0x0092) ACC_PRIVATE, ACC_FINAL, ACC_TRANSIENT
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5076001401234631237
private static final java.io.ObjectStreamField[] serialPersistentFields;
descriptor: [Ljava/io/ObjectStreamField;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.misc.Unsafe UNSAFE;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long FIELDS_OFFSET;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: iconst_3
anewarray java.io.ObjectStreamField
dup
iconst_0
1: new java.io.ObjectStreamField
dup
ldc "hostname"
ldc Ljava/lang/String;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
dup
iconst_1
2: new java.io.ObjectStreamField
dup
ldc "addr"
ldc Ljava/net/InetAddress;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
dup
iconst_2
3: new java.io.ObjectStreamField
dup
ldc "port"
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
invokespecial java.io.ObjectStreamField.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
aastore
4: putstatic java.net.InetSocketAddress.serialPersistentFields:[Ljava/io/ObjectStreamField;
5: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
6: putstatic java.net.InetSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
7: getstatic java.net.InetSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
ldc Ljava/net/InetSocketAddress;
ldc "holder"
invokevirtual jdk.internal.misc.Unsafe.objectFieldOffset:(Ljava/lang/Class;Ljava/lang/String;)J
8: putstatic java.net.InetSocketAddress.FIELDS_OFFSET:J
9: return
LocalVariableTable:
Start End Slot Name Signature
private static int checkPort(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iload 0
iflt 1
iload 0
ldc 65535
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "port out of range:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 port I
MethodParameters:
Name Flags
port
private static java.lang.String checkHost(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "hostname can't be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 hostname Ljava/lang/String;
MethodParameters:
Name Flags
hostname
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.net.InetAddress.anyLocalAddress:()Ljava/net/InetAddress;
iload 1
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/net/InetSocketAddress;
0 2 1 port I
MethodParameters:
Name Flags
port
public void <init>(java.net.InetAddress, int);
descriptor: (Ljava/net/InetAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.net.SocketAddress.<init>:()V
1: aload 0
2: new java.net.InetSocketAddress$InetSocketAddressHolder
dup
3: aconst_null
4: aload 1
ifnonnull 5
invokestatic java.net.InetAddress.anyLocalAddress:()Ljava/net/InetAddress;
goto 6
StackMap locals: java.net.InetSocketAddress java.net.InetAddress int
StackMap stack: java.net.InetSocketAddress new 2 new 2 null
5: aload 1
6: StackMap locals: java.net.InetSocketAddress java.net.InetAddress int
StackMap stack: java.net.InetSocketAddress new 2 new 2 null java.net.InetAddress
iload 2
invokestatic java.net.InetSocketAddress.checkPort:(I)I
invokespecial java.net.InetSocketAddress$InetSocketAddressHolder.<init>:(Ljava/lang/String;Ljava/net/InetAddress;I)V
7: putfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/net/InetSocketAddress;
0 9 1 addr Ljava/net/InetAddress;
0 9 2 port I
MethodParameters:
Name Flags
addr
port
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.net.SocketAddress.<init>:()V
1: aload 1
invokestatic java.net.InetSocketAddress.checkHost:(Ljava/lang/String;)Ljava/lang/String;
pop
2: aconst_null
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: aload 1
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 3
5: goto 8
StackMap locals: java.net.InetSocketAddress java.lang.String int java.net.InetAddress java.lang.String
StackMap stack: java.net.UnknownHostException
6: pop
7: aload 1
astore 4
8: StackMap locals:
StackMap stack:
aload 0
new java.net.InetSocketAddress$InetSocketAddressHolder
dup
aload 4
aload 3
iload 2
invokestatic java.net.InetSocketAddress.checkPort:(I)I
invokespecial java.net.InetSocketAddress$InetSocketAddressHolder.<init>:(Ljava/lang/String;Ljava/net/InetAddress;I)V
putfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/net/InetSocketAddress;
0 10 1 hostname Ljava/lang/String;
0 10 2 port I
3 10 3 addr Ljava/net/InetAddress;
4 10 4 host Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.net.UnknownHostException
MethodParameters:
Name Flags
hostname
port
private void <init>(int, java.lang.String);
descriptor: (ILjava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.net.SocketAddress.<init>:()V
1: aload 0
new java.net.InetSocketAddress$InetSocketAddressHolder
dup
aload 2
aconst_null
iload 1
invokespecial java.net.InetSocketAddress$InetSocketAddressHolder.<init>:(Ljava/lang/String;Ljava/net/InetAddress;I)V
putfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/net/InetSocketAddress;
0 3 1 port I
0 3 2 hostname Ljava/lang/String;
MethodParameters:
Name Flags
port
hostname
public static java.net.InetSocketAddress createUnresolved(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/net/InetSocketAddress;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new java.net.InetSocketAddress
dup
iload 1
invokestatic java.net.InetSocketAddress.checkPort:(I)I
aload 0
invokestatic java.net.InetSocketAddress.checkHost:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.net.InetSocketAddress.<init>:(ILjava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 host Ljava/lang/String;
0 1 1 port I
MethodParameters:
Name Flags
host
port
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectOutputStream.putFields:()Ljava/io/ObjectOutputStream$PutField;
astore 2
start local 2 1: aload 2
ldc "hostname"
aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
getfield java.net.InetSocketAddress$InetSocketAddressHolder.hostname:Ljava/lang/String;
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;Ljava/lang/Object;)V
2: aload 2
ldc "addr"
aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
getfield java.net.InetSocketAddress$InetSocketAddressHolder.addr:Ljava/net/InetAddress;
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 2
ldc "port"
aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
getfield java.net.InetSocketAddress$InetSocketAddressHolder.port:I
invokevirtual java.io.ObjectOutputStream$PutField.put:(Ljava/lang/String;I)V
4: aload 1
invokevirtual java.io.ObjectOutputStream.writeFields:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/net/InetSocketAddress;
0 6 1 out Ljava/io/ObjectOutputStream;
1 6 2 pfields Ljava/io/ObjectOutputStream$PutField;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.readFields:()Ljava/io/ObjectInputStream$GetField;
astore 2
start local 2 1: aload 2
ldc "hostname"
aconst_null
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 2
ldc "addr"
aconst_null
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 3: aload 2
ldc "port"
iconst_m1
invokevirtual java.io.ObjectInputStream$GetField.get:(Ljava/lang/String;I)I
istore 5
start local 5 4: iload 5
invokestatic java.net.InetSocketAddress.checkPort:(I)I
pop
5: aload 3
ifnonnull 7
aload 4
ifnonnull 7
6: new java.io.InvalidObjectException
dup
ldc "hostname and addr can't both be null"
invokespecial java.io.InvalidObjectException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.net.InetSocketAddress java.io.ObjectInputStream java.io.ObjectInputStream$GetField java.lang.String java.net.InetAddress int
StackMap stack:
new java.net.InetSocketAddress$InetSocketAddressHolder
dup
aload 3
8: aload 4
9: iload 5
10: invokespecial java.net.InetSocketAddress$InetSocketAddressHolder.<init>:(Ljava/lang/String;Ljava/net/InetAddress;I)V
astore 6
start local 6 11: getstatic java.net.InetSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getstatic java.net.InetSocketAddress.FIELDS_OFFSET:J
aload 6
invokevirtual jdk.internal.misc.Unsafe.putReference:(Ljava/lang/Object;JLjava/lang/Object;)V
12: return
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 13 0 this Ljava/net/InetSocketAddress;
0 13 1 in Ljava/io/ObjectInputStream;
1 13 2 oisFields Ljava/io/ObjectInputStream$GetField;
2 13 3 oisHostname Ljava/lang/String;
3 13 4 oisAddr Ljava/net/InetAddress;
4 13 5 oisPort I
11 13 6 h Ljava/net/InetSocketAddress$InetSocketAddressHolder;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
in
private void readObjectNoData();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.InvalidObjectException
dup
ldc "Stream data required"
invokespecial java.io.InvalidObjectException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
Exceptions:
throws java.io.ObjectStreamException
public final int getPort();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.getPort:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
public final java.net.InetAddress getAddress();
descriptor: ()Ljava/net/InetAddress;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.getAddress:()Ljava/net/InetAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
public final java.lang.String getHostName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.getHostName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
public final java.lang.String getHostString();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.getHostString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
public final boolean isUnresolved();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.isUnresolved:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
public final boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
instanceof java.net.InetSocketAddress
ifne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
aload 1
checkcast java.net.InetSocketAddress
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/net/InetSocketAddress;
0 3 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public final int hashCode();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.net.InetSocketAddress.holder:Ljava/net/InetSocketAddress$InetSocketAddressHolder;
invokevirtual java.net.InetSocketAddress$InetSocketAddressHolder.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/net/InetSocketAddress;
}
SourceFile: "InetSocketAddress.java"
NestMembers:
java.net.InetSocketAddress$InetSocketAddressHolder
InnerClasses:
public abstract GetField = java.io.ObjectInputStream$GetField of java.io.ObjectInputStream
public abstract PutField = java.io.ObjectOutputStream$PutField of java.io.ObjectOutputStream
private InetSocketAddressHolder = java.net.InetSocketAddress$InetSocketAddressHolder of java.net.InetSocketAddress