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

public final Class MappedType

extends Type
Class Inheritance
Annotations
@JRubyClass
name:FFI::Type::Mapped
parent:FFI::Type
Imports
org.jruby.Ruby, .RubyClass, org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.callsite.CachingCallSite, .FunctionalCachingCallSite

A type which represents a conversion to/from a native type.

Field Summary

Modifier and TypeField and Description
private final IRubyObject
private final CachingCallSite
private final boolean
private final Type
private final CachingCallSite
Inherited from org.jruby.ext.ffi.Type:
alignmentnativeTypesize

Constructor Summary

AccessConstructor and Description
private
MappedType(Ruby runtime, RubyClass klass, Type nativeType, IRubyObject converter, boolean isRefererenceRequired)

Method Summary

Modifier and TypeMethod and Description
public static RubyClass
public final IRubyObject
public final IRubyObject
public final Type
public final boolean
public final boolean
public final IRubyObject
public static final IRubyObject
public final IRubyObject
public final IRubyObject
Inherited from org.jruby.ext.ffi.Type:
alignmentcreateTypeClassgetNativeAlignmentgetNativeAlignmentgetNativeSizegetNativeSizegetNativeTypegetTypeClasssize

Field Detail

converterback to summary
private final IRubyObject converter
fromNativeCallSiteback to summary
private final CachingCallSite fromNativeCallSite
isReferenceRequiredback to summary
private final boolean isReferenceRequired
realTypeback to summary
private final Type realType
toNativeCallSiteback to summary
private final CachingCallSite toNativeCallSite

Constructor Detail

MappedTypeback to summary
private MappedType(Ruby runtime, RubyClass klass, Type nativeType, IRubyObject converter, boolean isRefererenceRequired)

Method Detail

createConverterTypeClassback to summary
public static RubyClass createConverterTypeClass(ThreadContext context, RubyClass Type)
from_nativeback to summary
public final IRubyObject from_native(ThreadContext context, IRubyObject value, IRubyObject ctx)
Annotations
@JRubyMethod
fromNativeback to summary
public final IRubyObject fromNative(ThreadContext context, IRubyObject value)
getRealTypeback to summary
public final Type getRealType()
isPostInvokeRequiredback to summary
public final boolean isPostInvokeRequired()
isReferenceRequiredback to summary
public final boolean isReferenceRequired()
native_typeback to summary
public final IRubyObject native_type(ThreadContext context)
Annotations
@JRubyMethod
newMappedTypeback to summary
public static final IRubyObject newMappedType(ThreadContext context, IRubyObject klass, IRubyObject converter)
Annotations
@JRubyMethod
name:new
meta:true
to_nativeback to summary
public final IRubyObject to_native(ThreadContext context, IRubyObject value, IRubyObject ctx)
Annotations
@JRubyMethod
toNativeback to summary
public final IRubyObject toNative(ThreadContext context, IRubyObject value)