final class BufferMethodGenerator extends BaseMethodGenerator
Modifier and Type | Class and Description |
---|---|
private static class |
BufferMethodGenerator.InvokeOp |
private static class |
BufferMethodGenerator.MarshalOp |
private static class |
BufferMethodGenerator.Operation |
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.Map<NativeType,BufferMethodGenerator.InvokeOp> |
invokeOps |
(package private) static java.util.Map<NativeType,BufferMethodGenerator.MarshalOp> |
marshalOps |
Constructor and Description |
---|
BufferMethodGenerator() |
Modifier and Type | Method and Description |
---|---|
private static void |
emitPrimitiveOp(SkinnyMethodAdapter mv,
ParameterType parameterType,
ToNativeOp op) |
(package private) void |
generate(AsmBuilder builder,
SkinnyMethodAdapter mv,
LocalVariableAllocator localVariableAllocator,
com.kenai.jffi.CallContext callContext,
ResultType resultType,
ParameterType[] parameterTypes,
boolean ignoreError) |
(package private) void |
generateBufferInvocation(AsmBuilder builder,
SkinnyMethodAdapter mv,
LocalVariableAllocator localVariableAllocator,
com.kenai.jffi.CallContext callContext,
ResultType resultType,
ParameterType[] parameterTypes) |
(package private) static boolean |
isSessionRequired(ParameterType parameterType) |
(package private) static boolean |
isSessionRequired(ParameterType[] parameterTypes) |
boolean |
isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
emitEpilogue, emitPostInvoke, generate, isPostInvokeRequired, loadAndConvertParameter
static final java.util.Map<NativeType,BufferMethodGenerator.MarshalOp> marshalOps
static final java.util.Map<NativeType,BufferMethodGenerator.InvokeOp> invokeOps
void generate(AsmBuilder builder, SkinnyMethodAdapter mv, LocalVariableAllocator localVariableAllocator, com.kenai.jffi.CallContext callContext, ResultType resultType, ParameterType[] parameterTypes, boolean ignoreError)
generate
in class BaseMethodGenerator
public boolean isSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention)
private static void emitPrimitiveOp(SkinnyMethodAdapter mv, ParameterType parameterType, ToNativeOp op)
static boolean isSessionRequired(ParameterType parameterType)
static boolean isSessionRequired(ParameterType[] parameterTypes)
void generateBufferInvocation(AsmBuilder builder, SkinnyMethodAdapter mv, LocalVariableAllocator localVariableAllocator, com.kenai.jffi.CallContext callContext, ResultType resultType, ParameterType[] parameterTypes)