TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Macros | Enumerations | Functions | Variables
niLang JNI

Detailed Description

Classes

struct  sJVMContext
 
struct  LocalJRef< T >
 
struct  LocalJString
 
struct  LockJBuffer
 

Macros

#define JNIEXPORT
 
#define niJVM_Class(E, CLASS)
 
#define niJVM_InstanceOf(E, O, CLASS)
 
#define niJVM_CallStaticObject(E, CLASS, METH, ARGS)
 
#define niJVM_CallMethod(E, O, TYPE, CLASS, METH, ARGS)
 
#define niJVM_CheckException(E, RET)
 
#define niJVM_GetIUnknown(E, O, TYPE)
 
#define NI_JVM_XPRIM(TYPE, NAME)
 
#define NI_JVM_WRAPPER_TRY_GET_EXISTING(NS, INTF, E, O)
 
#define NI_JVM_WRAPPER_REGISTER(E, O, THIS)
 
#define NI_JVM_WRAPPER_UNREGISTER(E, O, THIS)
 
#define NI_JVM_WRAPPER_METH_ENTER(NS, INTF, METH, JMETH, SIG, RET)
 
#define NI_JVM_WRAPPER_METH_LEAVE(NS, INTF, METH, JMETH, RET)
 
#define NI_JVM_CPP_TRY
 
#define NI_JVM_CPP_CATCH_AND_HANDLE_EXCEPTION(e)
 
#define jlong_to_ptr(a)
 
#define ptr_to_jlong(a)
 

Enumerations

enum  eJVMStdClass {
  eJVMStdClass_String,
  eJVMStdClass_Byte,
  eJVMStdClass_Short,
  eJVMStdClass_Integer,
  eJVMStdClass_Long,
  eJVMStdClass_Float,
  eJVMStdClass_Double,
  eJVMStdClass_Number,
  eJVMStdClass_Boolean,
  eJVMStdClass_RuntimeException,
  eJVMStdClass_NullPointerException,
  eJVMStdClass_Loader,
  eJVMStdClass_Pointer,
  eJVMStdClass_RefCountedPointer,
  eJVMStdClass_IUnknown,
  eJVMStdClass_UUID,
  eJVMStdClass_Vec2i,
  eJVMStdClass_Vec3i,
  eJVMStdClass_Vec4i,
  eJVMStdClass_Vec2f,
  eJVMStdClass_Vec3f,
  eJVMStdClass_Vec4f,
  eJVMStdClass_Matrixf,
  eJVMStdClass_Color3ub,
  eJVMStdClass_Color4ub,
  eJVMStdClass_NIOBuffer,
  eJVMStdClass_NIOByteBuffer,
  eJVMStdClass_NIOIntBuffer,
  eJVMStdClass_NIOCharBuffer,
  eJVMStdClass_NIODoubleBuffer,
  eJVMStdClass_NIOFloatBuffer,
  eJVMStdClass_NIOLongBuffer,
  eJVMStdClass_NIOShortBuffer,
  eJVMStdClass_Last
}
 

Functions

ni::tBool niJVM_HasVM ()
 
jclass niJVM_GetStdClass (JNIEnv *e, eJVMStdClass i)
 
JNIEnv * niJVM_GetCurrentEnv ()
 
void niJVM_Service (JNIEnv *apEnv)
 
jint niJVM_PutMemberOffset (JNIEnv *e, const char *className, const char *member, int offset)
 
sJVMContextniJVM_GetContext ()
 
jint niJVM_OnLoad (JavaVM *vm, void **appEnv, jint aJNIVer)
 
jint niJVM_OnUnload (JavaVM *vm, void **appEnv, jint aJNIVer)
 
void niJVM_JString2String (JNIEnv *apEnv, ni::cString &astrOut, jstring aJString)
 
jobject niJVM_IUnknownNew (JNIEnv *apEnv, jclass aClass, const ni::tUUID *apIID, const ni::iUnknown *apIUnknown)
 
jint niJVM_IUnknownDispose (JNIEnv *apEnv, ni::tIntPtr anIID, ni::tIntPtr anIUnknown)
 
