Top Inners Fields Constructors Methods
jnr.ffi.provider.jffi

public abstract Class NativeClosureProxy

extends Object
Class Inheritance
Imports
org.objectweb.asm.ClassReader, .ClassVisitor, .ClassWriter, java.io.PrintWriter, java.lang.ref.Reference, java.lang.reflect.Constructor, .Method, java.util.concurrent.atomic.AtomicLong, jnr.ffi.NativeType, .Pointer, jnr.ffi.provider.FromNativeType, .ToNativeType

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv volatile Reference<?>
public static final boolean
private static final AtomicLong
protected final Runtime

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected Object
pack-priv static Class<T>
private static boolean
private static boolean
pack-priv static NativeClosureProxy.Factory
newProxyFactory(Runtime runtime, Method callMethod, ToNativeType resultType, FromNativeType[] parameterTypes, AsmClassLoader classLoader)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

closureReferenceback to summary
pack-priv volatile Reference<?> closureReference
DEBUGback to summary
public static final boolean DEBUG
nextClassIDback to summary
private static final AtomicLong nextClassID
runtimeback to summary
protected final Runtime runtime

Constructor Detail

NativeClosureProxyback to summary
protected NativeClosureProxy(NativeRuntime runtime)

Method Detail

getCallableback to summary
protected Object getCallable()
getNativeClassback to summary
pack-priv static Class<T> getNativeClass(NativeType nativeType)
isParameterTypeSupportedback to summary
private static boolean isParameterTypeSupported(Class<T> type)
isReturnTypeSupportedback to summary
private static boolean isReturnTypeSupported(Class<T> type)
newProxyFactoryback to summary
pack-priv static NativeClosureProxy.Factory newProxyFactory(Runtime runtime, Method callMethod, ToNativeType resultType, FromNativeType[] parameterTypes, AsmClassLoader classLoader)
jnr.ffi.provider.jffi back to summary

pack-priv Class NativeClosureProxy.Factory

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Constructor<? extends NativeClosureProxy>
private final Method
private final Object[]
private final Runtime

Constructor Summary

AccessConstructor and Description
pack-priv
Factory(Runtime runtime, Constructor<? extends NativeClosureProxy> constructor, Method invokeMethod, Object[] objectFields)

Method Summary

Modifier and TypeMethod and Description
pack-priv Method
pack-priv NativeClosureProxy
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorback to summary
private final Constructor<? extends NativeClosureProxy> constructor
invokeMethodback to summary
private final Method invokeMethod
objectFieldsback to summary
private final Object[] objectFields
runtimeback to summary
private final Runtime runtime

Constructor Detail

Factoryback to summary
pack-priv Factory(Runtime runtime, Constructor<? extends NativeClosureProxy> constructor, Method invokeMethod, Object[] objectFields)

Method Detail

getInvokeMethodback to summary
pack-priv Method getInvokeMethod()
newClosureProxyback to summary
pack-priv NativeClosureProxy newClosureProxy()