public class org.jruby.ext.ffi.DataConverter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.ffi.DataConverter
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/ext/ffi/DataConverter;
public static org.jruby.RubyModule createDataConverterModule(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyModule;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "DataConverter"
invokevirtual org.jruby.RubyModule.defineModuleUnder:(Ljava/lang/String;)Lorg/jruby/RubyModule;
astore 2
start local 2 1: aload 2
ldc Lorg/jruby/ext/ffi/DataConverter;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
2: aload 2
ldc Lorg/jruby/ext/ffi/DataConverter;
invokevirtual org.jruby.RubyModule.defineAnnotatedConstants:(Ljava/lang/Class;)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
0 4 1 module Lorg/jruby/RubyModule;
1 4 2 result Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime
module
private static org.jruby.RubyModule module(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyModule;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.jruby.RubyModule
ifne 2
1: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
ldc "not a module"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
checkcast org.jruby.RubyModule
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
obj
public static org.jruby.runtime.builtin.IRubyObject native_type(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=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.jruby.ext.ffi.DataConverter.module:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyModule;
astore 3
start local 3 1: aload 2
arraylength
ifne 5
2: aload 3
ldc "native_type"
invokevirtual org.jruby.RubyModule.hasInternalVariable:(Ljava/lang/String;)Z
ifne 4
3: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "native_type method not overridden and no native_type set"
invokevirtual org.jruby.Ruby.newNotImplementedError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals: org.jruby.RubyModule
StackMap stack:
aload 3
ldc "native_type"
invokevirtual org.jruby.RubyModule.getInternalVariable:(Ljava/lang/String;)Ljava/lang/Object;
checkcast org.jruby.ext.ffi.Type
areturn
5: StackMap locals:
StackMap stack:
aload 2
arraylength
iconst_1
if_icmpne 9
6: aload 0
aload 2
iconst_0
aaload
invokestatic org.jruby.ext.ffi.Util.findType:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/ext/ffi/Type;
astore 4
start local 4 7: aload 3
ldc "native_type"
aload 4
invokevirtual org.jruby.RubyModule.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
8: aload 4
areturn
end local 4 9: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "incorrect arguments"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 context Lorg/jruby/runtime/ThreadContext;
0 10 1 self Lorg/jruby/runtime/builtin/IRubyObject;
0 10 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 10 3 m Lorg/jruby/RubyModule;
7 9 4 type Lorg/jruby/ext/ffi/Type;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"native_type"}, module = true, optional = 1)
MethodParameters:
Name Flags
context
self
args
public static org.jruby.runtime.builtin.IRubyObject to_native(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=1, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
areturn
end local 3 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 self Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 value Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 ctx Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"to_native"}, module = true)
MethodParameters:
Name Flags
context
self
value
ctx
public static org.jruby.runtime.builtin.IRubyObject from_native(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=1, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
areturn
end local 3 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 self Lorg/jruby/runtime/builtin/IRubyObject;
0 1 2 value Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 ctx Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"from_native"}, module = true)
MethodParameters:
Name Flags
context
self
value
ctx
public static org.jruby.runtime.builtin.IRubyObject reference_required_p(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=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.ext.ffi.DataConverter.module:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyModule;
ldc "reference_required"
invokevirtual org.jruby.RubyModule.getInternalVariable:(Ljava/lang/String;)Ljava/lang/Object;
astore 2
start local 2 1: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
instanceof org.jruby.runtime.builtin.IRubyObject
ifeq 2
aload 2
checkcast org.jruby.runtime.builtin.IRubyObject
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifne 2
iconst_0
goto 3
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject java.lang.Object
StackMap stack: org.jruby.Ruby
2: iconst_1
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject java.lang.Object
StackMap stack: org.jruby.Ruby int
3: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 self Lorg/jruby/runtime/builtin/IRubyObject;
1 4 2 ref Ljava/lang/Object;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"reference_required?"}, module = true)
MethodParameters:
Name Flags
context
self
public static org.jruby.runtime.builtin.IRubyObject reference_required(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=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.jruby.ext.ffi.DataConverter.module:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyModule;
ldc "reference_required"
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
arraylength
iconst_1
if_icmplt 1
aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifne 1
iconst_0
goto 2
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.RubyModule java.lang.String org.jruby.Ruby
1: iconst_1
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject[]
StackMap stack: org.jruby.RubyModule java.lang.String org.jruby.Ruby int
2: invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyModule.setInternalVariable:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 self Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"reference_required"}, module = true, optional = 1)
MethodParameters:
Name Flags
context
self
args
}
SourceFile: "DataConverter.java"