org.bridj
Class AbstractBridJRuntime

java.lang.Object
  extended by org.bridj.AbstractBridJRuntime
All Implemented Interfaces:
BridJRuntime
Direct Known Subclasses:
CRuntime, DotNetRuntime, MonoRuntime

public abstract class AbstractBridJRuntime
extends Object
implements BridJRuntime

Base class for implementation of runtimes

Author:
Olivier

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.bridj.BridJRuntime
BridJRuntime.TypeInfo<T extends NativeObject>
 
Constructor Summary
AbstractBridJRuntime()
           
 
Method Summary
protected  Constructor findConstructor(Class<?> type, int constructorId, boolean onlyWithAnnotation)
           
 Type getType(NativeObject instance)
           
protected static boolean isOverride(Type parentSignature, Type overrideSignature)
           
static boolean isOverridenSignature(Type[] parentSignature, Type[] overrideSignature, int overrideOffset)
           
protected  boolean log(Level level, String message)
           
protected  boolean log(Level level, String message, Throwable ex)
           
 void unregister(Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bridj.BridJRuntime
getActualInstanceClass, getTypeInfo, isAvailable, register
 

Constructor Detail

AbstractBridJRuntime

public AbstractBridJRuntime()
Method Detail

log

protected boolean log(Level level,
                      String message,
                      Throwable ex)

log

protected boolean log(Level level,
                      String message)

unregister

public void unregister(Type type)
Specified by:
unregister in interface BridJRuntime

getType

public Type getType(NativeObject instance)
Specified by:
getType in interface BridJRuntime

findConstructor

protected Constructor findConstructor(Class<?> type,
                                      int constructorId,
                                      boolean onlyWithAnnotation)
                               throws SecurityException,
                                      NoSuchMethodException
Throws:
SecurityException
NoSuchMethodException

isOverridenSignature

public static boolean isOverridenSignature(Type[] parentSignature,
                                           Type[] overrideSignature,
                                           int overrideOffset)

isOverride

protected static boolean isOverride(Type parentSignature,
                                    Type overrideSignature)


Copyright © 2009-2012. All Rights Reserved.