Top Fields Constructors Methods
jnr.ffi.provider.jffi

pack-priv final Class InvokerUtil

extends Object
Class Inheritance
Imports
com.kenai.jffi.CallContext, .CallContextCache, .Type, jnr.ffi.CallingConvention, .LibraryOption, .NativeType, jnr.ffi.annotations.StdCall, jnr.ffi.mapper.DefaultSignatureType, .FromNativeContext, .FromNativeConverter, .MethodParameterContext, .SignatureType, .SignatureTypeMapper, .ToNativeContext, .ToNativeConverter, jnr.ffi.provider.ParameterType, .ResultType, .SigType, jnr.ffi.util.Annotations, java.lang.annotation.Annotation, java.lang.reflect.Method, java.util.Collection, .Collections, .EnumMap, .Map

Field Summary

Modifier and TypeField and Description
pack-priv static final Map<NativeType, Type>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Collection<Annotation>
pack-priv static Collection<Annotation>
pack-priv static CallContext
getCallContext(SigType resultType, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno)

pack-priv static CallContext
getCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno)

pack-priv static CallContext
getCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, int paramTypesLength, CallingConvention convention, boolean requiresErrno)

public static CallingConvention
public static CallingConvention
getCallingConvention(Class<T> interfaceClass, Map<LibraryOption, ?> options)

pack-priv static NativeType
getMethodParameterNativeType(Runtime runtime, Class<T> parameterClass, Collection<Annotation> annotations)

pack-priv static NativeType
getMethodResultNativeType(Runtime runtime, Class<T> resultClass, Collection<Annotation> annotations)

public static CallingConvention
private static ParameterType
getParameterType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, ToNativeConverter<J, N> toNativeConverter, ToNativeContext toNativeContext)

private static ParameterType
getParameterType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, ToNativeType toNativeType, ToNativeContext toNativeContext)

pack-priv static ParameterType[]
pack-priv static ResultType
getResultType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, FromNativeConverter<J, N> fromNativeConverter, FromNativeContext fromNativeContext)

pack-priv static ResultType
getResultType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext)

public static boolean
hasAnnotation(Collection<Annotation> annotations, Class<? extends Annotation> annotationClass)

public static final CallingConvention
jffiConvention(CallingConvention callingConvention)

pack-priv static Type
pack-priv static NativeType
nativeType(Type jnrType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jffiTypesback to summary
pack-priv static final Map<NativeType, Type> jffiTypes

Constructor Detail

InvokerUtilback to summary
pack-priv InvokerUtil()

Method Detail

getAnnotationsback to summary
pack-priv static Collection<Annotation> getAnnotations(FromNativeType fromNativeType)
getAnnotationsback to summary
pack-priv static Collection<Annotation> getAnnotations(ToNativeType toNativeType)
getCallContextback to summary
pack-priv static CallContext getCallContext(SigType resultType, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno)
getCallContextback to summary
pack-priv static CallContext getCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, CallingConvention convention, boolean requiresErrno)
getCallContextback to summary
pack-priv static CallContext getCallContext(SigType resultType, int fixedParamCount, SigType[] parameterTypes, int paramTypesLength, CallingConvention convention, boolean requiresErrno)
getCallingConventionback to summary
public static CallingConvention getCallingConvention(Map<LibraryOption, ?> libraryOptions)
getCallingConventionback to summary
public static CallingConvention getCallingConvention(Class<T> interfaceClass, Map<LibraryOption, ?> options)
getMethodParameterNativeTypeback to summary
pack-priv static NativeType getMethodParameterNativeType(Runtime runtime, Class<T> parameterClass, Collection<Annotation> annotations)
getMethodResultNativeTypeback to summary
pack-priv static NativeType getMethodResultNativeType(Runtime runtime, Class<T> resultClass, Collection<Annotation> annotations)
getNativeCallingConventionback to summary
public static CallingConvention getNativeCallingConvention(Method m)
getParameterTypeback to summary
private static ParameterType getParameterType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, ToNativeConverter<J, N> toNativeConverter, ToNativeContext toNativeContext)
getParameterTypeback to summary
private static ParameterType getParameterType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, ToNativeType toNativeType, ToNativeContext toNativeContext)
getParameterTypesback to summary
pack-priv static ParameterType[] getParameterTypes(Runtime runtime, SignatureTypeMapper typeMapper, Method m)
getResultTypeback to summary
pack-priv static ResultType getResultType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, FromNativeConverter<J, N> fromNativeConverter, FromNativeContext fromNativeContext)
getResultTypeback to summary
pack-priv static ResultType getResultType(Runtime runtime, Class<T> type, Collection<Annotation> annotations, FromNativeType fromNativeType, FromNativeContext fromNativeContext)
hasAnnotationback to summary
public static boolean hasAnnotation(Collection<Annotation> annotations, Class<? extends Annotation> annotationClass)
jffiConventionback to summary
public static final CallingConvention jffiConvention(CallingConvention callingConvention)
jffiTypeback to summary
pack-priv static Type jffiType(NativeType jnrType)
nativeTypeback to summary
pack-priv static NativeType nativeType(Type jnrType)