public class ObjectiveCRuntime extends CRuntime
CRuntime.CTypeInfo<T extends NativeObject>, CRuntime.MethodCallInfoBuilder
BridJRuntime.TypeInfo<T extends NativeObject>
PROPERTY_bridj_c_defaultObjectSize
Constructor and Description |
---|
ObjectiveCRuntime() |
Modifier and Type | Method and Description |
---|---|
static boolean |
class_addProtocol(Pointer<? extends ObjCObject> cls,
Pointer<? extends ObjCObject> protocol) |
static Type |
getBlockCallbackType(Class blockClass) |
static ObjectiveCRuntime |
getInstance() |
String |
getMethodSignature(Method method) |
String |
getMethodSignature(Type returnType,
Type... paramTypes) |
static Pointer<? extends ObjCObject> |
getObjCClass(String name) |
String |
getSelector(Method method) |
<T extends NativeObject> |
getTypeInfo(Type type) |
boolean |
isAvailable() |
static Pointer<? extends ObjCObject> |
objc_getProtocol(Pointer<Byte> name) |
void |
register(Type type) |
allocate, createCToJavaCallback, getAbstractCallback, getActualInstanceClass, getApplyMethods, getCallbackMethod, getCallbackNativeImplementer, getDefaultStructSize, getDynamicFunctionFactory, getFastestCallbackMethod, getType, getTypeForCast, getUniqueCallbackMethod, sizeOf, unregister
getType, isOverridenSignature
public ObjectiveCRuntime()
public boolean isAvailable()
isAvailable
in interface BridJRuntime
isAvailable
in class CRuntime
public static Pointer<? extends ObjCObject> objc_getProtocol(Pointer<Byte> name)
public static boolean class_addProtocol(Pointer<? extends ObjCObject> cls, Pointer<? extends ObjCObject> protocol)
public String getMethodSignature(Method method)
public String getMethodSignature(Type returnType, Type... paramTypes)
public void register(Type type)
register
in interface BridJRuntime
register
in class CRuntime
public String getSelector(Method method)
public static ObjectiveCRuntime getInstance()
public static Type getBlockCallbackType(Class blockClass)
public <T extends NativeObject> BridJRuntime.TypeInfo<T> getTypeInfo(Type type)
getTypeInfo
in interface BridJRuntime
getTypeInfo
in class CRuntime
public static Pointer<? extends ObjCObject> getObjCClass(String name) throws ClassNotFoundException
ClassNotFoundException
Copyright © 2009-2020. All Rights Reserved.