void niJVM_ThrowRuntime (JNIEnv *e, const ni::achar *aaszMsg)
 
void niJVM_ThrowNullPtr (JNIEnv *e, const ni::achar *aaszMsg)
 
jobject niJVM_NewVar (JNIEnv *e, const ni::Var &v)
 
 niExportFuncCPP (ni::Var) niJVM_GetVar(JNIEnv *e
 
 NI_JVM_XPRIM (ni::tUUID, UUID)
 
 NI_JVM_XPRIM (ni::sVec2i, Vec2i)
 
 NI_JVM_XPRIM (ni::sVec3i, Vec3i)
 
 NI_JVM_XPRIM (ni::sVec4i, Vec4i)
 
 NI_JVM_XPRIM (ni::sVec2f, Vec2f)
 
 NI_JVM_XPRIM (ni::sVec3f, Vec3f)
 
 NI_JVM_XPRIM (ni::sVec4f, Vec4f)
 
 NI_JVM_XPRIM (ni::sMatrixf, Matrixf)
 
 NI_JVM_XPRIM (ni::sColor3ub, Color3ub)
 
 NI_JVM_XPRIM (ni::sColor4ub, Color4ub)
 
jstring niJVM_EmptyString (JNIEnv *e)
 
__forceinline jstring niJVM_NewString (JNIEnv *e, const char *aChars)
 
__forceinline jstring niJVM_NewString (JNIEnv *e, const ni::cString &str)
 
__forceinline jstring niJVM_NewString (JNIEnv *e, const ni::cString *str)
 
ni::tBool niJVM_SetProperty (JNIEnv *e, ni::cString &ret, const ni::achar *aProperty, const ni::achar *aaszValue)
 
ni::tBool niJVM_GetProperty (JNIEnv *e, ni::cString &ret, const ni::achar *aProperty)
 
const ni::acharniJVM_GetWrapperRetChars (JNIEnv *e, jstring aStr)
 
voidniJVM_LockNIOBuffer (JNIEnv *e, jobject jBuffer, jarray *outBufferArray)
 
void niJVM_UnlockNIOBuffer (JNIEnv *e, jobject jBuffer, void *dataPtr, jarray jBufferArray)
 
void niJVM_HandleException (JNIEnv *e)
 
template<typename T >
T * niJVM_QueryInterface (const ni::Var &v)
 
template<typename T >
T * niJVM_QueryInterface (const ni::iUnknown *v)
 
jint niJVM_OnLoad_Base (JNIEnv *e)
 
void niJVM_OnUnload_Base (JNIEnv *e)
 
JNIEXPORT jint JNICALL Java_ni_types_RefCountedPointer_IUnknownDispose (JNIEnv *e, jclass c, jlong p0, jlong p1)
 
JNIEXPORT void JNICALL Java_ni_types_Pointer_00024ReferenceDeallocator_deallocate (JNIEnv *e, jobject o, jlong p0, jlong p1)
 
JNIEXPORT jobject JNICALL Java_ni_types_Pointer_asDirectBuffer (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jbyte JNICALL Java_ni_types_BytePointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_BytePointer_put (JNIEnv *e, jobject o, jbyte p0)
 
JNIEXPORT void JNICALL Java_ni_types_BytePointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jshort JNICALL Java_ni_types_ShortPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_ShortPointer_put (JNIEnv *e, jobject o, jshort p0)
 
JNIEXPORT void JNICALL Java_ni_types_ShortPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jint JNICALL Java_ni_types_IntPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_IntPointer_put (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT void JNICALL Java_ni_types_IntPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jlong JNICALL Java_ni_types_LongPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_LongPointer_put (JNIEnv *e, jobject o, jlong p0)
 
JNIEXPORT void JNICALL Java_ni_types_LongPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jfloat JNICALL Java_ni_types_FloatPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_FloatPointer_put (JNIEnv *e, jobject o, jfloat p0)
 
JNIEXPORT void JNICALL Java_ni_types_FloatPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jdouble JNICALL Java_ni_types_DoublePointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_DoublePointer_put (JNIEnv *e, jobject o, jdouble p0)
 
JNIEXPORT void JNICALL Java_ni_types_DoublePointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jchar JNICALL Java_ni_types_CharPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_CharPointer_put (JNIEnv *e, jobject o, jchar p0)
 
JNIEXPORT void JNICALL Java_ni_types_CharPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jobject JNICALL Java_ni_types_PointerPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_PointerPointer_put (JNIEnv *e, jobject o, jobject p0)
 
JNIEXPORT void JNICALL Java_ni_types_PointerPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jlong JNICALL Java_ni_types_CLongPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_CLongPointer_put (JNIEnv *e, jobject o, jlong p0)
 
JNIEXPORT void JNICALL Java_ni_types_CLongPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jlong JNICALL Java_ni_types_SizeTPointer_get (JNIEnv *e, jobject o)
 
JNIEXPORT jobject JNICALL Java_ni_types_SizeTPointer_put (JNIEnv *e, jobject o, jlong p0)
 
JNIEXPORT void JNICALL Java_ni_types_SizeTPointer_allocateArray (JNIEnv *e, jobject o, jint p0)
 
JNIEXPORT jobject JNICALL Java_ni_types_IUnknown_query__Ljava_lang_Object_2 (JNIEnv *e, jclass c, jobject p0)
 
JNIEXPORT jobject JNICALL Java_ni_types_IUnknown_query__Lni_types_IUnknown_2 (JNIEnv *e, jclass c, jobject p0)
 
JNIEXPORT jint JNICALL Java_ni_types_IUnknown_getNumRefs (JNIEnv *e, jobject o)
 
JNIEXPORT void JNICALL Java_ni_types_IUnknown_invalidate (JNIEnv *e, jobject o)
 

Variables

jobject o
 

Macro Definition Documentation

#define JNIEXPORT
#define niJVM_Class (   E,
  CLASS 
)
#define niJVM_InstanceOf (   E,
  O,
  CLASS 
)
#define niJVM_CallStaticObject (   E,
  CLASS,
  METH,
  ARGS 
)
#define niJVM_CallMethod (   E,
  O,
  TYPE,
  CLASS,
  METH,
  ARGS 
)
#define niJVM_CheckException (   E,
  RET 
)
#define niJVM_GetIUnknown (   E,
  O,
  TYPE 
)
#define NI_JVM_XPRIM (   TYPE,
  NAME 
)
#define NI_JVM_WRAPPER_TRY_GET_EXISTING (   NS,
  INTF,
  E,
 
)
#define NI_JVM_WRAPPER_REGISTER (   E,
  O,
  THIS 
)
#define NI_JVM_WRAPPER_UNREGISTER (   E,
  O,
  THIS 
)
#define NI_JVM_WRAPPER_METH_ENTER (   NS,
  INTF,
  METH,
  JMETH,
  SIG,
  RET 
)
#define NI_JVM_WRAPPER_METH_LEAVE (   NS,
  INTF,
  METH,
  JMETH,
  RET 
)
#define NI_JVM_CPP_TRY
#define NI_JVM_CPP_CATCH_AND_HANDLE_EXCEPTION (   e)
#define jlong_to_ptr (   a)
#define ptr_to_jlong (   a)

