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

public final Class DefaultMethodFactory

extends MethodFactory
Class Inheritance
Imports
com.kenai.jffi.CallingConvention, .Function, .HeapInvocationBuffer, .InvocationBuffer, .Invoker, .ArrayFlags, org.jruby.RubyHash, .RubyModule, .RubyNumeric, .RubyString, org.jruby.ext.ffi.AbstractMemory, .ArrayMemoryIO, .Buffer, .CallbackInfo, .Enums, .MappedType, .MemoryIO, .MemoryPointer, .NativeType, .Platform, .Struct, .StructByValue, .StructLayout, .Type, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class
private static class
DefaultMethodFactory.BooleanInvoker

Invokes the native function with a boolean return value.

pack-priv static class
DefaultMethodFactory.BooleanMarshaller

Converts a ruby Boolean into an 32 bit native integer.

pack-priv static class
DefaultMethodFactory.BufferMarshaller

Converts a ruby Buffer into a native address.

private static class
DefaultMethodFactory.ConvertingInvoker

Invokes the native function, then passes the return value off to a conversion method to massage it to a custom ruby type.

pack-priv static class
private static class
DefaultMethodFactory.Float128Invoker

Invokes the native function with a 128 bit float return value.

pack-priv static class
DefaultMethodFactory.Float128Marshaller

Converts a ruby Float into a 128 bit native float.

private static class
DefaultMethodFactory.Float32Invoker

Invokes the native function with a 32 bit float return value.

pack-priv static class
DefaultMethodFactory.Float32Marshaller

Converts a ruby Float into a 32 bit native float.

private static class
DefaultMethodFactory.Float64Invoker

Invokes the native function with a 64 bit float return value.

pack-priv static class
DefaultMethodFactory.Float64Marshaller

Converts a ruby Float into a 64 bit native float.

pack-priv abstract static class
private static class
DefaultMethodFactory.Pointer32Invoker

Invokes the native function with a native pointer return value.

private static class
DefaultMethodFactory.Pointer64Invoker

Invokes the native function with a native pointer return value.

pack-priv abstract static class
private static class
DefaultMethodFactory.Signed16Invoker

Invokes the native function with n signed 8 bit integer return value.

pack-priv static class
DefaultMethodFactory.Signed16Marshaller

Converts a ruby Fixnum into a 16 bit native signed integer.

private static class
DefaultMethodFactory.Signed32Invoker

Invokes the native function with a 32 bit integer return value.

pack-priv static class
DefaultMethodFactory.Signed32Marshaller

Converts a ruby Fixnum into a 32 bit native signed integer.

private static class
DefaultMethodFactory.Signed64Invoker

Invokes the native function with a 64 bit integer return value.

pack-priv static class
DefaultMethodFactory.Signed64Marshaller

Converts a ruby Fixnum into a 64 bit native signed integer.

private static class
DefaultMethodFactory.Signed8Invoker

Invokes the native function with n signed 8 bit integer return value.

pack-priv static class
DefaultMethodFactory.Signed8Marshaller

Converts a ruby Fixnum into an 8 bit native integer.

private static class
private static class
DefaultMethodFactory.StringInvoker

Invokes the native function with a native string return value.

pack-priv static class
DefaultMethodFactory.StringMarshaller

Converts a ruby String into a native pointer.

private static class
DefaultMethodFactory.StructByValueInvoker

Invokes the native function with a native struct return value.

pack-priv static class
DefaultMethodFactory.StructByValueMarshaller

Converts a ruby String into a native pointer.

private static class
DefaultMethodFactory.Unsigned16Invoker

Invokes the native function with an unsigned 32 bit integer return value.

pack-priv static class
DefaultMethodFactory.Unsigned16Marshaller

Converts a ruby Fixnum into a 16 bit native unsigned integer.

private static class
DefaultMethodFactory.Unsigned32Invoker

Invokes the native function with an unsigned 32 bit integer return value.

pack-priv static class
DefaultMethodFactory.Unsigned32Marshaller

Converts a ruby Fixnum into a 32 bit native unsigned integer.

private static class
DefaultMethodFactory.Unsigned64Invoker

Invokes the native function with a 64 bit unsigned integer return value.

pack-priv static class
DefaultMethodFactory.Unsigned64Marshaller

Converts a ruby Fixnum into a 64 bit native unsigned integer.

private static class
DefaultMethodFactory.Unsigned8Invoker

Invokes the native function with an unsigned 8 bit integer return value.

pack-priv static class
DefaultMethodFactory.Unsigned8Marshaller

Converts a ruby Fixnum into an 8 bit native unsigned integer.

private static class
DefaultMethodFactory.VoidInvoker

Invokes the native function with no return type, and returns nil to ruby.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv DynamicMethod
createMethod(RubyModule module, Function function, Type returnType, Type[] parameterTypes, CallingConvention convention, IRubyObject enums, boolean ignoreError)

Implements abstract org.jruby.ext.ffi.jffi.MethodFactory.createMethod.

pack-priv static ParameterMarshaller

Returns:

A new ParameterMarshaller
getEnumMarshaller
(Type
The native type to convert to.
type
,
CallingConvention convention, IRubyObject
The enum map
enums
)

Gets a marshaller to convert from a ruby type to a native type.

public static DefaultMethodFactory
pack-priv static FunctionInvoker
pack-priv static FunctionInvoker
pack-priv static ParameterMarshaller

Returns:

A new Marshaller
getMarshaller
(Type
The native type to convert to.
type
,
CallingConvention convention, IRubyObject enums)

Gets a marshaller to convert from a ruby type to a native type.

pack-priv static ParameterMarshaller

Returns:

A new ParameterMarshaller
getMarshaller
(NativeType
The native type to convert to.
type
)

Gets a marshaller to convert from a ruby type to a native type.

pack-priv boolean
isSupported(Type returnType, Type[] parameterTypes, CallingConvention convention)

Implements abstract org.jruby.ext.ffi.jffi.MethodFactory.isSupported.

private static ParameterMarshaller
Inherited from org.jruby.ext.ffi.jffi.MethodFactory:
createDynamicMethod