Top Fields Constructors Methods
jnr.ffi.provider.jffi

pack-priv Class FastNumericMethodGenerator

extends AbstractFastNumericMethodGenerator
Class Inheritance
Imports
com.kenai.jffi.CallContext, .Platform, .Type, jnr.ffi.CallingConvention, .NativeType, .Pointer, jnr.ffi.provider.ParameterType, .ResultType, .SigType, java.nio.ByteBuffer, .DoubleBuffer, .FloatBuffer, .IntBuffer, .LongBuffer, .ShortBuffer

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final int
private static final String[]
private static final String[]
Inherited from jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator:
STRATEGY_ADDRESS_METHODSSTRATEGY_PARAMETER_TYPES

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv String
pack-priv String
pack-priv Class<T>
pack-priv static int
pack-priv static boolean
pack-priv static boolean
private static boolean
isNumericType(Platform platform, SigType type)

public boolean
private static boolean
isSupportedPointerParameterType(Class<T> javaParameterType)

Inherited from jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator:
emitDirectCheckemitParameterStrategyAddressemitParameterStrategyLookupgenerategetObjectParameterMethodNamegetObjectParameterMethodSignaturehasPointerParameterStrategy

Field Detail

ENABLEDback to summary
private static final boolean ENABLED
MAX_PARAMETERSback to summary
private static final int MAX_PARAMETERS
methodNamesback to summary
private static final String[] methodNames
signaturesback to summary
private static final String[] signatures

Constructor Detail

FastNumericMethodGeneratorback to summary
pack-priv FastNumericMethodGenerator()

Method Detail

getInvokerMethodNameback to summary
pack-priv String getInvokerMethodName(ResultType resultType, ParameterType[] parameterTypes, boolean ignoreErrno)

Implements abstract jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator.getInvokerMethodName.

Annotations
@Override
getInvokerSignatureback to summary
pack-priv String getInvokerSignature(int parameterCount, Class<T> nativeIntType)

Implements abstract jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator.getInvokerSignature.

Annotations
@Override
getInvokerTypeback to summary
pack-priv Class<T> getInvokerType()

Implements abstract jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator.getInvokerType.

Annotations
@Override
getMaximumParametersback to summary
pack-priv static int getMaximumParameters()
isFastNumericParameterback to summary
pack-priv static boolean isFastNumericParameter(Platform platform, ParameterType parameterType)
isFastNumericResultback to summary
pack-priv static boolean isFastNumericResult(Platform platform, ResultType type)
isNumericTypeback to summary
private static boolean isNumericType(Platform platform, SigType type)
isSupportedback to summary
public boolean isSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention)

Implements jnr.ffi.provider.jffi.MethodGenerator.isSupported.

isSupportedPointerParameterTypeback to summary
private static boolean isSupportedPointerParameterType(Class<T> javaParameterType)