Enumeration Type Documentation

Enumerator
eJVMStdClass_String 
eJVMStdClass_Byte 
eJVMStdClass_Short 
eJVMStdClass_Integer 
eJVMStdClass_Long 
eJVMStdClass_Float 
eJVMStdClass_Double 
eJVMStdClass_Number 
eJVMStdClass_Boolean 
eJVMStdClass_RuntimeException 
eJVMStdClass_NullPointerException 
eJVMStdClass_Loader 
eJVMStdClass_Pointer 
eJVMStdClass_RefCountedPointer 
eJVMStdClass_IUnknown 
eJVMStdClass_UUID 
eJVMStdClass_Vec2i 
eJVMStdClass_Vec3i 
eJVMStdClass_Vec4i 
eJVMStdClass_Vec2f 
eJVMStdClass_Vec3f 
eJVMStdClass_Vec4f 
eJVMStdClass_Matrixf 
eJVMStdClass_Color3ub 
eJVMStdClass_Color4ub 
eJVMStdClass_NIOBuffer 
eJVMStdClass_NIOByteBuffer 
eJVMStdClass_NIOIntBuffer 
eJVMStdClass_NIOCharBuffer 
eJVMStdClass_NIODoubleBuffer 
eJVMStdClass_NIOFloatBuffer 
eJVMStdClass_NIOLongBuffer 
eJVMStdClass_NIOShortBuffer 
eJVMStdClass_Last 

