Top Fields Constructors Methods
org.jruby.ext.ffi.jffi

public Class JFFIInvoker

extends AbstractInvoker
Class Inheritance
Imports
com.kenai.jffi.CallingConvention, .Function, org.jruby.Ruby, .RubyArray, .RubyClass, .RubyHash, .RubyModule, org.jruby.anno.JRubyMethod, org.jruby.api.Access, org.jruby.ext.ffi.*, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private final CallingConvention
private final IRubyObject
private final Function
private final Type[]
private final Type
Inherited from org.jruby.ext.ffi.AbstractInvoker:
arity

Constructor Summary

AccessConstructor and Description
pack-priv
JFFIInvoker(Ruby runtime, long address, Type returnType, Type[] parameterTypes, CallingConvention convention)
Deprecated since 10.0.

pack-priv
JFFIInvoker(Ruby runtime, RubyClass klass, MemoryIO fptr, Type returnType, Type[] parameterTypes, CallingConvention convention, IRubyObject enums)

Method Summary

Modifier and TypeMethod and Description
public DynamicMethod
createDynamicMethod(RubyModule
for which module
module
)

Implements abstract org.jruby.ext.ffi.AbstractInvoker.createDynamicMethod.

Create a method

public static RubyClass
public static IRubyObject
Inherited from org.jruby.ext.ffi.AbstractInvoker:
attachcreateAbstractInvokerClassgetArity

Field Detail

conventionback to summary
private final CallingConvention convention
enumsback to summary
private final IRubyObject enums
functionback to summary
private final Function function
parameterTypesback to summary
private final Type[] parameterTypes
returnTypeback to summary
private final Type returnType

Constructor Detail

JFFIInvokerback to summary
pack-priv JFFIInvoker(Ruby runtime, long address, Type returnType, Type[] parameterTypes, CallingConvention convention)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
JFFIInvokerback to summary
pack-priv JFFIInvoker(Ruby runtime, RubyClass klass, MemoryIO fptr, Type returnType, Type[] parameterTypes, CallingConvention convention, IRubyObject enums)

Method Detail

createDynamicMethodback to summary
public DynamicMethod createDynamicMethod(RubyModule module)

Implements abstract org.jruby.ext.ffi.AbstractInvoker.createDynamicMethod.

Doc from org.jruby.ext.ffi.AbstractInvoker.createDynamicMethod.

Create a method

Parameters
module:RubyModule

for which module

Returns:DynamicMethod

a method

Annotations
@Override
createInvokerClassback to summary
public static RubyClass createInvokerClass(ThreadContext context, RubyModule FFI)
newInstanceback to summary
public static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args)
Annotations
@JRubyMethod
name:new
meta:true
required:4