Class X86MethodGenerator
java.lang.Object
jnr.ffi.provider.jffi.X86MethodGenerator
- All Implemented Interfaces:
MethodGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StubCompilerprivate static final booleanprivate final AtomicLong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidvoidgenerate(AsmBuilder builder, String functionName, com.kenai.jffi.Function function, ResultType resultType, ParameterType[] parameterTypes, boolean ignoreError) private static voidgenerateWrapper(AsmBuilder builder, String functionName, com.kenai.jffi.Function function, ResultType resultType, ParameterType[] parameterTypes, String nativeMethodName, Class nativeReturnType, Class[] nativeParameterTypes) (package private) static ClassgetNativeClass(NativeType nativeType) booleanisSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) private static boolean(package private) static booleanisSupportedParameter(ParameterType parameterType) (package private) static booleanisSupportedResult(ResultType resultType) private static booleanisSupportedType(SigType type)
-
Field Details
-
ENABLED
private static final boolean ENABLED -
nextMethodID
-
compiler
-
-
Constructor Details
-
X86MethodGenerator
X86MethodGenerator(StubCompiler compiler)
-
-
Method Details
-
isSupported
public boolean isSupported(ResultType resultType, ParameterType[] parameterTypes, CallingConvention callingConvention) - Specified by:
isSupportedin interfaceMethodGenerator
-
generate
public void generate(AsmBuilder builder, String functionName, com.kenai.jffi.Function function, ResultType resultType, ParameterType[] parameterTypes, boolean ignoreError) - Specified by:
generatein interfaceMethodGenerator
-
generateWrapper
private static void generateWrapper(AsmBuilder builder, String functionName, com.kenai.jffi.Function function, ResultType resultType, ParameterType[] parameterTypes, String nativeMethodName, Class nativeReturnType, Class[] nativeParameterTypes) -
attach
-
isSupportedObjectParameterType
-
isSupportedType
-
isSupportedResult
-
isSupportedParameter
-
getNativeClass
-