Codemesh Runtime v3 C++ API Reference
3.9.205
|
5 #ifndef Test_JavaVM_inc
6 #define Test_JavaVM_inc
12 #if (XMOG_IMPLEMENTS_REMOTE_CLIENT==1)
15 #include "xmog_JavaVM.h"
16 #include "ace/Map_Manager.h"
17 #include "ace/Thread_Mutex.h"
159 ACE_Map_Manager<const char*,jint,ACE_Thread_Mutex> classes_;
166 jint currentClassIndex_;
174 static JNIInvokeInterface_ theFunctions;
jarray RemoteNewArray(const char *arrType, jsize size, xmog_JNIEnv *env)
Creates an array and returns the handle.
jclass RemoteGetSuperClass(jclass sub, xmog_JNIEnv *env)
Queries for a subtype's superclass.
jboolean RemoteIsAssignableFrom(jclass sub, jclass sup, xmog_JNIEnv *env)
Queries for an inheritance relationship between two types.
~Test_JavaVM()
Destructor.
jstring RemoteNewString(const unsigned short *str, xmog_JNIEnv *env, int len=-1)
Attempts to create a string on the server.
jstring RemoteNewStringUtf(const char *str, xmog_JNIEnv *env)
Attempts to create a string on the server.
An abstract JavaVM type that is used as a base class for concrete JavaVM_ replacement types.
Definition: xmog_JavaVM.h:39
jboolean RemoteIsInstanceOf(jobject obj, jclass clazz, xmog_JNIEnv *env)
Queries for an instance-of relationship between an object and a type.
void RemoteSetArrayRegion(const char *arrType, jarray array, jsize start, jsize len, void *buf, xmog_JNIEnv *env)
Sets the values of a region of an array.
The baseclass for all proxy types in the framework.
Definition: xmog_base.h:29
A JavaVM type that simulates a Java backend for framework testing purposes.
Definition: Test_JavaVM.h:24
jclass RemoteGetClass(jobject obj, xmog_JNIEnv *env)
Queries for the type of an object.
jint bind_class(const char *name)
Binds a classname to a "handle".
void RemoteGetArrayRegion(const char *arrType, jarray array, jsize start, jsize len, void *buf, xmog_JNIEnv *env)
Returns the values in a region of an array.
An abstract baseclass for concrete JNIEnv implementations.
Definition: xmog_JNIEnv.h:26
Test_JavaVM()
The default constructor.
virtual jarray RemoteNewPrimitiveArray(const char *arrType, xmog::xmog_data_code elemCode, void *pData, jsize length, jsize size, xmog_JNIEnv *env)
Creates a primitive array from the given data and returns the handle.
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.