public class CRuntime extends AbstractBridJRuntime
Runtime annotation
is found).getInstance().| Modifier and Type | Class and Description |
|---|---|
class |
CRuntime.CTypeInfo<T extends NativeObject> |
static class |
CRuntime.MethodCallInfoBuilder |
BridJRuntime.TypeInfo<T extends NativeObject>| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_bridj_c_defaultObjectSize |
| Constructor and Description |
|---|
CRuntime()
Deprecated.
use
getInstance() instead |
getType, isOverridenSignaturepublic static final String PROPERTY_bridj_c_defaultObjectSize
@Deprecated public CRuntime()
getInstance() insteadpublic org.bridj.CallbackNativeImplementer getCallbackNativeImplementer()
public boolean isAvailable()
public static CRuntime getInstance()
public <T extends NativeObject> Class<? extends T> getActualInstanceClass(Pointer<T> pInstance, Type officialType)
public <T extends NativeObject> BridJRuntime.TypeInfo<T> getTypeInfo(Type type)
public void unregister(Type type)
unregister in interface BridJRuntimeunregister in class AbstractBridJRuntimepublic <T extends NativeObject> Pointer<T> allocate(Class<T> type, int constructorId, Object... args)
public int getDefaultStructSize()
public Method getUniqueCallbackMethod(Class type)
public Method getFastestCallbackMethod(Class type)
public List<Method> getApplyMethods(Class type)
public Class<?> getAbstractCallback(Class type)
public Method getCallbackMethod(Class<?> type, boolean expectUniqueMethod)
public <T extends NativeObject> Class<? extends T> getTypeForCast(Type type)
public DynamicFunctionFactory getDynamicFunctionFactory(NativeLibrary library, Convention.Style callingConvention, Type returnType, Type... parameterTypes)
library - library to which the allocated native thunks will be bound
(can be null, in which case the native allocations will be bound to BridJ.getOrphanEntities())callingConvention - calling convention used by the functions (if
null, default is typically Convention.Style.CDecl)returnType - return type of the functionsparameterTypes - parameter types of the functions Also see
DynamicFunction and Pointer.asDynamicFunction(org.bridj.ann.Convention.Style, java.lang.reflect.Type, java.lang.reflect.Type[]).public static <T> Pointer<T> createCToJavaCallback(MethodCallInfo mci, Type t)
Copyright © 2009-2015. All Rights Reserved.