final class BufferNativeInvoker extends NativeInvoker
DynamicMethod.NativeCall| Modifier and Type | Field and Description |
|---|---|
private com.kenai.jffi.HeapInvocationBuffer |
dummyBuffer |
private com.kenai.jffi.Function |
function |
private FunctionInvoker |
functionInvoker |
private boolean |
needsInvocationSession |
private ParameterMarshaller[] |
parameterMarshallers |
private int |
postInvokeCount |
private int |
referenceCount |
aritybuiltin, callConfig, handle, implementationClass, name, nativeCall, nativeCalls, notImplemented, protectedClass, serialNumber, visibility| Constructor and Description |
|---|
BufferNativeInvoker(RubyModule implementationClass,
com.kenai.jffi.Function function,
Signature signature,
FunctionInvoker functionInvoker,
ParameterMarshaller[] parameterMarshallers) |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name)
Arity 0, no block
|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject arg1)
Arity 1, no block
|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject[] args)
A default implementation of n-arity, non-block 'call' method,
which simply calls the n-arity, block-receiving version with
the arg list and Block.NULL_BLOCK.
|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject arg1,
IRubyObject arg2)
Arity 2, no block
|
IRubyObject |
call(ThreadContext context,
IRubyObject self,
RubyModule klazz,
java.lang.String name,
IRubyObject arg1,
IRubyObject arg2,
IRubyObject arg3)
Arity 3, no block
|
call, dup, getArity, getCallContext, getFunctionAddress, getSignature, isNativecalculateProtectedClass, call, call, call, call, getCallConfig, getHandle, getImplementationClass, getMethodData, getName, getNativeCall, getNativeCall, getProtectedClass, getRealMethod, getSerialNumber, getVisibility, handleBreak, handleRedo, handleReturn, init, isBuiltin, isCallableFrom, isNotImplemented, isUndefined, setCallConfig, setHandle, setImplementationClass, setIsBuiltin, setName, setNativeCall, setNativeCall, setNativeCall, setNotImplemented, setVisibilityprivate final com.kenai.jffi.Function function
private final FunctionInvoker functionInvoker
private final ParameterMarshaller[] parameterMarshallers
private final boolean needsInvocationSession
private final int postInvokeCount
private final int referenceCount
private final com.kenai.jffi.HeapInvocationBuffer dummyBuffer
BufferNativeInvoker(RubyModule implementationClass, com.kenai.jffi.Function function, Signature signature, FunctionInvoker functionInvoker, ParameterMarshaller[] parameterMarshallers)
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name)
DynamicMethodcall in class DynamicMethodpublic IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject arg1)
DynamicMethodcall in class DynamicMethodpublic IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject arg1, IRubyObject arg2)
DynamicMethodcall in class DynamicMethodpublic IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3)
DynamicMethodcall in class DynamicMethodpublic IRubyObject call(ThreadContext context, IRubyObject self, RubyModule klazz, java.lang.String name, IRubyObject[] args)
DynamicMethodcall in class DynamicMethodcontext - The thread context for the currently executing threadself - The 'self' or 'receiver' object to use for this callname - The incoming name used to invoke this method