5#ifndef aida_pva_jni_helper_h
6#define aida_pva_jni_helper_h
40 jclass floatArgumentClass;
41 jclass doubleArgumentClass;
42 jclass aidaArgumentsClass;
43 jclass aidaArgumentClass;
51 ArgumentClasses* argumentClasses;
52 jmethodID listSizeMethod;
53 jmethodID listGetMethod;
54 jmethodID argumentsGetArgumentsMethod;
55 jmethodID argumentGetNameMethod;
56 jmethodID argumentGetValueMethod;
57 jmethodID argumentsGetFloatArgumentsMethod;
58 jmethodID argumentsGetDoubleArgumentsMethod;
59 jmethodID getFloatNameMethod;
60 jmethodID getFloatValueMethod;
61 jmethodID getDoubleNameMethod;
62 jmethodID getDoubleValueMethod;
73JavaObject
newObject(JNIEnv* env,
char* clazz);
82char*
toCString(JNIEnv* env, jstring
string);
91jstring
toJString(JNIEnv* env,
const char*
string);
104jmethodID
getMethodId(JNIEnv* env, jclass clazz,
char* methodName,
char* methodSignature);
223jobject
toBoolean(JNIEnv* env, jboolean primitive);
233jobject
toByte(JNIEnv* env, jbyte primitive);
243jobject
toShort(JNIEnv* env, jshort primitive);
253jobject
toInteger(JNIEnv* env, jint primitive);
263jobject
toLong(JNIEnv* env, jlong primitive);
273jobject
toFloat(JNIEnv* env, jfloat primitive);
283jobject
toDouble(JNIEnv* env, jdouble primitive);
The Header File for the AIDA-PVA Module functions.
Value getArrayValue(JNIEnv *env, Arguments arguments)
Get value from the value argument, in the provided Arguments structure, when the value is a scalar ar...
jlongArray toLongArray(JNIEnv *env, Array array)
Create a new instance of a java long[], from the Array of long primitives.
jobject toTable(JNIEnv *env, Table table)
Create a new instance of a java List of Lists, from the given Tablestructure.
jbooleanArray toBooleanArray(JNIEnv *env, Array array)
Create a new instance of a java boolean[], from the Array of boolean primitives.
jmethodID getConstructorMethodId(JNIEnv *env, jclass clazz)
Get the method ID of the constructor of the given class.
jobject toInteger(JNIEnv *env, jint primitive)
Create a new instance of a java Integer, from the primitive int provided.
jshortArray toShortArray(JNIEnv *env, Array array)
Create a new instance of a java short[], from the Array of short primitives.
JavaObject newObject(JNIEnv *env, char *clazz)
Look up class in the given env, and create a new java object.
jobject toLong(JNIEnv *env, jlong primitive)
Create a new instance of a java Long, from the primitive long provided.
jobjectArray toStringArray(JNIEnv *env, StringArray array)
Create a new instance of a java String[], from the StringArray of C string primitives.
jfloatArray toFloatArray(JNIEnv *env, Array array)
Create a new instance of a java float[], from the Array of float primitives.
jobject toFloat(JNIEnv *env, jfloat primitive)
Create a new instance of a java Float, from the primitive float provided.
jobject toBoolean(JNIEnv *env, jboolean primitive)
Create a new instance of a java Boolean, from the primitive boolean provided.
jobject toShort(JNIEnv *env, jshort primitive)
Create a new instance of a java Short, from the primitive short provided.
Arguments toArguments(JNIEnv *env, jobject jArguments)
Get an Arguments structure, from the given java List<AidaArgument>
jintArray toIntegerArray(JNIEnv *env, Array array)
Create a new instance of a java int[], from the Array of integer primitives.
jobject toDouble(JNIEnv *env, jdouble primitive)
Create a new instance of a java Double, from the primitive double provided.
jbyteArray toByteArray(JNIEnv *env, Array array)
Create a new instance of a java byte[], from the Array of byte primitives.
jmethodID getMethodId(JNIEnv *env, jclass clazz, char *methodName, char *methodSignature)
Get the method ID on the given class, with the given method name, and signature.
Value getValue(JNIEnv *env, Arguments arguments)
Get value from the value argument, in the provided Arguments structure, when the value is a scalar.
jdoubleArray toDoubleArray(JNIEnv *env, Array array)
Create a new instance of a java double[], from the Array of double primitives.
jobject toByte(JNIEnv *env, jbyte primitive)
Create a new instance of a java Byte, from the primitive byte provided.
jstring toJString(JNIEnv *env, const char *string)
Convert C string to jstring.
char * toCString(JNIEnv *env, jstring string)
Convert given jstring to a C string.
An Arguments structure stores all of the arguments passed from the request to the Native Channel Prov...
This special type represents a Value.