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