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.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(java.lang.Class interfaceClass, java.util.Map<LibraryOption,?> options)static CallingConventiongetCallingConvention(java.util.Map<LibraryOption,?> libraryOptions)(package private) static NativeTypegetMethodParameterNativeType(Runtime runtime, java.lang.Class parameterClass, java.util.Collection<java.lang.annotation.Annotation> annotations)(package private) static NativeTypegetMethodResultNativeType(Runtime runtime, java.lang.Class resultClass, java.util.Collection<java.lang.annotation.Annotation> annotations)static CallingConventiongetNativeCallingConvention(java.lang.reflect.Method m)private static ParameterTypegetParameterType(Runtime runtime, java.lang.Class type, java.util.Collection<java.lang.annotation.Annotation> annotations, ToNativeConverter toNativeConverter, ToNativeContext toNativeContext)private static ParameterTypegetParameterType(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 ResultTypegetResultType(Runtime runtime, java.lang.Class type, java.util.Collection<java.lang.annotation.Annotation> annotations, FromNativeConverter fromNativeConverter, FromNativeContext fromNativeContext)(package private) static ResultTypegetResultType(Runtime runtime, java.lang.Class type, java.util.Collection<java.lang.annotation.Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext)static booleanhasAnnotation(java.util.Collection<java.lang.annotation.Annotation> annotations, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)static com.kenai.jffi.CallingConventionjffiConvention(CallingConvention callingConvention)(package private) static com.kenai.jffi.TypejffiType(NativeType jnrType)(package private) static NativeTypenativeType(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, 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
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)
-
-