Package | Description |
---|---|
com.kenai.jaffl | |
com.kenai.jaffl.provider | |
com.kenai.jaffl.provider.jffi |
Modifier and Type | Method and Description |
---|---|
static LibraryOption |
LibraryOption.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LibraryOption[] |
LibraryOption.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
abstract <T> T |
FFIProvider.loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
java.lang.String... libraryNames)
Loads a native library and links the methods defined in
interfaceClass
to native methods in the library. |
static <T> T |
Library.loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
java.lang.String... libraryNames)
Loads a native library and links the methods defined in
interfaceClass
to native methods in the library. |
abstract <T> T |
FFIProvider.loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions)
Loads a native library and links the methods defined in
interfaceClass
to native methods in the library. |
static <T> T |
Library.loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions)
Loads a native library and links the methods defined in
interfaceClass
to native methods in the library. |
Modifier and Type | Method and Description |
---|---|
abstract Invoker |
Library.getInvoker(java.lang.reflect.Method method,
java.util.Map<LibraryOption,?> options) |
static <T> T |
NativeInvocationHandler.wrapInterface(Library library,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> optionsMap)
Creates a new InvocationHandler mapping methods in the interfaceClass
to functions in the native library.
|
Constructor and Description |
---|
NativeInvocationHandler(Library library,
java.lang.Class<?> interfaceClass,
java.util.Map<LibraryOption,?> optionsMap)
Creates a new InvocationHandler instance.
|
Modifier and Type | Method and Description |
---|---|
Invoker |
InvokerFactory.createInvoker(java.lang.reflect.Method method,
Library library,
java.util.Map<LibraryOption,?> options) |
Invoker |
Library.getInvoker(java.lang.reflect.Method method,
java.util.Map<LibraryOption,?> options) |
<T> T |
Provider.loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
java.lang.String... libraryNames) |
<T> T |
Provider.loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions) |