Class InvokerUtil


  • final class InvokerUtil
    extends java.lang.Object
    • Field Detail

      • jffiTypes

        static final java.util.Map<NativeType,​com.kenai.jffi.Type> jffiTypes
    • Constructor Detail

      • InvokerUtil

        InvokerUtil()
    • Method Detail

      • 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)
      • getAnnotations

        static java.util.Collection<java.lang.annotation.Annotation> getAnnotations​(FromNativeType fromNativeType)
      • getAnnotations

        static java.util.Collection<java.lang.annotation.Annotation> getAnnotations​(ToNativeType toNativeType)
      • getParameterType

        private static ParameterType getParameterType​(Runtime runtime,
                                                      java.lang.Class type,
                                                      java.util.Collection<java.lang.annotation.Annotation> annotations,
                                                      ToNativeType toNativeType,
                                                      ToNativeContext toNativeContext)
      • 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)