class org.jruby.ext.socket.SocketUtils$1 implements org.jruby.ext.socket.SocketUtils$AddrinfoCallback
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.ext.socket.SocketUtils$1
super_class: java.lang.Object
{
private final org.jruby.Ruby val$runtime;
descriptor: Lorg/jruby/Ruby;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.jruby.runtime.ThreadContext val$context;
descriptor: Lorg/jruby/runtime/ThreadContext;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.util.List val$l;
descriptor: Ljava/util/List;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(org.jruby.Ruby, org.jruby.runtime.ThreadContext, java.util.List);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/ThreadContext;Ljava/util/List;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 0: aload 0
aload 1
putfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
aload 0
aload 2
putfield org.jruby.ext.socket.SocketUtils$1.val$context:Lorg/jruby/runtime/ThreadContext;
aload 0
aload 3
putfield org.jruby.ext.socket.SocketUtils$1.val$l:Ljava/util/List;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/socket/SocketUtils$1;
MethodParameters:
Name Flags
val$runtime final
val$context final
val$l final
public void addrinfo(java.net.InetAddress, int, jnr.constants.platform.Sock, java.lang.Boolean);
descriptor: (Ljava/net/InetAddress;ILjnr/constants/platform/Sock;Ljava/lang/Boolean;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
instanceof java.net.Inet6Address
istore 5
start local 5 1: iconst_1
istore 6
start local 6 2: iconst_1
istore 7
start local 7 3: aload 3
ifnull 9
4: aload 3
getstatic jnr.constants.platform.Sock.SOCK_STREAM:Ljnr/constants/platform/Sock;
if_acmpne 7
5: iconst_0
istore 7
6: goto 9
StackMap locals: int int int
StackMap stack:
7: aload 3
getstatic jnr.constants.platform.Sock.SOCK_DGRAM:Ljnr/constants/platform/Sock;
if_acmpne 9
8: iconst_0
istore 6
9: StackMap locals:
StackMap stack:
iload 7
ifeq 23
10: bipush 7
anewarray org.jruby.runtime.builtin.IRubyObject
astore 8
start local 8 11: aload 8
iconst_0
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
iload 5
ifeq 12
ldc "AF_INET6"
goto 13
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby
12: ldc "AF_INET"
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby java.lang.String
13: invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
14: aload 8
iconst_1
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
iload 2
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
aastore
15: aload 8
iconst_2
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$context:Lorg/jruby/runtime/ThreadContext;
aload 1
aload 4
invokestatic org.jruby.ext.socket.SocketUtils.getHostAddress:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetAddress;Ljava/lang/Boolean;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
16: aload 8
iconst_3
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
17: aload 8
iconst_4
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
iload 5
ifeq 18
getstatic jnr.constants.platform.ProtocolFamily.PF_INET6:Ljnr/constants/platform/ProtocolFamily;
goto 19
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby
18: getstatic jnr.constants.platform.ProtocolFamily.PF_INET:Ljnr/constants/platform/ProtocolFamily;
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby jnr.constants.platform.ProtocolFamily
19: invokevirtual org.jruby.Ruby.newFixnum:(Ljnr/constants/Constant;)Lorg/jruby/RubyFixnum;
aastore
20: aload 8
iconst_5
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
getstatic jnr.constants.platform.Sock.SOCK_DGRAM:Ljnr/constants/platform/Sock;
invokevirtual org.jruby.Ruby.newFixnum:(Ljnr/constants/Constant;)Lorg/jruby/RubyFixnum;
aastore
21: aload 8
bipush 6
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
getstatic jnr.constants.platform.IPProto.IPPROTO_UDP:Ljnr/constants/platform/IPProto;
invokevirtual org.jruby.Ruby.newFixnum:(Ljnr/constants/Constant;)Lorg/jruby/RubyFixnum;
aastore
22: aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$l:Ljava/util/List;
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
aload 8
invokestatic org.jruby.RubyArray.newArrayMayCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 23: StackMap locals:
StackMap stack:
iload 6
ifeq 37
24: bipush 7
anewarray org.jruby.runtime.builtin.IRubyObject
astore 8
start local 8 25: aload 8
iconst_0
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
iload 5
ifeq 26
ldc "AF_INET6"
goto 27
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby
26: ldc "AF_INET"
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby java.lang.String
27: invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
28: aload 8
iconst_1
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
iload 2
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
aastore
29: aload 8
iconst_2
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$context:Lorg/jruby/runtime/ThreadContext;
aload 1
aload 4
invokestatic org.jruby.ext.socket.SocketUtils.getHostAddress:(Lorg/jruby/runtime/ThreadContext;Ljava/net/InetAddress;Ljava/lang/Boolean;)Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
30: aload 8
iconst_3
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
aload 1
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aastore
31: aload 8
iconst_4
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
iload 5
ifeq 32
getstatic jnr.constants.platform.ProtocolFamily.PF_INET6:Ljnr/constants/platform/ProtocolFamily;
goto 33
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby
32: getstatic jnr.constants.platform.ProtocolFamily.PF_INET:Ljnr/constants/platform/ProtocolFamily;
StackMap locals: org.jruby.ext.socket.SocketUtils$1 java.net.InetAddress int jnr.constants.platform.Sock java.lang.Boolean int int int org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.runtime.builtin.IRubyObject[] int org.jruby.Ruby jnr.constants.platform.ProtocolFamily
33: invokevirtual org.jruby.Ruby.newFixnum:(Ljnr/constants/Constant;)Lorg/jruby/RubyFixnum;
aastore
34: aload 8
iconst_5
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
getstatic jnr.constants.platform.Sock.SOCK_STREAM:Ljnr/constants/platform/Sock;
invokevirtual org.jruby.Ruby.newFixnum:(Ljnr/constants/Constant;)Lorg/jruby/RubyFixnum;
aastore
35: aload 8
bipush 6
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
getstatic jnr.constants.platform.IPProto.IPPROTO_TCP:Ljnr/constants/platform/IPProto;
invokevirtual org.jruby.Ruby.newFixnum:(Ljnr/constants/Constant;)Lorg/jruby/RubyFixnum;
aastore
36: aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$l:Ljava/util/List;
aload 0
getfield org.jruby.ext.socket.SocketUtils$1.val$runtime:Lorg/jruby/Ruby;
aload 8
invokestatic org.jruby.RubyArray.newArrayMayCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 37: StackMap locals:
StackMap stack:
return
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 38 0 this Lorg/jruby/ext/socket/SocketUtils$1;
0 38 1 address Ljava/net/InetAddress;
0 38 2 port I
0 38 3 sock Ljnr/constants/platform/Sock;
0 38 4 reverse Ljava/lang/Boolean;
1 38 5 is_ipv6 Z
2 38 6 sock_stream Z
3 38 7 sock_dgram Z
11 23 8 c [Lorg/jruby/runtime/builtin/IRubyObject;
25 37 8 c [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
address
port
sock
reverse
}
SourceFile: "SocketUtils.java"
EnclosingMethod: org.jruby.ext.socket.SocketUtils.getaddrinfo:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
NestHost: org.jruby.ext.socket.SocketUtils
InnerClasses:
org.jruby.ext.socket.SocketUtils$1
abstract AddrinfoCallback = org.jruby.ext.socket.SocketUtils$AddrinfoCallback of org.jruby.ext.socket.SocketUtils