Class FastIntMethodGenerator
java.lang.Object
jnr.ffi.provider.jffi.BaseMethodGenerator
jnr.ffi.provider.jffi.AbstractFastNumericMethodGenerator
jnr.ffi.provider.jffi.FastIntMethodGenerator
- All Implemented Interfaces:
MethodGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate static final intprivate static final String[]private static final String[]Fields inherited from class AbstractFastNumericMethodGenerator
STRATEGY_ADDRESS_METHODS, STRATEGY_PARAMETER_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringgetInvokerMethodName(ResultType resultType, ParameterType[] parameterTypes, boolean ignoreErrno) (package private) StringgetInvokerSignature(int parameterCount, Class nativeIntType) (package private) final Class(package private) static int(package private) static booleanisFastIntParameter(com.kenai.jffi.Platform platform, ParameterType parameterType) (package private) static booleanisFastIntResult(com.kenai.jffi.Platform platform, ResultType resultType) (package private) static booleanisFastIntType(com.kenai.jffi.Platform platform, SigType type) booleanisSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) private static booleanisSupportedPointerParameterType(Class javaParameterType) Methods inherited from class AbstractFastNumericMethodGenerator
emitDirectCheck, emitParameterStrategyAddress, emitParameterStrategyLookup, generate, getObjectParameterMethodName, getObjectParameterMethodSignature, hasPointerParameterStrategyMethods inherited from class BaseMethodGenerator
emitEpilogue, emitPostInvoke, generate, isPostInvokeRequired, loadAndConvertParameter
-
Field Details
-
ENABLED
private static final boolean ENABLED -
MAX_FASTINT_PARAMETERS
private static final int MAX_FASTINT_PARAMETERS -
signatures
-
methodNames
-
-
Constructor Details
-
FastIntMethodGenerator
FastIntMethodGenerator()
-
-
Method Details
-
getInvokerMethodName
String getInvokerMethodName(ResultType resultType, ParameterType[] parameterTypes, boolean ignoreErrno) - Specified by:
getInvokerMethodNamein classAbstractFastNumericMethodGenerator
-
getInvokerSignature
- Specified by:
getInvokerSignaturein classAbstractFastNumericMethodGenerator
-
getInvokerType
- Specified by:
getInvokerTypein classAbstractFastNumericMethodGenerator
-
isSupported
public boolean isSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) -
getMaximumFastIntParameters
static int getMaximumFastIntParameters() -
isFastIntType
-
isSupportedPointerParameterType
-
isFastIntResult
-
isFastIntParameter
-