public abstract class org.jruby.ext.ffi.AbstractInvoker extends org.jruby.ext.ffi.Pointer
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.ext.ffi.AbstractInvoker
super_class: org.jruby.ext.ffi.Pointer
{
static final java.lang.String CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "AbstractInvoker"
protected final org.jruby.runtime.Arity arity;
descriptor: Lorg/jruby/runtime/Arity;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public static org.jruby.RubyClass createAbstractInvokerClass(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "AbstractInvoker"
1: aload 1
ldc "Pointer"
invokevirtual org.jruby.RubyModule.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
2: getstatic org.jruby.runtime.ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
3: invokevirtual org.jruby.RubyModule.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 2
start local 2 4: aload 2
ldc Lorg/jruby/ext/ffi/AbstractInvoker;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
5: aload 2
ldc Lorg/jruby/ext/ffi/AbstractInvoker;
invokevirtual org.jruby.RubyClass.defineAnnotatedConstants:(Ljava/lang/Class;)V
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
0 7 1 module Lorg/jruby/RubyModule;
4 7 2 result Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
module
protected void <init>(org.jruby.Ruby, org.jruby.RubyClass, int, org.jruby.ext.ffi.MemoryIO);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;ILorg/jruby/ext/ffi/MemoryIO;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 4
lconst_0
invokespecial org.jruby.ext.ffi.Pointer.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/ext/ffi/MemoryIO;J)V
1: aload 0
iload 3
invokestatic org.jruby.runtime.Arity.fixed:(I)Lorg/jruby/runtime/Arity;
putfield org.jruby.ext.ffi.AbstractInvoker.arity:Lorg/jruby/runtime/Arity;
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/AbstractInvoker;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 klass Lorg/jruby/RubyClass;
0 3 3 arity I
0 3 4 io Lorg/jruby/ext/ffi/MemoryIO;
MethodParameters:
Name Flags
runtime
klass
arity
io
public org.jruby.runtime.builtin.IRubyObject attach(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: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getSingletonClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.ext.ffi.AbstractInvoker.createDynamicMethod:(Lorg/jruby/RubyModule;)Lorg/jruby/internal/runtime/methods/DynamicMethod;
astore 4
start local 4 1: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getSingletonClass:()Lorg/jruby/RubyClass;
aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.asJavaString:()Ljava/lang/String;
aload 4
invokevirtual org.jruby.RubyClass.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
2: aload 2
instanceof org.jruby.RubyModule
ifeq 4
3: aload 2
checkcast org.jruby.RubyModule
aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.asJavaString:()Ljava/lang/String;
aload 4
invokevirtual org.jruby.RubyModule.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
4: StackMap locals: org.jruby.internal.runtime.methods.DynamicMethod
StackMap stack:
aload 0
invokevirtual org.jruby.ext.ffi.AbstractInvoker.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFFI:()Lorg/jruby/ext/ffi/FFI;
aload 4
aload 0
invokevirtual org.jruby.ext.ffi.FFI.registerAttachedMethod:(Lorg/jruby/internal/runtime/methods/DynamicMethod;Lorg/jruby/ext/ffi/AbstractInvoker;)V
5: aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/ffi/AbstractInvoker;
0 6 1 context Lorg/jruby/runtime/ThreadContext;
0 6 2 obj Lorg/jruby/runtime/builtin/IRubyObject;
0 6 3 methodName Lorg/jruby/runtime/builtin/IRubyObject;
1 6 4 m Lorg/jruby/internal/runtime/methods/DynamicMethod;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"attach"})
MethodParameters:
Name Flags
context
obj
methodName
protected abstract org.jruby.internal.runtime.methods.DynamicMethod createDynamicMethod(org.jruby.RubyModule);
descriptor: (Lorg/jruby/RubyModule;)Lorg/jruby/internal/runtime/methods/DynamicMethod;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
module
public final org.jruby.runtime.Arity getArity();
descriptor: ()Lorg/jruby/runtime/Arity;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.ffi.AbstractInvoker.arity:Lorg/jruby/runtime/Arity;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/AbstractInvoker;
}
SourceFile: "AbstractInvoker.java"
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"FFI::AbstractInvoker"}, parent = "Object")