final class org.jruby.javasupport.ext.JavaNet$URLOpenMethod extends org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.javasupport.ext.JavaNet$URLOpenMethod
super_class: org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock
{
void <init>(org.jruby.RubyModule);
descriptor: (Lorg/jruby/RubyModule;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.jruby.runtime.Visibility.PUBLIC:Lorg/jruby/runtime/Visibility;
ldc "open"
invokespecial org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock.<init>:(Lorg/jruby/RubyModule;Lorg/jruby/runtime/Visibility;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/javasupport/ext/JavaNet$URLOpenMethod;
0 2 1 implClass Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
implClass
public org.jruby.runtime.builtin.IRubyObject call(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyModule, java.lang.String, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 2
invokestatic org.jruby.javasupport.JavaUtil.unwrapIfJavaObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object;
checkcast java.net.URL
astore 6
start local 6 1: aload 6
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 7
start local 7 2: aload 1
aload 7
aconst_null
invokestatic org.jruby.javasupport.ext.JavaIo.to_io:(Lorg/jruby/runtime/ThreadContext;Ljava/io/InputStream;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyIO;
astore 8
start local 8 3: aload 5
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 12
4: aload 5
aload 1
aload 8
invokevirtual org.jruby.runtime.Block.yield:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 10
5: aload 7
invokevirtual java.io.InputStream.close:()V
6: aload 10
areturn
7: StackMap locals: org.jruby.javasupport.ext.JavaNet$URLOpenMethod org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.RubyModule java.lang.String org.jruby.runtime.Block java.net.URL java.io.InputStream org.jruby.RubyIO
StackMap stack: java.lang.Throwable
astore 9
8: aload 7
invokevirtual java.io.InputStream.close:()V
9: aload 9
athrow
end local 8 end local 7 10: StackMap locals: org.jruby.javasupport.ext.JavaNet$URLOpenMethod org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.RubyModule java.lang.String org.jruby.runtime.Block java.net.URL
StackMap stack: java.io.IOException
astore 9
start local 9 11: aload 9
invokestatic org.jruby.runtime.Helpers.throwException:(Ljava/lang/Throwable;)V
aconst_null
areturn
end local 9 start local 7 start local 8 12: StackMap locals: java.io.InputStream org.jruby.RubyIO
StackMap stack:
aload 8
areturn
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 13 0 this Lorg/jruby/javasupport/ext/JavaNet$URLOpenMethod;
0 13 1 context Lorg/jruby/runtime/ThreadContext;
0 13 2 self Lorg/jruby/runtime/builtin/IRubyObject;
0 13 3 clazz Lorg/jruby/RubyModule;
0 13 4 name Ljava/lang/String;
0 13 5 block Lorg/jruby/runtime/Block;
1 13 6 url Ljava/net/URL;
2 10 7 stream Ljava/io/InputStream;
12 13 7 stream Ljava/io/InputStream;
3 10 8 io Lorg/jruby/RubyIO;
12 13 8 io Lorg/jruby/RubyIO;
11 12 9 e Ljava/io/IOException;
Exception table:
from to target type
4 5 7 any
1 6 10 Class java.io.IOException
7 10 10 Class java.io.IOException
MethodParameters:
Name Flags
context
self
clazz
name
block
public org.jruby.runtime.builtin.IRubyObject call(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyModule, java.lang.String, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
aload 3
aload 4
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.javasupport.ext.JavaNet$URLOpenMethod.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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 1 0 this Lorg/jruby/javasupport/ext/JavaNet$URLOpenMethod;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 self Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 clazz Lorg/jruby/RubyModule;
0 1 4 name Ljava/lang/String;
0 1 5 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
self
clazz
name
args
public org.jruby.runtime.builtin.IRubyObject call(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyModule, java.lang.String, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
aload 2
aload 3
aload 4
aload 6
invokevirtual org.jruby.javasupport.ext.JavaNet$URLOpenMethod.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
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 1 0 this Lorg/jruby/javasupport/ext/JavaNet$URLOpenMethod;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 self Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 clazz Lorg/jruby/RubyModule;
0 1 4 name Ljava/lang/String;
0 1 5 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 1 6 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
self
clazz
name
args
block
}
SourceFile: "JavaNet.java"
NestHost: org.jruby.javasupport.ext.JavaNet
InnerClasses:
public abstract JavaMethodZeroOrNBlock = org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrNBlock of org.jruby.internal.runtime.methods.JavaMethod
private final URLOpenMethod = org.jruby.javasupport.ext.JavaNet$URLOpenMethod of org.jruby.javasupport.ext.JavaNet