Function Documentation

ni::tBool niJVM_HasVM ( )
jclass niJVM_GetStdClass ( JNIEnv *  e,
eJVMStdClass  i 
)
JNIEnv* niJVM_GetCurrentEnv ( )
void niJVM_Service ( JNIEnv *  apEnv)
jint niJVM_PutMemberOffset ( JNIEnv *  e,
const char *  className,
const char *  member,
int  offset 
)
sJVMContext* niJVM_GetContext ( )
jint niJVM_OnLoad ( JavaVM *  vm,
void **  appEnv,
jint  aJNIVer 
)
jint niJVM_OnUnload ( JavaVM *  vm,
void **  appEnv,
jint  aJNIVer 
)
void niJVM_JString2String ( JNIEnv *  apEnv,
ni::cString astrOut,
jstring  aJString 
)
jobject niJVM_IUnknownNew ( JNIEnv *  apEnv,
jclass  aClass,
const ni::tUUID apIID,
const ni::iUnknown apIUnknown 
)
jint niJVM_IUnknownDispose ( JNIEnv *  apEnv,
ni::tIntPtr  anIID,
ni::tIntPtr  anIUnknown 
)
void niJVM_ThrowRuntime ( JNIEnv *  e,
const ni::achar aaszMsg 
)
void niJVM_ThrowNullPtr ( JNIEnv *  e,
const ni::achar aaszMsg 
)
jobject niJVM_NewVar ( JNIEnv *  e,
const ni::Var v 
)
niExportFuncCPP ( ni::Var  )
NI_JVM_XPRIM ( ni::tUUID  ,
UUID   
)
NI_JVM_XPRIM ( ni::sVec2i  ,
Vec2i   
)
NI_JVM_XPRIM ( ni::sVec3i  ,
Vec3i   
)
NI_JVM_XPRIM ( ni::sVec4i  ,
Vec4i   
)
NI_JVM_XPRIM ( ni::sVec2f  ,
Vec2f   
)
NI_JVM_XPRIM ( ni::sVec3f  ,
Vec3f   
)
NI_JVM_XPRIM ( ni::sVec4f  ,
Vec4f   
)
NI_JVM_XPRIM ( ni::sMatrixf  ,
Matrixf   
)
NI_JVM_XPRIM ( ni::sColor3ub  ,
Color3ub   
)
NI_JVM_XPRIM ( ni::sColor4ub  ,
Color4ub   
)
jstring niJVM_EmptyString ( JNIEnv *  e)
__forceinline jstring niJVM_NewString ( JNIEnv *  e,
const char *  aChars 
)
__forceinline jstring niJVM_NewString ( JNIEnv *  e,
const ni::cString str 
)
__forceinline jstring niJVM_NewString ( JNIEnv *  e,
const ni::cString str 
)
ni::tBool niJVM_SetProperty ( JNIEnv *  e,
ni::cString ret,
const ni::achar aProperty,
const ni::achar aaszValue 
)

Set a property using java.lang.System.setProperty, ret contains the previous value of the property

Returns
eFalse a Java exception was thrown
ni::tBool niJVM_GetProperty ( JNIEnv *  e,
ni::cString ret,
const ni::achar aProperty 
)

Get a property using java.lang.System.getProperty, ret contains the current value of the property

