org.bridj.objc
Class ObjectiveCRuntime

java.lang.Object
  extended by org.bridj.AbstractBridJRuntime
      extended by org.bridj.CRuntime
          extended by org.bridj.objc.ObjectiveCRuntime
All Implemented Interfaces:
BridJRuntime

public class ObjectiveCRuntime
extends CRuntime


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bridj.CRuntime
CRuntime.CTypeInfo<T extends NativeObject>, CRuntime.MethodCallInfoBuilder
 
Nested classes/interfaces inherited from interface org.bridj.BridJRuntime
BridJRuntime.TypeInfo<T extends NativeObject>
 
Field Summary
 
Fields inherited from class org.bridj.CRuntime
PROPERTY_bridj_c_defaultObjectSize
 
Constructor Summary
ObjectiveCRuntime()
           
 
Method Summary
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>
BridJRuntime.TypeInfo<T>
getTypeInfo(Type type)
           
 boolean isAvailable()
           
static Pointer<? extends ObjCObject> objc_getProtocol(Pointer<Byte> name)
           
 void register(Type type)
           
 
Methods inherited from class org.bridj.CRuntime
allocate, createCToJavaCallback, getActualInstanceClass, getCallbackNativeImplementer, getDefaultStructSize, getDynamicFunctionFactory, getTypeForCast, sizeOf, unregister
 
Methods inherited from class org.bridj.AbstractBridJRuntime
getType, isOverridenSignature
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectiveCRuntime

public ObjectiveCRuntime()
Method Detail

isAvailable

public boolean isAvailable()
Specified by:
isAvailable in interface BridJRuntime
Overrides:
isAvailable in class CRuntime

objc_getProtocol

public static Pointer<? extends ObjCObject> objc_getProtocol(Pointer<Byte> name)

class_addProtocol

public static boolean class_addProtocol(Pointer<? extends ObjCObject> cls,
                                        Pointer<? extends ObjCObject> protocol)

getMethodSignature

public String getMethodSignature(Method method)

getMethodSignature

public String getMethodSignature(Type returnType,
                                 Type... paramTypes)

register

public void register(Type type)
Specified by:
register in interface BridJRuntime
Overrides:
register in class CRuntime

getSelector

public String getSelector(Method method)

getInstance

public static ObjectiveCRuntime getInstance()

getBlockCallbackType

public static Type getBlockCallbackType(Class blockClass)

getTypeInfo

public <T extends NativeObject> BridJRuntime.TypeInfo<T> getTypeInfo(Type type)
Specified by:
getTypeInfo in interface BridJRuntime
Overrides:
getTypeInfo in class CRuntime

getObjCClass

public static Pointer<? extends ObjCObject> getObjCClass(String name)
                                                  throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 2009-2013. All Rights Reserved.