Package org.jruby.ext.ffi.jffi
Class NativeCallbackFactory
java.lang.Object
org.jruby.ext.ffi.jffi.NativeCallbackFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RubyClassprivate final CallbackInfoprivate final CachingCallSiteprivate final NativeFunctionInfoprivate final com.kenai.jffi.ClosurePoolprivate final WeakIdentityHashMapprivate final Ruby -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PointergetCallback(RubyObject callable) final PointergetCallback(IRubyObject callable, CachingCallSite callSite) private PointergetCallbackPointer(IRubyObject callable, CachingCallSite callSite) private static final booleanisParameterTypeValid(Type type) Checks if a type is a valid parameter type for a callbackprivate static final booleanisReturnTypeValid(Type type) Checks if a type is a valid callback return type(package private) NativeCallbackPointernewCallback(Object callable) (package private) NativeCallbackPointernewCallback(IRubyObject callable, CachingCallSite callSite) private final NativeFunctionInfonewFunctionInfo(Ruby runtime, CallbackInfo cbInfo)
-
Field Details
-
closures
-
runtime
-
closurePool
private final com.kenai.jffi.ClosurePool closurePool -
closureInfo
-
callbackInfo
-
callbackClass
-
callSite
-
-
Constructor Details
-
NativeCallbackFactory
-
-
Method Details
-
getCallback
-
getCallback
-
getCallbackPointer
-
newCallback
-
newCallback
-
newFunctionInfo
-
isReturnTypeValid
Checks if a type is a valid callback return type- Parameters:
type- The type to examine- Returns:
- true if type is a valid return type for a callback.
-
isParameterTypeValid
Checks if a type is a valid parameter type for a callback- Parameters:
type- The type to examine- Returns:
- true if type is a valid parameter type for a callback.
-