Returns
eFalse if the property can't be found or a Java exception was thrown
const ni::achar* niJVM_GetWrapperRetChars ( JNIEnv *  e,
jstring  aStr 
)
void* niJVM_LockNIOBuffer ( JNIEnv *  e,
jobject  jBuffer,
jarray *  outBufferArray 
)
void niJVM_UnlockNIOBuffer ( JNIEnv *  e,
jobject  jBuffer,
void dataPtr,
jarray  jBufferArray 
)
void niJVM_HandleException ( JNIEnv *  e)
T* niJVM_QueryInterface ( const ni::Var v)
T* niJVM_QueryInterface ( const ni::iUnknown v)
jint niJVM_OnLoad_Base ( JNIEnv *  e)
void niJVM_OnUnload_Base ( JNIEnv *  e)
JNIEXPORT jint JNICALL Java_ni_types_RefCountedPointer_IUnknownDispose ( JNIEnv *  e,
jclass  c,
jlong  p0,
jlong  p1 
)
JNIEXPORT void JNICALL Java_ni_types_Pointer_00024ReferenceDeallocator_deallocate ( JNIEnv *  e,
jobject  o,
jlong  p0,
jlong  p1 
)
JNIEXPORT jobject JNICALL Java_ni_types_Pointer_asDirectBuffer ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jbyte JNICALL Java_ni_types_BytePointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_BytePointer_put ( JNIEnv *  e,
jobject  o,
jbyte  p0 
)
JNIEXPORT void JNICALL Java_ni_types_BytePointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jshort JNICALL Java_ni_types_ShortPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_ShortPointer_put ( JNIEnv *  e,
jobject  o,
jshort  p0 
)
JNIEXPORT void JNICALL Java_ni_types_ShortPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jint JNICALL Java_ni_types_IntPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_IntPointer_put ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT void JNICALL Java_ni_types_IntPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jlong JNICALL Java_ni_types_LongPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_LongPointer_put ( JNIEnv *  e,
jobject  o,
jlong  p0 
)
JNIEXPORT void JNICALL Java_ni_types_LongPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jfloat JNICALL Java_ni_types_FloatPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_FloatPointer_put ( JNIEnv *  e,
jobject  o,
jfloat  p0 
)
JNIEXPORT void JNICALL Java_ni_types_FloatPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jdouble JNICALL Java_ni_types_DoublePointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_DoublePointer_put ( JNIEnv *  e,
jobject  o,
jdouble  p0 
)
JNIEXPORT void JNICALL Java_ni_types_DoublePointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jchar JNICALL Java_ni_types_CharPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_CharPointer_put ( JNIEnv *  e,
jobject  o,
jchar  p0 
)
JNIEXPORT void JNICALL Java_ni_types_CharPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jobject JNICALL Java_ni_types_PointerPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_PointerPointer_put ( JNIEnv *  e,
jobject  o,
jobject  p0 
)
JNIEXPORT void JNICALL Java_ni_types_PointerPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jlong JNICALL Java_ni_types_CLongPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_CLongPointer_put ( JNIEnv *  e,
jobject  o,
jlong  p0 
)
JNIEXPORT void JNICALL Java_ni_types_CLongPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jlong JNICALL Java_ni_types_SizeTPointer_get ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT jobject JNICALL Java_ni_types_SizeTPointer_put ( JNIEnv *  e,
jobject  o,
jlong  p0 
)
JNIEXPORT void JNICALL Java_ni_types_SizeTPointer_allocateArray ( JNIEnv *  e,
jobject  o,
jint  p0 
)
JNIEXPORT jobject JNICALL Java_ni_types_IUnknown_query__Ljava_lang_Object_2 ( JNIEnv *  e,
jclass  c,
jobject  p0 
)
JNIEXPORT jobject JNICALL Java_ni_types_IUnknown_query__Lni_types_IUnknown_2 ( JNIEnv *  e,
jclass  c,
jobject  p0 
)
JNIEXPORT jint JNICALL Java_ni_types_IUnknown_getNumRefs ( JNIEnv *  e,
jobject  o 
)
JNIEXPORT void JNICALL Java_ni_types_IUnknown_invalidate ( JNIEnv *  e,
jobject  o 
)

Variable Documentation

jobject o