Package jnr.ffi.provider.jffi
Class NativeClosureProxy
- java.lang.Object
-
- jnr.ffi.provider.jffi.NativeClosureProxy
-
public abstract class NativeClosureProxy extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
NativeClosureProxy.Factory
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.ref.Reference<?>
closureReference
static boolean
DEBUG
private static java.util.concurrent.atomic.AtomicLong
nextClassID
protected Runtime
runtime
-
Constructor Summary
Constructors Modifier Constructor Description protected
NativeClosureProxy(NativeRuntime runtime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
getCallable()
(package private) static java.lang.Class
getNativeClass(NativeType nativeType)
private static boolean
isParameterTypeSupported(java.lang.Class type)
private static boolean
isReturnTypeSupported(java.lang.Class type)
(package private) static NativeClosureProxy.Factory
newProxyFactory(Runtime runtime, java.lang.reflect.Method callMethod, ToNativeType resultType, FromNativeType[] parameterTypes, AsmClassLoader classLoader)
-
-
-
Field Detail
-
runtime
protected final Runtime runtime
-
closureReference
volatile java.lang.ref.Reference<?> closureReference
-
DEBUG
public static final boolean DEBUG
-
nextClassID
private static final java.util.concurrent.atomic.AtomicLong nextClassID
-
-
Constructor Detail
-
NativeClosureProxy
protected NativeClosureProxy(NativeRuntime runtime)
-
-
Method Detail
-
getCallable
protected java.lang.Object getCallable()
-
newProxyFactory
static NativeClosureProxy.Factory newProxyFactory(Runtime runtime, java.lang.reflect.Method callMethod, ToNativeType resultType, FromNativeType[] parameterTypes, AsmClassLoader classLoader)
-
isReturnTypeSupported
private static boolean isReturnTypeSupported(java.lang.Class type)
-
isParameterTypeSupported
private static boolean isParameterTypeSupported(java.lang.Class type)
-
getNativeClass
static java.lang.Class getNativeClass(NativeType nativeType)
-
-