public class org.jruby.javasupport.JavaArrayUtilities
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.javasupport.JavaArrayUtilities
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/javasupport/JavaArrayUtilities;
public static org.jruby.RubyModule createJavaArrayUtilitiesModule(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyModule;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "JavaArrayUtilities"
invokevirtual org.jruby.Ruby.defineModule:(Ljava/lang/String;)Lorg/jruby/RubyModule;
astore 1
start local 1 1: aload 1
ldc Lorg/jruby/javasupport/JavaArrayUtilities;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
1 3 1 javaArrayUtils Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime
public static org.jruby.runtime.builtin.IRubyObject bytes_to_ruby_string(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
invokestatic org.jruby.javasupport.JavaArrayUtilities.bytes_to_ruby_string:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 wrappedObject Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
wrappedObject
public static org.jruby.runtime.builtin.IRubyObject bytes_to_ruby_string(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 2
instanceof org.jruby.java.proxies.JavaProxy
ifeq 5
2: aload 2
checkcast org.jruby.java.proxies.JavaProxy
invokevirtual org.jruby.java.proxies.JavaProxy.getObject:()Ljava/lang/Object;
astore 5
start local 5 3: aload 5
instanceof byte[]
ifeq 9
aload 5
checkcast byte[]
astore 4
end local 5 4: goto 9
5: StackMap locals: byte[]
StackMap stack:
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.dataGetStruct:()Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
astore 5
start local 5 6: aload 5
instanceof org.jruby.javasupport.JavaArray
ifeq 9
7: aload 5
checkcast org.jruby.javasupport.JavaArray
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
astore 6
start local 6 8: aload 6
instanceof byte[]
ifeq 9
aload 6
checkcast byte[]
astore 4
end local 6 end local 5 9: StackMap locals:
StackMap stack:
aload 4
ifnonnull 13
10: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "wrong argument type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " (expected byte[])"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new org.jruby.util.ByteList
dup
aload 4
iconst_1
invokespecial org.jruby.util.ByteList.<init>:([BZ)V
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 5
start local 5 14: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 15
aload 5
aload 0
aload 3
invokevirtual org.jruby.RubyString.force_encoding:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
15: StackMap locals: org.jruby.RubyString
StackMap stack:
aload 5
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 16 0 context Lorg/jruby/runtime/ThreadContext;
0 16 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 16 2 wrappedObject Lorg/jruby/runtime/builtin/IRubyObject;
0 16 3 encoding Lorg/jruby/runtime/builtin/IRubyObject;
1 16 4 bytes [B
3 4 5 wrapped Ljava/lang/Object;
6 9 5 byteArray Lorg/jruby/runtime/builtin/IRubyObject;
8 9 6 wrapped Ljava/lang/Object;
14 16 5 string Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
recv
wrappedObject
encoding
public static org.jruby.runtime.builtin.IRubyObject ruby_string_to_bytes(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
instanceof org.jruby.RubyString
ifne 3
2: aload 2
aload 1
aload 2
invokevirtual org.jruby.Ruby.getString:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 2
aload 1
checkcast org.jruby.RubyString
invokevirtual org.jruby.RubyString.getBytes:()[B
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 4 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 4 1 string Lorg/jruby/runtime/builtin/IRubyObject;
1 4 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
recv
string
public static org.jruby.runtime.builtin.IRubyObject java_to_ruby(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.java.proxies.ArrayJavaProxy
ifne 2
1: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getJavaSupport:()Lorg/jruby/javasupport/JavaSupport;
invokevirtual org.jruby.javasupport.JavaSupport.getArrayProxyClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 2
checkcast org.jruby.java.proxies.ArrayJavaProxy
aload 0
invokevirtual org.jruby.java.proxies.ArrayJavaProxy.to_a:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyArray;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 recv Lorg/jruby/runtime/builtin/IRubyObject;
0 3 2 ary Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(module = true)
MethodParameters:
Name Flags
context
recv
ary
}
SourceFile: "JavaArrayUtilities.java"
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyModule(name = {"JavaArrayUtilities"})