public class NativeManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeManager.NativeException |
| Constructor and Description |
|---|
NativeManager() |
| Modifier and Type | Method and Description |
|---|---|
<NOVA,NATIVE,CONVERTER extends NativeConverter<NOVA,NATIVE>> |
getNative(java.lang.Class<NOVA> novaClass,
java.lang.Class<NATIVE> nativeClass) |
java.util.List<NativeConverter<?,?>> |
getNativeConverters() |
java.lang.Class<?> |
getNativeInterface(java.lang.Class<?> component)
Gets the interface registered for a component.
|
java.lang.Class<?> |
getNovaComponent(java.lang.Class<?> nativeInterface)
Gets the component registered for an interface.
|
<INTERFACE> |
registerComponentToInterface(java.lang.Class<? extends INTERFACE> component,
java.lang.Class<INTERFACE> nativeInterface)
Registers a component to a native interface.
|
void |
registerConverter(NativeConverter<?,?> converter) |
<T> T |
toNative(java.lang.Object novaObject)
Converts a nova object to a native object.
|
<T> T |
toNova(java.lang.Object nativeObject)
Converts a native object to a nova object.
|
public <INTERFACE> void registerComponentToInterface(java.lang.Class<? extends INTERFACE> component,
java.lang.Class<INTERFACE> nativeInterface)
INTERFACE - The interface of the component.component - A component. Must extend INTERFACE.nativeInterface - the class of the INTERFACE.public java.lang.Class<?> getNativeInterface(java.lang.Class<?> component)
component - the component.public java.lang.Class<?> getNovaComponent(java.lang.Class<?> nativeInterface)
nativeInterface - the interface.public void registerConverter(NativeConverter<?,?> converter)
public <NOVA,NATIVE,CONVERTER extends NativeConverter<NOVA,NATIVE>> CONVERTER getNative(java.lang.Class<NOVA> novaClass, java.lang.Class<NATIVE> nativeClass)
public <T> T toNova(java.lang.Object nativeObject)
T - The NOVA equivalent type.nativeObject - A game implementation object.public <T> T toNative(java.lang.Object novaObject)
T - The game equivalent type.novaObject - A NOVA implementation object.public java.util.List<NativeConverter<?,?>> getNativeConverters()