public class org.jruby.java.addons.IOJavaAddons$AnyIO
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.java.addons.IOJavaAddons$AnyIO
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/java/addons/IOJavaAddons$AnyIO;
public static org.jruby.runtime.builtin.IRubyObject any_to_inputstream(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new org.jruby.util.IOInputStream
dup
aload 1
invokespecial org.jruby.util.IOInputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;)V
invokestatic org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject:(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 self Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_input_stream", "to_inputstream"})
MethodParameters:
Name Flags
context
self
public static org.jruby.runtime.builtin.IRubyObject any_to_outputstream(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new org.jruby.util.IOOutputStream
dup
aload 1
invokespecial org.jruby.util.IOOutputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;)V
invokestatic org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject:(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 self Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_output_stream", "to_outputstream"})
MethodParameters:
Name Flags
context
self
public static org.jruby.runtime.builtin.IRubyObject any_to_channel(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "read"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 6
1: aload 1
ldc "write"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifne 2
aload 1
ldc "<<"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 4
2: StackMap locals:
StackMap stack:
new org.jruby.util.IOChannel$IOReadableWritableByteChannel
dup
aload 1
invokespecial org.jruby.util.IOChannel$IOReadableWritableByteChannel.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;)V
astore 2
start local 2 3: goto 10
end local 2 4: StackMap locals:
StackMap stack:
new org.jruby.util.IOChannel$IOReadableByteChannel
dup
aload 1
invokespecial org.jruby.util.IOChannel$IOReadableByteChannel.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;)V
astore 2
start local 2 5: goto 10
end local 2 6: StackMap locals:
StackMap stack:
aload 1
ldc "write"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifne 7
aload 1
ldc "<<"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 9
7: StackMap locals:
StackMap stack:
new org.jruby.util.IOChannel$IOWritableByteChannel
dup
aload 1
invokespecial org.jruby.util.IOChannel$IOWritableByteChannel.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;)V
astore 2
start local 2 8: goto 10
end local 2 9: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.inspect:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " does not respond to any of read, write, or <<"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
start local 2 10: StackMap locals: org.jruby.util.IOChannel
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.javasupport.JavaUtil.convertJavaToUsableRubyObject:(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 context Lorg/jruby/runtime/ThreadContext;
0 11 1 self Lorg/jruby/runtime/builtin/IRubyObject;
3 4 2 channel Lorg/jruby/util/IOChannel;
5 6 2 channel Lorg/jruby/util/IOChannel;
8 9 2 channel Lorg/jruby/util/IOChannel;
10 11 2 channel Lorg/jruby/util/IOChannel;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_channel"})
MethodParameters:
Name Flags
context
self
}
SourceFile: "IOJavaAddons.java"
NestHost: org.jruby.java.addons.IOJavaAddons
InnerClasses:
public AnyIO = org.jruby.java.addons.IOJavaAddons$AnyIO of org.jruby.java.addons.IOJavaAddons
public IOReadableByteChannel = org.jruby.util.IOChannel$IOReadableByteChannel of org.jruby.util.IOChannel
public IOReadableWritableByteChannel = org.jruby.util.IOChannel$IOReadableWritableByteChannel of org.jruby.util.IOChannel
public IOWritableByteChannel = org.jruby.util.IOChannel$IOWritableByteChannel of org.jruby.util.IOChannel