org.bridj.cpp
Class CPPRuntime.CPPTypeInfo<T extends CPPObject>

java.lang.Object
  extended by org.bridj.CRuntime.CTypeInfo<T>
      extended by org.bridj.cpp.CPPRuntime.CPPTypeInfo<T>
All Implemented Interfaces:
BridJRuntime.TypeInfo<T>
Enclosing class:
CPPRuntime

public class CPPRuntime.CPPTypeInfo<T extends CPPObject>
extends CRuntime.CTypeInfo<T>


Constructor Summary
CPPRuntime.CPPTypeInfo(Type type)
           
 
Method Summary
 T cast(Pointer peer)
           
 T clone(T instance)
           
 T createReturnInstance()
           
 void destroy(T instance)
           
 void initialize(T instance, int constructorId, Object... args)
           
 Type resolveClassType(CPPObject instance, TypeVariable<?> var)
           
 Type resolveMethodType(CPPObject instance, Object[] methodTemplateParameters, TypeVariable<?> var)
           
 long sizeOf()
           
 
Methods inherited from class org.bridj.CRuntime.CTypeInfo
compare, copyNativeObjectToAddress, describe, describe, equal, getRuntime, getType, initialize, initialize, readFromNative, writeToNative
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPPRuntime.CPPTypeInfo

public CPPRuntime.CPPTypeInfo(Type type)
Method Detail

resolveClassType

public Type resolveClassType(CPPObject instance,
                             TypeVariable<?> var)

resolveMethodType

public Type resolveMethodType(CPPObject instance,
                              Object[] methodTemplateParameters,
                              TypeVariable<?> var)

sizeOf

public long sizeOf()
Specified by:
sizeOf in interface BridJRuntime.TypeInfo<T extends CPPObject>
Overrides:
sizeOf in class CRuntime.CTypeInfo<T extends CPPObject>

createReturnInstance

public T createReturnInstance()
Specified by:
createReturnInstance in interface BridJRuntime.TypeInfo<T extends CPPObject>
Overrides:
createReturnInstance in class CRuntime.CTypeInfo<T extends CPPObject>

cast

public T cast(Pointer peer)
Specified by:
cast in interface BridJRuntime.TypeInfo<T extends CPPObject>
Overrides:
cast in class CRuntime.CTypeInfo<T extends CPPObject>

initialize

public void initialize(T instance,
                       int constructorId,
                       Object... args)
Specified by:
initialize in interface BridJRuntime.TypeInfo<T extends CPPObject>
Overrides:
initialize in class CRuntime.CTypeInfo<T extends CPPObject>

clone

public T clone(T instance)
                          throws CloneNotSupportedException
Specified by:
clone in interface BridJRuntime.TypeInfo<T extends CPPObject>
Overrides:
clone in class CRuntime.CTypeInfo<T extends CPPObject>
Throws:
CloneNotSupportedException

destroy

public void destroy(T instance)
Specified by:
destroy in interface BridJRuntime.TypeInfo<T extends CPPObject>
Overrides:
destroy in class CRuntime.CTypeInfo<T extends CPPObject>


Copyright © 2009-2013. All Rights Reserved.