Top Inners Constructors Methods
jnr.ffi.provider.jffi

pack-priv Class ReflectionLibraryLoader

extends LibraryLoader
Class Inheritance
Imports
jnr.ffi.CallingConvention, .LibraryOption, .Runtime, .Variable, jnr.ffi.annotations.Synchronized, jnr.ffi.mapper.CompositeTypeMapper, .FunctionMapper, .SignatureTypeMapper, jnr.ffi.provider.IdentityFunctionMapper, .InterfaceScanner, .Invoker, .LoadedLibrary, .NativeFunction, .NativeInvocationHandler, .NativeVariable, java.lang.annotation.Annotation, java.lang.reflect.Method, .Proxy, java.util.AbstractMap, .Collection, .Map, .Set

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv <T> T
loadLibrary(NativeLibrary library, Class<T> interfaceClass, Map<LibraryOption, ?> libraryOptions, boolean failImmediately)

Implements abstract jnr.ffi.provider.jffi.LibraryLoader.loadLibrary.

Inherited from jnr.ffi.provider.jffi.LibraryLoader:
getSignatureTypeMappernewClosureTypeMappernewCompositeTypeMapper

Constructor Detail

ReflectionLibraryLoaderback to summary
pack-priv ReflectionLibraryLoader()

Method Detail

loadLibraryback to summary
pack-priv <T> T loadLibrary(NativeLibrary library, Class<T> interfaceClass, Map<LibraryOption, ?> libraryOptions, boolean failImmediately)

Implements abstract jnr.ffi.provider.jffi.LibraryLoader.loadLibrary.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionLibraryLoader.FunctionNotFoundInvoker

extends Object
implements Invoker
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionLibraryLoader.FunctionNotFoundInvoker
All Implemented Interfaces
jnr.ffi.provider.Invoker

Field Summary

Modifier and TypeField and Description
private final String
private final Method

Constructor Summary

AccessConstructor and Description
private
FunctionNotFoundInvoker(Method method, String functionName)

Method Summary

Modifier and TypeMethod and Description
public Object
invoke(Object self, Object[] parameters)

Implements jnr.ffi.provider.Invoker.invoke.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

functionNameback to summary
private final String functionName
methodback to summary
private final Method method

Constructor Detail

FunctionNotFoundInvokerback to summary
private FunctionNotFoundInvoker(Method method, String functionName)

Method Detail

invokeback to summary
public Object invoke(Object self, Object[] parameters)

Implements jnr.ffi.provider.Invoker.invoke.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionLibraryLoader.GetRuntimeInvoker

extends Object
implements Invoker
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionLibraryLoader.GetRuntimeInvoker
All Implemented Interfaces
jnr.ffi.provider.Invoker

Field Summary

Modifier and TypeField and Description
private final Runtime

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
invoke(Object self, Object[] parameters)

Implements jnr.ffi.provider.Invoker.invoke.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

runtimeback to summary
private final Runtime runtime

Constructor Detail

GetRuntimeInvokerback to summary
private GetRuntimeInvoker(Runtime runtime)

Method Detail

invokeback to summary
public Object invoke(Object self, Object[] parameters)

Implements jnr.ffi.provider.Invoker.invoke.

Annotations
@Override
jnr.ffi.provider.jffi back to summary

private final Class ReflectionLibraryLoader.LazyLoader<T>

extends AbstractMap<Method, Invoker>
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final AsmClassLoader
private final FunctionMapper
private final Class<T>
private final DefaultInvokerFactory
private final NativeLibrary
private final CallingConvention
private final boolean
private final Map<LibraryOption, ?>
private final Runtime
private final SignatureTypeMapper

Constructor Summary

AccessConstructor and Description
private
LazyLoader(NativeLibrary library, Class<T> interfaceClass, Map<LibraryOption, ?> libraryOptions)

Method Summary

Modifier and TypeMethod and Description
public Set<Map.Entry<Method, Invoker>>
entrySet()

Implements abstract java.util.AbstractMap.entrySet.

Implements java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map.
public synchronized Invoker
get(Object
the key whose associated value is to be returned
key
)

Overrides java.util.AbstractMap.get.

Implements java.util.Map.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
private Invoker
Inherited from java.util.AbstractMap:
clearclonecontainsKeycontainsValueequalshashCodeisEmptykeySetputputAllremovesizetoStringvalues

Field Detail

classLoaderback to summary
private final AsmClassLoader classLoader
functionMapperback to summary
private final FunctionMapper functionMapper
interfaceClassback to summary
private final Class<T> interfaceClass
Annotations
@SuppressWarnings:unused
invokerFactoryback to summary
private final DefaultInvokerFactory invokerFactory
libraryback to summary
private final NativeLibrary library
libraryCallingConventionback to summary
private final CallingConvention libraryCallingConvention
libraryIsSynchronizedback to summary
private final boolean libraryIsSynchronized
libraryOptionsback to summary
private final Map<LibraryOption, ?> libraryOptions
Annotations
@SuppressWarnings:unused
runtimeback to summary
private final Runtime runtime
typeMapperback to summary
private final SignatureTypeMapper typeMapper

Constructor Detail

LazyLoaderback to summary
private LazyLoader(NativeLibrary library, Class<T> interfaceClass, Map<LibraryOption, ?> libraryOptions)

Method Detail

entrySetback to summary
public Set<Map.Entry<Method, Invoker>> entrySet()

Implements abstract java.util.AbstractMap.entrySet.

Implements java.util.Map.entrySet.

Doc from java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation, or through the setValue operation on a map entry returned by the iterator) the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

Returns:Set<Map.Entry<Method, Invoker>>

a set view of the mappings contained in this map

Annotations
@Override
getback to summary
public synchronized Invoker get(Object key)

Overrides java.util.AbstractMap.get.

Implements java.util.Map.get.

Doc from java.util.AbstractMap.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

More formally, if this map contains a mapping from a key k to a value v such that Objects.equals(key, k), then this method returns v; otherwise it returns null. (There can be at most one such mapping.)

If this map permits null values, then a return value of null does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to null. The containsKey operation may be used to distinguish these two cases.

Parameters
key:Object

Doc from java.util.Map.get.

the key whose associated value is to be returned

Returns:Invoker

Doc from java.util.Map.get.

the value to which the specified key is mapped, or null if this map contains no mapping for the key

Annotations
@Override
getVariableAccessorback to summary
private Invoker getVariableAccessor(Method method)
jnr.ffi.provider.jffi back to summary

private final Class ReflectionLibraryLoader.LazyLoader.VariableAcccessorInvoker

extends Object
implements Invoker
Class Inheritance
  • java.lang.Object
  • jnr.ffi.provider.jffi.ReflectionLibraryLoader.LazyLoader.VariableAcccessorInvoker
All Implemented Interfaces
jnr.ffi.provider.Invoker

Field Summary

Modifier and TypeField and Description
private final Variable<T>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
invoke(Object self, Object[] parameters)

Implements jnr.ffi.provider.Invoker.invoke.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

variableback to summary
private final Variable<T> variable

Constructor Detail

VariableAcccessorInvokerback to summary
private VariableAcccessorInvoker(Variable<T> variable)

Method Detail

invokeback to summary
public Object invoke(Object self, Object[] parameters)

Implements jnr.ffi.provider.Invoker.invoke.

Annotations
@Override