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