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

public Class VariadicInvoker

extends RubyObject
Class Inheritance
Annotations
@JRubyClass
name:FFI::VariadicInvoker
parent:Object
Imports
com.kenai.jffi.CallingConvention, .Function, .HeapInvocationBuffer, org.jruby.Ruby, .RubyArray, .RubyHash, .RubyClass, .RubyModule, .RubyObject, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.api.Convert, .Create, org.jruby.ext.ffi.Enums, .NativeType, .Pointer, .Type, org.jruby.runtime.Arity, .ObjectAllocator, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Field Summary

Modifier and TypeField and Description
private final Pointer
private final CallingConvention
private final IRubyObject
private final int
private final FunctionInvoker
private static final Locale
private final Type
private final boolean
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
private
VariadicInvoker(Ruby runtime, IRubyObject klazz, Pointer address, FunctionInvoker functionInvoker, Type returnType, int fixedParamCount, CallingConvention convention, IRubyObject enums, boolean saveError)

Method Summary

Modifier and TypeMethod and Description
public static RubyClass
public final Arity

Returns:

The Arity of the native function.
getArity
()

Returns the org.jruby.runtime.Arity of this function.

public IRubyObject
invoke(ThreadContext context, IRubyObject typesArg, IRubyObject paramsArg)

public static VariadicInvoker
Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

addressback to summary
private final Pointer address
conventionback to summary
private final CallingConvention convention
enumsback to summary
private final IRubyObject enums
fixedParamCountback to summary
private final int fixedParamCount
functionInvokerback to summary
private final FunctionInvoker functionInvoker
LOCALEback to summary
private static final Locale LOCALE
returnTypeback to summary
private final Type returnType
saveErrorback to summary
private final boolean saveError

Constructor Detail

VariadicInvokerback to summary
private VariadicInvoker(Ruby runtime, IRubyObject klazz, Pointer address, FunctionInvoker functionInvoker, Type returnType, int fixedParamCount, CallingConvention convention, IRubyObject enums, boolean saveError)

Method Detail

createVariadicInvokerClassback to summary
public static RubyClass createVariadicInvokerClass(ThreadContext context, RubyModule FFI, RubyClass Object)
getArityback to summary
public final Arity getArity()

Returns the org.jruby.runtime.Arity of this function.

Returns:Arity

The Arity of the native function.

invokeback to summary
public IRubyObject invoke(ThreadContext context, IRubyObject typesArg, IRubyObject paramsArg)
Annotations
@JRubyMethod
name:invoke
newInstanceback to summary
public static VariadicInvoker newInstance(ThreadContext context, IRubyObject klass, IRubyObject[] args)
Annotations
@JRubyMethod
name:new
meta:true
required:4