Package jnr.ffi.provider.jffi
Class InvokerUtil
java.lang.Object
jnr.ffi.provider.jffi.InvokerUtil
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Map
<NativeType, com.kenai.jffi.Type> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Collection
<Annotation> getAnnotations
(FromNativeType fromNativeType) (package private) static Collection
<Annotation> getAnnotations
(ToNativeType toNativeType) (package private) static com.kenai.jffi.CallContext
getCallContext
(SigType resultType, int fixedParamCount, SigType[] parameterTypes, int paramTypesLength, CallingConvention convention, boolean requiresErrno) (package private) static com.kenai.jffi.CallContext
getCallContext
(SigType resultType, int fixedParamCount, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno) (package private) static com.kenai.jffi.CallContext
getCallContext
(SigType resultType, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno) static CallingConvention
getCallingConvention
(Class interfaceClass, Map<LibraryOption, ?> options) static CallingConvention
getCallingConvention
(Map<LibraryOption, ?> libraryOptions) (package private) static NativeType
getMethodParameterNativeType
(Runtime runtime, Class parameterClass, Collection<Annotation> annotations) (package private) static NativeType
getMethodResultNativeType
(Runtime runtime, Class resultClass, Collection<Annotation> annotations) static CallingConvention
private static ParameterType
getParameterType
(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeConverter toNativeConverter, ToNativeContext toNativeContext) private static ParameterType
getParameterType
(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeType toNativeType, ToNativeContext toNativeContext) (package private) static ParameterType[]
getParameterTypes
(Runtime runtime, SignatureTypeMapper typeMapper, Method m) (package private) static ResultType
getResultType
(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeConverter fromNativeConverter, FromNativeContext fromNativeContext) (package private) static ResultType
getResultType
(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext) static boolean
hasAnnotation
(Collection<Annotation> annotations, Class<? extends Annotation> annotationClass) static final com.kenai.jffi.CallingConvention
jffiConvention
(CallingConvention callingConvention) (package private) static com.kenai.jffi.Type
jffiType
(NativeType jnrType) (package private) static NativeType
nativeType
(Type jnrType)
-
Field Details
-
jffiTypes
-
-
Constructor Details
-
InvokerUtil
InvokerUtil()
-
-
Method Details
-
getCallingConvention
-
getCallingConvention
public static CallingConvention getCallingConvention(Class interfaceClass, Map<LibraryOption, ?> options) -
hasAnnotation
public static boolean hasAnnotation(Collection<Annotation> annotations, Class<? extends Annotation> annotationClass) -
jffiType
-
nativeType
-
getAnnotations
-
getAnnotations
-
getResultType
static ResultType getResultType(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeConverter fromNativeConverter, FromNativeContext fromNativeContext) -
getResultType
static ResultType getResultType(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext) -
getParameterType
private static ParameterType getParameterType(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeConverter toNativeConverter, ToNativeContext toNativeContext) -
getParameterType
private static ParameterType getParameterType(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeType toNativeType, ToNativeContext toNativeContext) -
getParameterTypes
-
getCallContext
static com.kenai.jffi.CallContext getCallContext(SigType resultType, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno) -
getCallContext
static com.kenai.jffi.CallContext getCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno) -
getCallContext
static com.kenai.jffi.CallContext getCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, int paramTypesLength, CallingConvention convention, boolean requiresErrno) -
getNativeCallingConvention
-
getMethodParameterNativeType
static NativeType getMethodParameterNativeType(Runtime runtime, Class parameterClass, Collection<Annotation> annotations) -
getMethodResultNativeType
static NativeType getMethodResultNativeType(Runtime runtime, Class resultClass, Collection<Annotation> annotations) -
jffiConvention
public static final com.kenai.jffi.CallingConvention jffiConvention(CallingConvention callingConvention)
-