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

public Class DataConverters

extends Object
Class Inheritance
Imports
com.kenai.jffi.CallingConvention, org.jruby.*, org.jruby.api.Access, org.jruby.ext.ffi.*, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.callsite.CachingCallSite, .FunctionalCachingCallSite, org.jruby.util.WeakIdentityHashMap, java.util.Collections, .IdentityHashMap, .Map

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static final Map<IRubyObject, NativeDataConverter>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static NativeDataConverter
pack-priv static NativeDataConverter
getParameterConverter(Type type, RubyHash enums)
Deprecated

pack-priv static NativeDataConverter
pack-priv static NativeDataConverter
pack-priv static boolean
isEnumConversionRequired(Type type, RubyHash enums)
Deprecated

pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

enumConvertersback to summary
private static final Map<IRubyObject, NativeDataConverter> enumConverters
Annotations
@SuppressWarnings:unchecked

Constructor Detail

DataConvertersback to summary
public DataConverters()

Method Detail

getParameterConverterback to summary
pack-priv static NativeDataConverter getParameterConverter(Type type)
getParameterConverterback to summary
pack-priv static NativeDataConverter getParameterConverter(Type type, RubyHash enums)

Deprecated

Annotations
@Deprecated
getParameterConverterback to summary
pack-priv static NativeDataConverter getParameterConverter(Type type, Enums enums)
getResultConverterback to summary
pack-priv static NativeDataConverter getResultConverter(Type type)
isEnumConversionRequiredback to summary
pack-priv static boolean isEnumConversionRequired(Type type, RubyHash enums)

Deprecated

Annotations
@Deprecated
isEnumConversionRequiredback to summary
pack-priv static boolean isEnumConversionRequired(Type type, Enums enums)
org.jruby.ext.ffi.jffi back to summary

public final Class DataConverters.CallbackDataConverter

extends NativeDataConverter
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final NativeCallbackFactory
private final CachingCallSite
private final NativeFunctionInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public NativeType
public IRubyObject
Inherited from org.jruby.ext.ffi.jffi.NativeDataConverter:
isPostInvokeRequiredisReferenceRequired

Field Detail

callbackFactoryback to summary
private final NativeCallbackFactory callbackFactory
callSiteback to summary
private final CachingCallSite callSite
functionInfoback to summary
private final NativeFunctionInfo functionInfo

Constructor Detail

CallbackDataConverterback to summary
public CallbackDataConverter(CallbackInfo cbInfo)

Method Detail

fromNativeback to summary
public IRubyObject fromNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.fromNative.

nativeTypeback to summary
public NativeType nativeType()

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.nativeType.

toNativeback to summary
public IRubyObject toNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.toNative.

org.jruby.ext.ffi.jffi back to summary

public final Class DataConverters.ChainedDataConverter

extends NativeDataConverter
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final NativeDataConverter
private final NativeDataConverter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public NativeType
public IRubyObject
Inherited from org.jruby.ext.ffi.jffi.NativeDataConverter:
isPostInvokeRequiredisReferenceRequired

Field Detail

lowerback to summary
private final NativeDataConverter lower
upperback to summary
private final NativeDataConverter upper

Constructor Detail

ChainedDataConverterback to summary
public ChainedDataConverter(NativeDataConverter first, NativeDataConverter second)

Method Detail

fromNativeback to summary
public IRubyObject fromNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.fromNative.

nativeTypeback to summary
public NativeType nativeType()

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.nativeType.

toNativeback to summary
public IRubyObject toNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.toNative.

org.jruby.ext.ffi.jffi back to summary

public final Class DataConverters.IntOrEnumConverter

extends NativeDataConverter
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final IRubyObject
private final NativeType
private volatile IdentityHashMap<RubySymbol, RubyInteger>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
private synchronized IRubyObject
pack-priv IRubyObject
public NativeType
public IRubyObject
Inherited from org.jruby.ext.ffi.jffi.NativeDataConverter:
isPostInvokeRequiredisReferenceRequired

Field Detail

enumsback to summary
private final IRubyObject enums
nativeTypeback to summary
private final NativeType nativeType
symbolToValueback to summary
private volatile IdentityHashMap<RubySymbol, RubyInteger> symbolToValue

Constructor Detail

IntOrEnumConverterback to summary
public IntOrEnumConverter(NativeType nativeType, IRubyObject enums)

Method Detail

fromNativeback to summary
public IRubyObject fromNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.fromNative.

Annotations
@Override
lookupAndCacheValueback to summary
private synchronized IRubyObject lookupAndCacheValue(ThreadContext context, IRubyObject obj)
lookupOrConvertback to summary
pack-priv IRubyObject lookupOrConvert(ThreadContext context, IRubyObject obj)
nativeTypeback to summary
public NativeType nativeType()

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.nativeType.

Annotations
@Override
toNativeback to summary
public IRubyObject toNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.toNative.

Annotations
@Override
org.jruby.ext.ffi.jffi back to summary

public final Class DataConverters.MappedDataConverter

extends NativeDataConverter
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final MappedType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public IRubyObject
public NativeType
public IRubyObject
Inherited from org.jruby.ext.ffi.jffi.NativeDataConverter:
isPostInvokeRequiredisReferenceRequired

Field Detail

converterback to summary
private final MappedType converter

Constructor Detail

MappedDataConverterback to summary
public MappedDataConverter(MappedType converter)

Method Detail

fromNativeback to summary
public IRubyObject fromNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.fromNative.

nativeTypeback to summary
public NativeType nativeType()

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.nativeType.

toNativeback to summary
public IRubyObject toNative(ThreadContext context, IRubyObject obj)

Implements abstract org.jruby.ext.ffi.jffi.NativeDataConverter.toNative.