Package | Description |
---|---|
jnr.ffi | |
jnr.ffi.provider.jffi |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<LibraryOption,java.lang.Object> |
LibraryLoader.optionMap |
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 |
---|---|
LibraryLoader<T> |
LibraryLoader.option(LibraryOption option,
java.lang.Object value)
Sets an option when loading libraries.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
LibraryLoader.loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Collection<java.lang.String> libraryNames,
java.util.Collection<java.lang.String> searchPaths,
java.util.Map<LibraryOption,java.lang.Object> options)
Implemented by FFI providers to load the actual library.
|
static <T> T |
Library.loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
java.lang.String... libraryNames)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static <T> T |
Library.loadLibrary(java.lang.String libraryName,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions)
Deprecated.
see
LibraryLoader for the preferred interface to loading libraries. |
static boolean |
LibraryLoader.saveError(java.util.Map<LibraryOption,?> options,
boolean methodHasSave,
boolean methodHasIgnore)
When either the
SaveError or
IgnoreError annotations are used, the
following matrix applies:
(SL = save at library level, IM = ignore at method level, etc) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<LibraryOption,?> |
DefaultInvokerFactory.libraryOptions |
private java.util.Map<LibraryOption,?> |
ReflectionLibraryLoader.LazyLoader.libraryOptions |
Modifier and Type | Method and Description |
---|---|
private <T> T |
AsmLibraryLoader.generateInterfaceImpl(NativeLibrary library,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions,
AsmClassLoader classLoader) |
static CallingConvention |
InvokerUtil.getCallingConvention(java.lang.Class interfaceClass,
java.util.Map<LibraryOption,?> options) |
static CallingConvention |
InvokerUtil.getCallingConvention(java.util.Map<LibraryOption,?> libraryOptions) |
T |
NativeLibraryLoader.loadLibrary(java.lang.Class<T> interfaceClass,
java.util.Collection<java.lang.String> libraryNames,
java.util.Collection<java.lang.String> searchPaths,
java.util.Map<LibraryOption,java.lang.Object> options) |
(package private) <T> T |
AsmLibraryLoader.loadLibrary(NativeLibrary library,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions) |
(package private) abstract <T> T |
LibraryLoader.loadLibrary(NativeLibrary library,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions) |
(package private) <T> T |
ReflectionLibraryLoader.loadLibrary(NativeLibrary library,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions) |
Constructor and Description |
---|
DefaultInvokerFactory(Runtime runtime,
NativeLibrary library,
SignatureTypeMapper typeMapper,
FunctionMapper functionMapper,
CallingConvention libraryCallingConvention,
java.util.Map<LibraryOption,?> libraryOptions,
boolean libraryIsSynchronized) |
LazyLoader(NativeLibrary library,
java.lang.Class<T> interfaceClass,
java.util.Map<LibraryOption,?> libraryOptions) |