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.CallContextgetCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, int paramTypesLength, CallingConvention convention, boolean requiresErrno) (package private) static com.kenai.jffi.CallContextgetCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno) (package private) static com.kenai.jffi.CallContextgetCallContext(SigType resultType, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno) static CallingConventiongetCallingConvention(Class interfaceClass, Map<LibraryOption, ?> options) static CallingConventiongetCallingConvention(Map<LibraryOption, ?> libraryOptions) (package private) static NativeTypegetMethodParameterNativeType(Runtime runtime, Class parameterClass, Collection<Annotation> annotations) (package private) static NativeTypegetMethodResultNativeType(Runtime runtime, Class resultClass, Collection<Annotation> annotations) static CallingConventionprivate static ParameterTypegetParameterType(Runtime runtime, Class type, Collection<Annotation> annotations, ToNativeConverter toNativeConverter, ToNativeContext toNativeContext) private static ParameterTypegetParameterType(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 ResultTypegetResultType(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeConverter fromNativeConverter, FromNativeContext fromNativeContext) (package private) static ResultTypegetResultType(Runtime runtime, Class type, Collection<Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext) static booleanhasAnnotation(Collection<Annotation> annotations, Class<? extends Annotation> annotationClass) static final com.kenai.jffi.CallingConventionjffiConvention(CallingConvention callingConvention) (package private) static com.kenai.jffi.TypejffiType(NativeType jnrType) (package private) static NativeTypenativeType(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)
-