Package jnr.ffi.provider.jffi
Class FastNumericMethodGenerator
java.lang.Object
jnr.ffi.provider.jffi.BaseMethodGenerator
jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator
jnr.ffi.provider.jffi.FastNumericMethodGenerator
- All Implemented Interfaces:
MethodGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private static final int
private static final String[]
private static final String[]
Fields inherited from class jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator
STRATEGY_ADDRESS_METHODS, STRATEGY_PARAMETER_TYPES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) String
getInvokerMethodName
(ResultType resultType, ParameterType[] parameterTypes, boolean ignoreErrno) (package private) String
getInvokerSignature
(int parameterCount, Class nativeIntType) (package private) Class
(package private) static int
(package private) static boolean
isFastNumericParameter
(com.kenai.jffi.Platform platform, ParameterType parameterType) (package private) static boolean
isFastNumericResult
(com.kenai.jffi.Platform platform, ResultType type) private static boolean
isNumericType
(com.kenai.jffi.Platform platform, SigType type) boolean
isSupported
(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) private static boolean
isSupportedPointerParameterType
(Class javaParameterType) Methods inherited from class jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator
emitDirectCheck, emitParameterStrategyAddress, emitParameterStrategyLookup, generate, getObjectParameterMethodName, getObjectParameterMethodSignature, hasPointerParameterStrategy
Methods inherited from class jnr.ffi.provider.jffi.BaseMethodGenerator
emitEpilogue, emitPostInvoke, generate, isPostInvokeRequired, loadAndConvertParameter
-
Field Details
-
ENABLED
private static final boolean ENABLED -
MAX_PARAMETERS
private static final int MAX_PARAMETERS -
signatures
-
methodNames
-
-
Constructor Details
-
FastNumericMethodGenerator
FastNumericMethodGenerator()
-
-
Method Details
-
isSupported
public boolean isSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) -
getInvokerMethodName
String getInvokerMethodName(ResultType resultType, ParameterType[] parameterTypes, boolean ignoreErrno) - Specified by:
getInvokerMethodName
in classAbstractFastNumericMethodGenerator
-
getInvokerSignature
- Specified by:
getInvokerSignature
in classAbstractFastNumericMethodGenerator
-
getInvokerType
Class getInvokerType()- Specified by:
getInvokerType
in classAbstractFastNumericMethodGenerator
-
isNumericType
-
isFastNumericResult
-
isFastNumericParameter
static boolean isFastNumericParameter(com.kenai.jffi.Platform platform, ParameterType parameterType) -
isSupportedPointerParameterType
-
getMaximumParameters
static int getMaximumParameters()
-