final class FastIntMethodGenerator extends AbstractFastNumericMethodGenerator
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
ENABLED |
private static int |
MAX_FASTINT_PARAMETERS |
private static java.lang.String[] |
methodNames |
private static java.lang.String[] |
signatures |
STRATEGY_ADDRESS_METHODS, STRATEGY_PARAMETER_TYPES| Constructor and Description |
|---|
FastIntMethodGenerator() |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.lang.String |
getInvokerMethodName(ResultType resultType,
ParameterType[] parameterTypes,
boolean ignoreErrno) |
(package private) java.lang.String |
getInvokerSignature(int parameterCount,
java.lang.Class nativeIntType) |
(package private) java.lang.Class |
getInvokerType() |
(package private) static int |
getMaximumFastIntParameters() |
(package private) static boolean |
isFastIntParameter(com.kenai.jffi.Platform platform,
ParameterType parameterType) |
(package private) static boolean |
isFastIntResult(com.kenai.jffi.Platform platform,
ResultType resultType) |
(package private) static boolean |
isFastIntType(com.kenai.jffi.Platform platform,
SigType type) |
boolean |
isSupported(ResultType resultType,
ParameterType[] parameterTypes,
CallingConvention callingConvention) |
private static boolean |
isSupportedPointerParameterType(java.lang.Class javaParameterType) |
emitDirectCheck, emitParameterStrategyAddress, emitParameterStrategyLookup, generate, getObjectParameterMethodName, getObjectParameterMethodSignature, hasPointerParameterStrategyemitEpilogue, emitPostInvoke, generate, isPostInvokeRequired, loadAndConvertParameterprivate static final boolean ENABLED
private static final int MAX_FASTINT_PARAMETERS
private static final java.lang.String[] signatures
private static final java.lang.String[] methodNames
java.lang.String getInvokerMethodName(ResultType resultType, ParameterType[] parameterTypes, boolean ignoreErrno)
getInvokerMethodName in class AbstractFastNumericMethodGeneratorjava.lang.String getInvokerSignature(int parameterCount,
java.lang.Class nativeIntType)
getInvokerSignature in class AbstractFastNumericMethodGeneratorfinal java.lang.Class getInvokerType()
getInvokerType in class AbstractFastNumericMethodGeneratorpublic boolean isSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention)
static int getMaximumFastIntParameters()
static boolean isFastIntType(com.kenai.jffi.Platform platform,
SigType type)
private static boolean isSupportedPointerParameterType(java.lang.Class javaParameterType)
static boolean isFastIntResult(com.kenai.jffi.Platform platform,
ResultType resultType)
static boolean isFastIntParameter(com.kenai.jffi.Platform platform,
ParameterType parameterType)