annotate src/share/vm/prims/jni.h @ 3917:eca1193ca245

4965777: GC changes to support use of discovered field for pending references Summary: If and when the reference handler thread is able to use the discovered field to link reference objects in its pending list, so will GC. In that case, GC will scan through this field once a reference object has been placed on the pending list, but not scan that field before that stage, as the field is used by the concurrent GC thread to link discovered objects. When ReferenceHandleR thread does not use the discovered field for the purpose of linking the elements in the pending list, as would be the case in older JDKs, the JVM will fall back to the old behaviour of using the next field for that purpose. Reviewed-by: jcoomes, mchung, stefank
author ysr
date Wed, 07 Sep 2011 13:55:42 -0700
parents f95d63e2154a
children 499ccc15bbc8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
7 * published by the Free Software Foundation. Oracle designates this
0
a61af66fc99e Initial load
duke
parents:
diff changeset
8 * particular file as subject to the "Classpath" exception as provided
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
9 * by Oracle in the LICENSE file that accompanied this code.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
10 *
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
14 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
16 *
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
18 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
20 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
22 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
23 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
24 */
a61af66fc99e Initial load
duke
parents:
diff changeset
25
a61af66fc99e Initial load
duke
parents:
diff changeset
26 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
27 * We used part of Netscape's Java Runtime Interface (JRI) as the starting
a61af66fc99e Initial load
duke
parents:
diff changeset
28 * point of our design and implementation.
a61af66fc99e Initial load
duke
parents:
diff changeset
29 */
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 /******************************************************************************
a61af66fc99e Initial load
duke
parents:
diff changeset
32 * Java Runtime Interface
a61af66fc99e Initial load
duke
parents:
diff changeset
33 * Copyright (c) 1996 Netscape Communications Corporation. All rights reserved.
a61af66fc99e Initial load
duke
parents:
diff changeset
34 *****************************************************************************/
a61af66fc99e Initial load
duke
parents:
diff changeset
35
a61af66fc99e Initial load
duke
parents:
diff changeset
36 #ifndef _JAVASOFT_JNI_H_
a61af66fc99e Initial load
duke
parents:
diff changeset
37 #define _JAVASOFT_JNI_H_
a61af66fc99e Initial load
duke
parents:
diff changeset
38
a61af66fc99e Initial load
duke
parents:
diff changeset
39 #include <stdio.h>
a61af66fc99e Initial load
duke
parents:
diff changeset
40 #include <stdarg.h>
a61af66fc99e Initial load
duke
parents:
diff changeset
41
a61af66fc99e Initial load
duke
parents:
diff changeset
42 /* jni_md.h contains the machine-dependent typedefs for jbyte, jint
a61af66fc99e Initial load
duke
parents:
diff changeset
43 and jlong */
a61af66fc99e Initial load
duke
parents:
diff changeset
44
a61af66fc99e Initial load
duke
parents:
diff changeset
45 #include "jni_md.h"
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 #ifdef __cplusplus
a61af66fc99e Initial load
duke
parents:
diff changeset
48 extern "C" {
a61af66fc99e Initial load
duke
parents:
diff changeset
49 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
50
a61af66fc99e Initial load
duke
parents:
diff changeset
51 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
52 * JNI Types
a61af66fc99e Initial load
duke
parents:
diff changeset
53 */
a61af66fc99e Initial load
duke
parents:
diff changeset
54
a61af66fc99e Initial load
duke
parents:
diff changeset
55 #ifndef JNI_TYPES_ALREADY_DEFINED_IN_JNI_MD_H
a61af66fc99e Initial load
duke
parents:
diff changeset
56
a61af66fc99e Initial load
duke
parents:
diff changeset
57 typedef unsigned char jboolean;
a61af66fc99e Initial load
duke
parents:
diff changeset
58 typedef unsigned short jchar;
a61af66fc99e Initial load
duke
parents:
diff changeset
59 typedef short jshort;
a61af66fc99e Initial load
duke
parents:
diff changeset
60 typedef float jfloat;
a61af66fc99e Initial load
duke
parents:
diff changeset
61 typedef double jdouble;
a61af66fc99e Initial load
duke
parents:
diff changeset
62
a61af66fc99e Initial load
duke
parents:
diff changeset
63 typedef jint jsize;
a61af66fc99e Initial load
duke
parents:
diff changeset
64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 #ifdef __cplusplus
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 class _jobject {};
a61af66fc99e Initial load
duke
parents:
diff changeset
68 class _jclass : public _jobject {};
a61af66fc99e Initial load
duke
parents:
diff changeset
69 class _jthrowable : public _jobject {};
a61af66fc99e Initial load
duke
parents:
diff changeset
70 class _jstring : public _jobject {};
a61af66fc99e Initial load
duke
parents:
diff changeset
71 class _jarray : public _jobject {};
a61af66fc99e Initial load
duke
parents:
diff changeset
72 class _jbooleanArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
73 class _jbyteArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
74 class _jcharArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
75 class _jshortArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
76 class _jintArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
77 class _jlongArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
78 class _jfloatArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
79 class _jdoubleArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
80 class _jobjectArray : public _jarray {};
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 typedef _jobject *jobject;
a61af66fc99e Initial load
duke
parents:
diff changeset
83 typedef _jclass *jclass;
a61af66fc99e Initial load
duke
parents:
diff changeset
84 typedef _jthrowable *jthrowable;
a61af66fc99e Initial load
duke
parents:
diff changeset
85 typedef _jstring *jstring;
a61af66fc99e Initial load
duke
parents:
diff changeset
86 typedef _jarray *jarray;
a61af66fc99e Initial load
duke
parents:
diff changeset
87 typedef _jbooleanArray *jbooleanArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
88 typedef _jbyteArray *jbyteArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
89 typedef _jcharArray *jcharArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
90 typedef _jshortArray *jshortArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
91 typedef _jintArray *jintArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
92 typedef _jlongArray *jlongArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
93 typedef _jfloatArray *jfloatArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
94 typedef _jdoubleArray *jdoubleArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
95 typedef _jobjectArray *jobjectArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
96
a61af66fc99e Initial load
duke
parents:
diff changeset
97 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99 struct _jobject;
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 typedef struct _jobject *jobject;
a61af66fc99e Initial load
duke
parents:
diff changeset
102 typedef jobject jclass;
a61af66fc99e Initial load
duke
parents:
diff changeset
103 typedef jobject jthrowable;
a61af66fc99e Initial load
duke
parents:
diff changeset
104 typedef jobject jstring;
a61af66fc99e Initial load
duke
parents:
diff changeset
105 typedef jobject jarray;
a61af66fc99e Initial load
duke
parents:
diff changeset
106 typedef jarray jbooleanArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
107 typedef jarray jbyteArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
108 typedef jarray jcharArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
109 typedef jarray jshortArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
110 typedef jarray jintArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
111 typedef jarray jlongArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
112 typedef jarray jfloatArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
113 typedef jarray jdoubleArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
114 typedef jarray jobjectArray;
a61af66fc99e Initial load
duke
parents:
diff changeset
115
a61af66fc99e Initial load
duke
parents:
diff changeset
116 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 typedef jobject jweak;
a61af66fc99e Initial load
duke
parents:
diff changeset
119
a61af66fc99e Initial load
duke
parents:
diff changeset
120 typedef union jvalue {
a61af66fc99e Initial load
duke
parents:
diff changeset
121 jboolean z;
a61af66fc99e Initial load
duke
parents:
diff changeset
122 jbyte b;
a61af66fc99e Initial load
duke
parents:
diff changeset
123 jchar c;
a61af66fc99e Initial load
duke
parents:
diff changeset
124 jshort s;
a61af66fc99e Initial load
duke
parents:
diff changeset
125 jint i;
a61af66fc99e Initial load
duke
parents:
diff changeset
126 jlong j;
a61af66fc99e Initial load
duke
parents:
diff changeset
127 jfloat f;
a61af66fc99e Initial load
duke
parents:
diff changeset
128 jdouble d;
a61af66fc99e Initial load
duke
parents:
diff changeset
129 jobject l;
a61af66fc99e Initial load
duke
parents:
diff changeset
130 } jvalue;
a61af66fc99e Initial load
duke
parents:
diff changeset
131
a61af66fc99e Initial load
duke
parents:
diff changeset
132 struct _jfieldID;
a61af66fc99e Initial load
duke
parents:
diff changeset
133 typedef struct _jfieldID *jfieldID;
a61af66fc99e Initial load
duke
parents:
diff changeset
134
a61af66fc99e Initial load
duke
parents:
diff changeset
135 struct _jmethodID;
a61af66fc99e Initial load
duke
parents:
diff changeset
136 typedef struct _jmethodID *jmethodID;
a61af66fc99e Initial load
duke
parents:
diff changeset
137
a61af66fc99e Initial load
duke
parents:
diff changeset
138 /* Return values from jobjectRefType */
a61af66fc99e Initial load
duke
parents:
diff changeset
139 typedef enum _jobjectType {
a61af66fc99e Initial load
duke
parents:
diff changeset
140 JNIInvalidRefType = 0,
a61af66fc99e Initial load
duke
parents:
diff changeset
141 JNILocalRefType = 1,
a61af66fc99e Initial load
duke
parents:
diff changeset
142 JNIGlobalRefType = 2,
a61af66fc99e Initial load
duke
parents:
diff changeset
143 JNIWeakGlobalRefType = 3
a61af66fc99e Initial load
duke
parents:
diff changeset
144 } jobjectRefType;
a61af66fc99e Initial load
duke
parents:
diff changeset
145
a61af66fc99e Initial load
duke
parents:
diff changeset
146
a61af66fc99e Initial load
duke
parents:
diff changeset
147 #endif /* JNI_TYPES_ALREADY_DEFINED_IN_JNI_MD_H */
a61af66fc99e Initial load
duke
parents:
diff changeset
148
a61af66fc99e Initial load
duke
parents:
diff changeset
149 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
150 * jboolean constants
a61af66fc99e Initial load
duke
parents:
diff changeset
151 */
a61af66fc99e Initial load
duke
parents:
diff changeset
152
a61af66fc99e Initial load
duke
parents:
diff changeset
153 #define JNI_FALSE 0
a61af66fc99e Initial load
duke
parents:
diff changeset
154 #define JNI_TRUE 1
a61af66fc99e Initial load
duke
parents:
diff changeset
155
a61af66fc99e Initial load
duke
parents:
diff changeset
156 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
157 * possible return values for JNI functions.
a61af66fc99e Initial load
duke
parents:
diff changeset
158 */
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 #define JNI_OK 0 /* success */
a61af66fc99e Initial load
duke
parents:
diff changeset
161 #define JNI_ERR (-1) /* unknown error */
a61af66fc99e Initial load
duke
parents:
diff changeset
162 #define JNI_EDETACHED (-2) /* thread detached from the VM */
a61af66fc99e Initial load
duke
parents:
diff changeset
163 #define JNI_EVERSION (-3) /* JNI version error */
a61af66fc99e Initial load
duke
parents:
diff changeset
164 #define JNI_ENOMEM (-4) /* not enough memory */
a61af66fc99e Initial load
duke
parents:
diff changeset
165 #define JNI_EEXIST (-5) /* VM already created */
a61af66fc99e Initial load
duke
parents:
diff changeset
166 #define JNI_EINVAL (-6) /* invalid arguments */
a61af66fc99e Initial load
duke
parents:
diff changeset
167
a61af66fc99e Initial load
duke
parents:
diff changeset
168 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
169 * used in ReleaseScalarArrayElements
a61af66fc99e Initial load
duke
parents:
diff changeset
170 */
a61af66fc99e Initial load
duke
parents:
diff changeset
171
a61af66fc99e Initial load
duke
parents:
diff changeset
172 #define JNI_COMMIT 1
a61af66fc99e Initial load
duke
parents:
diff changeset
173 #define JNI_ABORT 2
a61af66fc99e Initial load
duke
parents:
diff changeset
174
a61af66fc99e Initial load
duke
parents:
diff changeset
175 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
176 * used in RegisterNatives to describe native method name, signature,
a61af66fc99e Initial load
duke
parents:
diff changeset
177 * and function pointer.
a61af66fc99e Initial load
duke
parents:
diff changeset
178 */
a61af66fc99e Initial load
duke
parents:
diff changeset
179
a61af66fc99e Initial load
duke
parents:
diff changeset
180 typedef struct {
a61af66fc99e Initial load
duke
parents:
diff changeset
181 char *name;
a61af66fc99e Initial load
duke
parents:
diff changeset
182 char *signature;
a61af66fc99e Initial load
duke
parents:
diff changeset
183 void *fnPtr;
a61af66fc99e Initial load
duke
parents:
diff changeset
184 } JNINativeMethod;
a61af66fc99e Initial load
duke
parents:
diff changeset
185
a61af66fc99e Initial load
duke
parents:
diff changeset
186 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
187 * JNI Native Method Interface.
a61af66fc99e Initial load
duke
parents:
diff changeset
188 */
a61af66fc99e Initial load
duke
parents:
diff changeset
189
a61af66fc99e Initial load
duke
parents:
diff changeset
190 struct JNINativeInterface_;
a61af66fc99e Initial load
duke
parents:
diff changeset
191
a61af66fc99e Initial load
duke
parents:
diff changeset
192 struct JNIEnv_;
a61af66fc99e Initial load
duke
parents:
diff changeset
193
a61af66fc99e Initial load
duke
parents:
diff changeset
194 #ifdef __cplusplus
a61af66fc99e Initial load
duke
parents:
diff changeset
195 typedef JNIEnv_ JNIEnv;
a61af66fc99e Initial load
duke
parents:
diff changeset
196 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
197 typedef const struct JNINativeInterface_ *JNIEnv;
a61af66fc99e Initial load
duke
parents:
diff changeset
198 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
199
a61af66fc99e Initial load
duke
parents:
diff changeset
200 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
201 * JNI Invocation Interface.
a61af66fc99e Initial load
duke
parents:
diff changeset
202 */
a61af66fc99e Initial load
duke
parents:
diff changeset
203
a61af66fc99e Initial load
duke
parents:
diff changeset
204 struct JNIInvokeInterface_;
a61af66fc99e Initial load
duke
parents:
diff changeset
205
a61af66fc99e Initial load
duke
parents:
diff changeset
206 struct JavaVM_;
a61af66fc99e Initial load
duke
parents:
diff changeset
207
a61af66fc99e Initial load
duke
parents:
diff changeset
208 #ifdef __cplusplus
a61af66fc99e Initial load
duke
parents:
diff changeset
209 typedef JavaVM_ JavaVM;
a61af66fc99e Initial load
duke
parents:
diff changeset
210 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
211 typedef const struct JNIInvokeInterface_ *JavaVM;
a61af66fc99e Initial load
duke
parents:
diff changeset
212 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
213
a61af66fc99e Initial load
duke
parents:
diff changeset
214 struct JNINativeInterface_ {
a61af66fc99e Initial load
duke
parents:
diff changeset
215 void *reserved0;
a61af66fc99e Initial load
duke
parents:
diff changeset
216 void *reserved1;
a61af66fc99e Initial load
duke
parents:
diff changeset
217 void *reserved2;
a61af66fc99e Initial load
duke
parents:
diff changeset
218
a61af66fc99e Initial load
duke
parents:
diff changeset
219 void *reserved3;
a61af66fc99e Initial load
duke
parents:
diff changeset
220 jint (JNICALL *GetVersion)(JNIEnv *env);
a61af66fc99e Initial load
duke
parents:
diff changeset
221
a61af66fc99e Initial load
duke
parents:
diff changeset
222 jclass (JNICALL *DefineClass)
a61af66fc99e Initial load
duke
parents:
diff changeset
223 (JNIEnv *env, const char *name, jobject loader, const jbyte *buf,
a61af66fc99e Initial load
duke
parents:
diff changeset
224 jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
225 jclass (JNICALL *FindClass)
a61af66fc99e Initial load
duke
parents:
diff changeset
226 (JNIEnv *env, const char *name);
a61af66fc99e Initial load
duke
parents:
diff changeset
227
a61af66fc99e Initial load
duke
parents:
diff changeset
228 jmethodID (JNICALL *FromReflectedMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
229 (JNIEnv *env, jobject method);
a61af66fc99e Initial load
duke
parents:
diff changeset
230 jfieldID (JNICALL *FromReflectedField)
a61af66fc99e Initial load
duke
parents:
diff changeset
231 (JNIEnv *env, jobject field);
a61af66fc99e Initial load
duke
parents:
diff changeset
232
a61af66fc99e Initial load
duke
parents:
diff changeset
233 jobject (JNICALL *ToReflectedMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
234 (JNIEnv *env, jclass cls, jmethodID methodID, jboolean isStatic);
a61af66fc99e Initial load
duke
parents:
diff changeset
235
a61af66fc99e Initial load
duke
parents:
diff changeset
236 jclass (JNICALL *GetSuperclass)
a61af66fc99e Initial load
duke
parents:
diff changeset
237 (JNIEnv *env, jclass sub);
a61af66fc99e Initial load
duke
parents:
diff changeset
238 jboolean (JNICALL *IsAssignableFrom)
a61af66fc99e Initial load
duke
parents:
diff changeset
239 (JNIEnv *env, jclass sub, jclass sup);
a61af66fc99e Initial load
duke
parents:
diff changeset
240
a61af66fc99e Initial load
duke
parents:
diff changeset
241 jobject (JNICALL *ToReflectedField)
a61af66fc99e Initial load
duke
parents:
diff changeset
242 (JNIEnv *env, jclass cls, jfieldID fieldID, jboolean isStatic);
a61af66fc99e Initial load
duke
parents:
diff changeset
243
a61af66fc99e Initial load
duke
parents:
diff changeset
244 jint (JNICALL *Throw)
a61af66fc99e Initial load
duke
parents:
diff changeset
245 (JNIEnv *env, jthrowable obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
246 jint (JNICALL *ThrowNew)
a61af66fc99e Initial load
duke
parents:
diff changeset
247 (JNIEnv *env, jclass clazz, const char *msg);
a61af66fc99e Initial load
duke
parents:
diff changeset
248 jthrowable (JNICALL *ExceptionOccurred)
a61af66fc99e Initial load
duke
parents:
diff changeset
249 (JNIEnv *env);
a61af66fc99e Initial load
duke
parents:
diff changeset
250 void (JNICALL *ExceptionDescribe)
a61af66fc99e Initial load
duke
parents:
diff changeset
251 (JNIEnv *env);
a61af66fc99e Initial load
duke
parents:
diff changeset
252 void (JNICALL *ExceptionClear)
a61af66fc99e Initial load
duke
parents:
diff changeset
253 (JNIEnv *env);
a61af66fc99e Initial load
duke
parents:
diff changeset
254 void (JNICALL *FatalError)
a61af66fc99e Initial load
duke
parents:
diff changeset
255 (JNIEnv *env, const char *msg);
a61af66fc99e Initial load
duke
parents:
diff changeset
256
a61af66fc99e Initial load
duke
parents:
diff changeset
257 jint (JNICALL *PushLocalFrame)
a61af66fc99e Initial load
duke
parents:
diff changeset
258 (JNIEnv *env, jint capacity);
a61af66fc99e Initial load
duke
parents:
diff changeset
259 jobject (JNICALL *PopLocalFrame)
a61af66fc99e Initial load
duke
parents:
diff changeset
260 (JNIEnv *env, jobject result);
a61af66fc99e Initial load
duke
parents:
diff changeset
261
a61af66fc99e Initial load
duke
parents:
diff changeset
262 jobject (JNICALL *NewGlobalRef)
a61af66fc99e Initial load
duke
parents:
diff changeset
263 (JNIEnv *env, jobject lobj);
a61af66fc99e Initial load
duke
parents:
diff changeset
264 void (JNICALL *DeleteGlobalRef)
a61af66fc99e Initial load
duke
parents:
diff changeset
265 (JNIEnv *env, jobject gref);
a61af66fc99e Initial load
duke
parents:
diff changeset
266 void (JNICALL *DeleteLocalRef)
a61af66fc99e Initial load
duke
parents:
diff changeset
267 (JNIEnv *env, jobject obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
268 jboolean (JNICALL *IsSameObject)
a61af66fc99e Initial load
duke
parents:
diff changeset
269 (JNIEnv *env, jobject obj1, jobject obj2);
a61af66fc99e Initial load
duke
parents:
diff changeset
270 jobject (JNICALL *NewLocalRef)
a61af66fc99e Initial load
duke
parents:
diff changeset
271 (JNIEnv *env, jobject ref);
a61af66fc99e Initial load
duke
parents:
diff changeset
272 jint (JNICALL *EnsureLocalCapacity)
a61af66fc99e Initial load
duke
parents:
diff changeset
273 (JNIEnv *env, jint capacity);
a61af66fc99e Initial load
duke
parents:
diff changeset
274
a61af66fc99e Initial load
duke
parents:
diff changeset
275 jobject (JNICALL *AllocObject)
a61af66fc99e Initial load
duke
parents:
diff changeset
276 (JNIEnv *env, jclass clazz);
a61af66fc99e Initial load
duke
parents:
diff changeset
277 jobject (JNICALL *NewObject)
a61af66fc99e Initial load
duke
parents:
diff changeset
278 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
279 jobject (JNICALL *NewObjectV)
a61af66fc99e Initial load
duke
parents:
diff changeset
280 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
281 jobject (JNICALL *NewObjectA)
a61af66fc99e Initial load
duke
parents:
diff changeset
282 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
283
a61af66fc99e Initial load
duke
parents:
diff changeset
284 jclass (JNICALL *GetObjectClass)
a61af66fc99e Initial load
duke
parents:
diff changeset
285 (JNIEnv *env, jobject obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
286 jboolean (JNICALL *IsInstanceOf)
a61af66fc99e Initial load
duke
parents:
diff changeset
287 (JNIEnv *env, jobject obj, jclass clazz);
a61af66fc99e Initial load
duke
parents:
diff changeset
288
a61af66fc99e Initial load
duke
parents:
diff changeset
289 jmethodID (JNICALL *GetMethodID)
a61af66fc99e Initial load
duke
parents:
diff changeset
290 (JNIEnv *env, jclass clazz, const char *name, const char *sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
291
a61af66fc99e Initial load
duke
parents:
diff changeset
292 jobject (JNICALL *CallObjectMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
293 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
294 jobject (JNICALL *CallObjectMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
295 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
296 jobject (JNICALL *CallObjectMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
297 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue * args);
a61af66fc99e Initial load
duke
parents:
diff changeset
298
a61af66fc99e Initial load
duke
parents:
diff changeset
299 jboolean (JNICALL *CallBooleanMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
300 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
301 jboolean (JNICALL *CallBooleanMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
302 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
303 jboolean (JNICALL *CallBooleanMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
304 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue * args);
a61af66fc99e Initial load
duke
parents:
diff changeset
305
a61af66fc99e Initial load
duke
parents:
diff changeset
306 jbyte (JNICALL *CallByteMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
307 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
308 jbyte (JNICALL *CallByteMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
309 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
310 jbyte (JNICALL *CallByteMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
311 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
312
a61af66fc99e Initial load
duke
parents:
diff changeset
313 jchar (JNICALL *CallCharMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
314 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
315 jchar (JNICALL *CallCharMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
316 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
317 jchar (JNICALL *CallCharMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
318 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
319
a61af66fc99e Initial load
duke
parents:
diff changeset
320 jshort (JNICALL *CallShortMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
321 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
322 jshort (JNICALL *CallShortMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
323 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
324 jshort (JNICALL *CallShortMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
325 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
326
a61af66fc99e Initial load
duke
parents:
diff changeset
327 jint (JNICALL *CallIntMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
328 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
329 jint (JNICALL *CallIntMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
330 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
331 jint (JNICALL *CallIntMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
332 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
333
a61af66fc99e Initial load
duke
parents:
diff changeset
334 jlong (JNICALL *CallLongMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
335 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
336 jlong (JNICALL *CallLongMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
337 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
338 jlong (JNICALL *CallLongMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
339 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
340
a61af66fc99e Initial load
duke
parents:
diff changeset
341 jfloat (JNICALL *CallFloatMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
342 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
343 jfloat (JNICALL *CallFloatMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
344 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
345 jfloat (JNICALL *CallFloatMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
346 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
347
a61af66fc99e Initial load
duke
parents:
diff changeset
348 jdouble (JNICALL *CallDoubleMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
349 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
350 jdouble (JNICALL *CallDoubleMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
351 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
352 jdouble (JNICALL *CallDoubleMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
353 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
354
a61af66fc99e Initial load
duke
parents:
diff changeset
355 void (JNICALL *CallVoidMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
356 (JNIEnv *env, jobject obj, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
357 void (JNICALL *CallVoidMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
358 (JNIEnv *env, jobject obj, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
359 void (JNICALL *CallVoidMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
360 (JNIEnv *env, jobject obj, jmethodID methodID, const jvalue * args);
a61af66fc99e Initial load
duke
parents:
diff changeset
361
a61af66fc99e Initial load
duke
parents:
diff changeset
362 jobject (JNICALL *CallNonvirtualObjectMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
363 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
364 jobject (JNICALL *CallNonvirtualObjectMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
365 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
366 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
367 jobject (JNICALL *CallNonvirtualObjectMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
368 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
369 const jvalue * args);
a61af66fc99e Initial load
duke
parents:
diff changeset
370
a61af66fc99e Initial load
duke
parents:
diff changeset
371 jboolean (JNICALL *CallNonvirtualBooleanMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
372 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
373 jboolean (JNICALL *CallNonvirtualBooleanMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
374 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
375 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
376 jboolean (JNICALL *CallNonvirtualBooleanMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
377 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
378 const jvalue * args);
a61af66fc99e Initial load
duke
parents:
diff changeset
379
a61af66fc99e Initial load
duke
parents:
diff changeset
380 jbyte (JNICALL *CallNonvirtualByteMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
381 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
382 jbyte (JNICALL *CallNonvirtualByteMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
383 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
384 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
385 jbyte (JNICALL *CallNonvirtualByteMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
386 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
387 const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
388
a61af66fc99e Initial load
duke
parents:
diff changeset
389 jchar (JNICALL *CallNonvirtualCharMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
390 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
391 jchar (JNICALL *CallNonvirtualCharMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
392 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
393 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
394 jchar (JNICALL *CallNonvirtualCharMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
395 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
396 const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
397
a61af66fc99e Initial load
duke
parents:
diff changeset
398 jshort (JNICALL *CallNonvirtualShortMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
399 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
400 jshort (JNICALL *CallNonvirtualShortMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
401 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
402 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
403 jshort (JNICALL *CallNonvirtualShortMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
404 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
405 const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
406
a61af66fc99e Initial load
duke
parents:
diff changeset
407 jint (JNICALL *CallNonvirtualIntMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
408 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
409 jint (JNICALL *CallNonvirtualIntMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
410 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
411 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
412 jint (JNICALL *CallNonvirtualIntMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
413 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
414 const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
415
a61af66fc99e Initial load
duke
parents:
diff changeset
416 jlong (JNICALL *CallNonvirtualLongMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
417 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
418 jlong (JNICALL *CallNonvirtualLongMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
419 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
420 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
421 jlong (JNICALL *CallNonvirtualLongMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
422 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
423 const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
424
a61af66fc99e Initial load
duke
parents:
diff changeset
425 jfloat (JNICALL *CallNonvirtualFloatMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
426 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
427 jfloat (JNICALL *CallNonvirtualFloatMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
428 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
429 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
430 jfloat (JNICALL *CallNonvirtualFloatMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
431 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
432 const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
433
a61af66fc99e Initial load
duke
parents:
diff changeset
434 jdouble (JNICALL *CallNonvirtualDoubleMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
435 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
436 jdouble (JNICALL *CallNonvirtualDoubleMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
437 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
438 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
439 jdouble (JNICALL *CallNonvirtualDoubleMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
440 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
441 const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
442
a61af66fc99e Initial load
duke
parents:
diff changeset
443 void (JNICALL *CallNonvirtualVoidMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
444 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
445 void (JNICALL *CallNonvirtualVoidMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
446 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
447 va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
448 void (JNICALL *CallNonvirtualVoidMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
449 (JNIEnv *env, jobject obj, jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
450 const jvalue * args);
a61af66fc99e Initial load
duke
parents:
diff changeset
451
a61af66fc99e Initial load
duke
parents:
diff changeset
452 jfieldID (JNICALL *GetFieldID)
a61af66fc99e Initial load
duke
parents:
diff changeset
453 (JNIEnv *env, jclass clazz, const char *name, const char *sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
454
a61af66fc99e Initial load
duke
parents:
diff changeset
455 jobject (JNICALL *GetObjectField)
a61af66fc99e Initial load
duke
parents:
diff changeset
456 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
457 jboolean (JNICALL *GetBooleanField)
a61af66fc99e Initial load
duke
parents:
diff changeset
458 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
459 jbyte (JNICALL *GetByteField)
a61af66fc99e Initial load
duke
parents:
diff changeset
460 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
461 jchar (JNICALL *GetCharField)
a61af66fc99e Initial load
duke
parents:
diff changeset
462 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
463 jshort (JNICALL *GetShortField)
a61af66fc99e Initial load
duke
parents:
diff changeset
464 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
465 jint (JNICALL *GetIntField)
a61af66fc99e Initial load
duke
parents:
diff changeset
466 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
467 jlong (JNICALL *GetLongField)
a61af66fc99e Initial load
duke
parents:
diff changeset
468 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
469 jfloat (JNICALL *GetFloatField)
a61af66fc99e Initial load
duke
parents:
diff changeset
470 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
471 jdouble (JNICALL *GetDoubleField)
a61af66fc99e Initial load
duke
parents:
diff changeset
472 (JNIEnv *env, jobject obj, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
473
a61af66fc99e Initial load
duke
parents:
diff changeset
474 void (JNICALL *SetObjectField)
a61af66fc99e Initial load
duke
parents:
diff changeset
475 (JNIEnv *env, jobject obj, jfieldID fieldID, jobject val);
a61af66fc99e Initial load
duke
parents:
diff changeset
476 void (JNICALL *SetBooleanField)
a61af66fc99e Initial load
duke
parents:
diff changeset
477 (JNIEnv *env, jobject obj, jfieldID fieldID, jboolean val);
a61af66fc99e Initial load
duke
parents:
diff changeset
478 void (JNICALL *SetByteField)
a61af66fc99e Initial load
duke
parents:
diff changeset
479 (JNIEnv *env, jobject obj, jfieldID fieldID, jbyte val);
a61af66fc99e Initial load
duke
parents:
diff changeset
480 void (JNICALL *SetCharField)
a61af66fc99e Initial load
duke
parents:
diff changeset
481 (JNIEnv *env, jobject obj, jfieldID fieldID, jchar val);
a61af66fc99e Initial load
duke
parents:
diff changeset
482 void (JNICALL *SetShortField)
a61af66fc99e Initial load
duke
parents:
diff changeset
483 (JNIEnv *env, jobject obj, jfieldID fieldID, jshort val);
a61af66fc99e Initial load
duke
parents:
diff changeset
484 void (JNICALL *SetIntField)
a61af66fc99e Initial load
duke
parents:
diff changeset
485 (JNIEnv *env, jobject obj, jfieldID fieldID, jint val);
a61af66fc99e Initial load
duke
parents:
diff changeset
486 void (JNICALL *SetLongField)
a61af66fc99e Initial load
duke
parents:
diff changeset
487 (JNIEnv *env, jobject obj, jfieldID fieldID, jlong val);
a61af66fc99e Initial load
duke
parents:
diff changeset
488 void (JNICALL *SetFloatField)
a61af66fc99e Initial load
duke
parents:
diff changeset
489 (JNIEnv *env, jobject obj, jfieldID fieldID, jfloat val);
a61af66fc99e Initial load
duke
parents:
diff changeset
490 void (JNICALL *SetDoubleField)
a61af66fc99e Initial load
duke
parents:
diff changeset
491 (JNIEnv *env, jobject obj, jfieldID fieldID, jdouble val);
a61af66fc99e Initial load
duke
parents:
diff changeset
492
a61af66fc99e Initial load
duke
parents:
diff changeset
493 jmethodID (JNICALL *GetStaticMethodID)
a61af66fc99e Initial load
duke
parents:
diff changeset
494 (JNIEnv *env, jclass clazz, const char *name, const char *sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
495
a61af66fc99e Initial load
duke
parents:
diff changeset
496 jobject (JNICALL *CallStaticObjectMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
497 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
498 jobject (JNICALL *CallStaticObjectMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
499 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
500 jobject (JNICALL *CallStaticObjectMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
501 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
502
a61af66fc99e Initial load
duke
parents:
diff changeset
503 jboolean (JNICALL *CallStaticBooleanMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
504 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
505 jboolean (JNICALL *CallStaticBooleanMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
506 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
507 jboolean (JNICALL *CallStaticBooleanMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
508 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
509
a61af66fc99e Initial load
duke
parents:
diff changeset
510 jbyte (JNICALL *CallStaticByteMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
511 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
512 jbyte (JNICALL *CallStaticByteMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
513 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
514 jbyte (JNICALL *CallStaticByteMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
515 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
516
a61af66fc99e Initial load
duke
parents:
diff changeset
517 jchar (JNICALL *CallStaticCharMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
518 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
519 jchar (JNICALL *CallStaticCharMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
520 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
521 jchar (JNICALL *CallStaticCharMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
522 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
523
a61af66fc99e Initial load
duke
parents:
diff changeset
524 jshort (JNICALL *CallStaticShortMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
525 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
526 jshort (JNICALL *CallStaticShortMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
527 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
528 jshort (JNICALL *CallStaticShortMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
529 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
530
a61af66fc99e Initial load
duke
parents:
diff changeset
531 jint (JNICALL *CallStaticIntMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
532 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
533 jint (JNICALL *CallStaticIntMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
534 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
535 jint (JNICALL *CallStaticIntMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
536 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
537
a61af66fc99e Initial load
duke
parents:
diff changeset
538 jlong (JNICALL *CallStaticLongMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
539 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
540 jlong (JNICALL *CallStaticLongMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
541 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
542 jlong (JNICALL *CallStaticLongMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
543 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
544
a61af66fc99e Initial load
duke
parents:
diff changeset
545 jfloat (JNICALL *CallStaticFloatMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
546 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
547 jfloat (JNICALL *CallStaticFloatMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
548 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
549 jfloat (JNICALL *CallStaticFloatMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
550 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
551
a61af66fc99e Initial load
duke
parents:
diff changeset
552 jdouble (JNICALL *CallStaticDoubleMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
553 (JNIEnv *env, jclass clazz, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
554 jdouble (JNICALL *CallStaticDoubleMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
555 (JNIEnv *env, jclass clazz, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
556 jdouble (JNICALL *CallStaticDoubleMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
557 (JNIEnv *env, jclass clazz, jmethodID methodID, const jvalue *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
558
a61af66fc99e Initial load
duke
parents:
diff changeset
559 void (JNICALL *CallStaticVoidMethod)
a61af66fc99e Initial load
duke
parents:
diff changeset
560 (JNIEnv *env, jclass cls, jmethodID methodID, ...);
a61af66fc99e Initial load
duke
parents:
diff changeset
561 void (JNICALL *CallStaticVoidMethodV)
a61af66fc99e Initial load
duke
parents:
diff changeset
562 (JNIEnv *env, jclass cls, jmethodID methodID, va_list args);
a61af66fc99e Initial load
duke
parents:
diff changeset
563 void (JNICALL *CallStaticVoidMethodA)
a61af66fc99e Initial load
duke
parents:
diff changeset
564 (JNIEnv *env, jclass cls, jmethodID methodID, const jvalue * args);
a61af66fc99e Initial load
duke
parents:
diff changeset
565
a61af66fc99e Initial load
duke
parents:
diff changeset
566 jfieldID (JNICALL *GetStaticFieldID)
a61af66fc99e Initial load
duke
parents:
diff changeset
567 (JNIEnv *env, jclass clazz, const char *name, const char *sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
568 jobject (JNICALL *GetStaticObjectField)
a61af66fc99e Initial load
duke
parents:
diff changeset
569 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
570 jboolean (JNICALL *GetStaticBooleanField)
a61af66fc99e Initial load
duke
parents:
diff changeset
571 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
572 jbyte (JNICALL *GetStaticByteField)
a61af66fc99e Initial load
duke
parents:
diff changeset
573 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
574 jchar (JNICALL *GetStaticCharField)
a61af66fc99e Initial load
duke
parents:
diff changeset
575 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
576 jshort (JNICALL *GetStaticShortField)
a61af66fc99e Initial load
duke
parents:
diff changeset
577 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
578 jint (JNICALL *GetStaticIntField)
a61af66fc99e Initial load
duke
parents:
diff changeset
579 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
580 jlong (JNICALL *GetStaticLongField)
a61af66fc99e Initial load
duke
parents:
diff changeset
581 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
582 jfloat (JNICALL *GetStaticFloatField)
a61af66fc99e Initial load
duke
parents:
diff changeset
583 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
584 jdouble (JNICALL *GetStaticDoubleField)
a61af66fc99e Initial load
duke
parents:
diff changeset
585 (JNIEnv *env, jclass clazz, jfieldID fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
586
a61af66fc99e Initial load
duke
parents:
diff changeset
587 void (JNICALL *SetStaticObjectField)
a61af66fc99e Initial load
duke
parents:
diff changeset
588 (JNIEnv *env, jclass clazz, jfieldID fieldID, jobject value);
a61af66fc99e Initial load
duke
parents:
diff changeset
589 void (JNICALL *SetStaticBooleanField)
a61af66fc99e Initial load
duke
parents:
diff changeset
590 (JNIEnv *env, jclass clazz, jfieldID fieldID, jboolean value);
a61af66fc99e Initial load
duke
parents:
diff changeset
591 void (JNICALL *SetStaticByteField)
a61af66fc99e Initial load
duke
parents:
diff changeset
592 (JNIEnv *env, jclass clazz, jfieldID fieldID, jbyte value);
a61af66fc99e Initial load
duke
parents:
diff changeset
593 void (JNICALL *SetStaticCharField)
a61af66fc99e Initial load
duke
parents:
diff changeset
594 (JNIEnv *env, jclass clazz, jfieldID fieldID, jchar value);
a61af66fc99e Initial load
duke
parents:
diff changeset
595 void (JNICALL *SetStaticShortField)
a61af66fc99e Initial load
duke
parents:
diff changeset
596 (JNIEnv *env, jclass clazz, jfieldID fieldID, jshort value);
a61af66fc99e Initial load
duke
parents:
diff changeset
597 void (JNICALL *SetStaticIntField)
a61af66fc99e Initial load
duke
parents:
diff changeset
598 (JNIEnv *env, jclass clazz, jfieldID fieldID, jint value);
a61af66fc99e Initial load
duke
parents:
diff changeset
599 void (JNICALL *SetStaticLongField)
a61af66fc99e Initial load
duke
parents:
diff changeset
600 (JNIEnv *env, jclass clazz, jfieldID fieldID, jlong value);
a61af66fc99e Initial load
duke
parents:
diff changeset
601 void (JNICALL *SetStaticFloatField)
a61af66fc99e Initial load
duke
parents:
diff changeset
602 (JNIEnv *env, jclass clazz, jfieldID fieldID, jfloat value);
a61af66fc99e Initial load
duke
parents:
diff changeset
603 void (JNICALL *SetStaticDoubleField)
a61af66fc99e Initial load
duke
parents:
diff changeset
604 (JNIEnv *env, jclass clazz, jfieldID fieldID, jdouble value);
a61af66fc99e Initial load
duke
parents:
diff changeset
605
a61af66fc99e Initial load
duke
parents:
diff changeset
606 jstring (JNICALL *NewString)
a61af66fc99e Initial load
duke
parents:
diff changeset
607 (JNIEnv *env, const jchar *unicode, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
608 jsize (JNICALL *GetStringLength)
a61af66fc99e Initial load
duke
parents:
diff changeset
609 (JNIEnv *env, jstring str);
a61af66fc99e Initial load
duke
parents:
diff changeset
610 const jchar *(JNICALL *GetStringChars)
a61af66fc99e Initial load
duke
parents:
diff changeset
611 (JNIEnv *env, jstring str, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
612 void (JNICALL *ReleaseStringChars)
a61af66fc99e Initial load
duke
parents:
diff changeset
613 (JNIEnv *env, jstring str, const jchar *chars);
a61af66fc99e Initial load
duke
parents:
diff changeset
614
a61af66fc99e Initial load
duke
parents:
diff changeset
615 jstring (JNICALL *NewStringUTF)
a61af66fc99e Initial load
duke
parents:
diff changeset
616 (JNIEnv *env, const char *utf);
a61af66fc99e Initial load
duke
parents:
diff changeset
617 jsize (JNICALL *GetStringUTFLength)
a61af66fc99e Initial load
duke
parents:
diff changeset
618 (JNIEnv *env, jstring str);
a61af66fc99e Initial load
duke
parents:
diff changeset
619 const char* (JNICALL *GetStringUTFChars)
a61af66fc99e Initial load
duke
parents:
diff changeset
620 (JNIEnv *env, jstring str, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
621 void (JNICALL *ReleaseStringUTFChars)
a61af66fc99e Initial load
duke
parents:
diff changeset
622 (JNIEnv *env, jstring str, const char* chars);
a61af66fc99e Initial load
duke
parents:
diff changeset
623
a61af66fc99e Initial load
duke
parents:
diff changeset
624
a61af66fc99e Initial load
duke
parents:
diff changeset
625 jsize (JNICALL *GetArrayLength)
a61af66fc99e Initial load
duke
parents:
diff changeset
626 (JNIEnv *env, jarray array);
a61af66fc99e Initial load
duke
parents:
diff changeset
627
a61af66fc99e Initial load
duke
parents:
diff changeset
628 jobjectArray (JNICALL *NewObjectArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
629 (JNIEnv *env, jsize len, jclass clazz, jobject init);
a61af66fc99e Initial load
duke
parents:
diff changeset
630 jobject (JNICALL *GetObjectArrayElement)
a61af66fc99e Initial load
duke
parents:
diff changeset
631 (JNIEnv *env, jobjectArray array, jsize index);
a61af66fc99e Initial load
duke
parents:
diff changeset
632 void (JNICALL *SetObjectArrayElement)
a61af66fc99e Initial load
duke
parents:
diff changeset
633 (JNIEnv *env, jobjectArray array, jsize index, jobject val);
a61af66fc99e Initial load
duke
parents:
diff changeset
634
a61af66fc99e Initial load
duke
parents:
diff changeset
635 jbooleanArray (JNICALL *NewBooleanArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
636 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
637 jbyteArray (JNICALL *NewByteArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
638 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
639 jcharArray (JNICALL *NewCharArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
640 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
641 jshortArray (JNICALL *NewShortArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
642 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
643 jintArray (JNICALL *NewIntArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
644 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
645 jlongArray (JNICALL *NewLongArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
646 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
647 jfloatArray (JNICALL *NewFloatArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
648 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
649 jdoubleArray (JNICALL *NewDoubleArray)
a61af66fc99e Initial load
duke
parents:
diff changeset
650 (JNIEnv *env, jsize len);
a61af66fc99e Initial load
duke
parents:
diff changeset
651
a61af66fc99e Initial load
duke
parents:
diff changeset
652 jboolean * (JNICALL *GetBooleanArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
653 (JNIEnv *env, jbooleanArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
654 jbyte * (JNICALL *GetByteArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
655 (JNIEnv *env, jbyteArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
656 jchar * (JNICALL *GetCharArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
657 (JNIEnv *env, jcharArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
658 jshort * (JNICALL *GetShortArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
659 (JNIEnv *env, jshortArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
660 jint * (JNICALL *GetIntArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
661 (JNIEnv *env, jintArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
662 jlong * (JNICALL *GetLongArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
663 (JNIEnv *env, jlongArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
664 jfloat * (JNICALL *GetFloatArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
665 (JNIEnv *env, jfloatArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
666 jdouble * (JNICALL *GetDoubleArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
667 (JNIEnv *env, jdoubleArray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
668
a61af66fc99e Initial load
duke
parents:
diff changeset
669 void (JNICALL *ReleaseBooleanArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
670 (JNIEnv *env, jbooleanArray array, jboolean *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
671 void (JNICALL *ReleaseByteArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
672 (JNIEnv *env, jbyteArray array, jbyte *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
673 void (JNICALL *ReleaseCharArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
674 (JNIEnv *env, jcharArray array, jchar *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
675 void (JNICALL *ReleaseShortArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
676 (JNIEnv *env, jshortArray array, jshort *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
677 void (JNICALL *ReleaseIntArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
678 (JNIEnv *env, jintArray array, jint *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
679 void (JNICALL *ReleaseLongArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
680 (JNIEnv *env, jlongArray array, jlong *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
681 void (JNICALL *ReleaseFloatArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
682 (JNIEnv *env, jfloatArray array, jfloat *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
683 void (JNICALL *ReleaseDoubleArrayElements)
a61af66fc99e Initial load
duke
parents:
diff changeset
684 (JNIEnv *env, jdoubleArray array, jdouble *elems, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
685
a61af66fc99e Initial load
duke
parents:
diff changeset
686 void (JNICALL *GetBooleanArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
687 (JNIEnv *env, jbooleanArray array, jsize start, jsize l, jboolean *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
688 void (JNICALL *GetByteArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
689 (JNIEnv *env, jbyteArray array, jsize start, jsize len, jbyte *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
690 void (JNICALL *GetCharArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
691 (JNIEnv *env, jcharArray array, jsize start, jsize len, jchar *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
692 void (JNICALL *GetShortArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
693 (JNIEnv *env, jshortArray array, jsize start, jsize len, jshort *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
694 void (JNICALL *GetIntArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
695 (JNIEnv *env, jintArray array, jsize start, jsize len, jint *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
696 void (JNICALL *GetLongArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
697 (JNIEnv *env, jlongArray array, jsize start, jsize len, jlong *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
698 void (JNICALL *GetFloatArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
699 (JNIEnv *env, jfloatArray array, jsize start, jsize len, jfloat *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
700 void (JNICALL *GetDoubleArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
701 (JNIEnv *env, jdoubleArray array, jsize start, jsize len, jdouble *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
702
a61af66fc99e Initial load
duke
parents:
diff changeset
703 void (JNICALL *SetBooleanArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
704 (JNIEnv *env, jbooleanArray array, jsize start, jsize l, const jboolean *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
705 void (JNICALL *SetByteArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
706 (JNIEnv *env, jbyteArray array, jsize start, jsize len, const jbyte *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
707 void (JNICALL *SetCharArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
708 (JNIEnv *env, jcharArray array, jsize start, jsize len, const jchar *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
709 void (JNICALL *SetShortArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
710 (JNIEnv *env, jshortArray array, jsize start, jsize len, const jshort *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
711 void (JNICALL *SetIntArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
712 (JNIEnv *env, jintArray array, jsize start, jsize len, const jint *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
713 void (JNICALL *SetLongArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
714 (JNIEnv *env, jlongArray array, jsize start, jsize len, const jlong *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
715 void (JNICALL *SetFloatArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
716 (JNIEnv *env, jfloatArray array, jsize start, jsize len, const jfloat *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
717 void (JNICALL *SetDoubleArrayRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
718 (JNIEnv *env, jdoubleArray array, jsize start, jsize len, const jdouble *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
719
a61af66fc99e Initial load
duke
parents:
diff changeset
720 jint (JNICALL *RegisterNatives)
a61af66fc99e Initial load
duke
parents:
diff changeset
721 (JNIEnv *env, jclass clazz, const JNINativeMethod *methods,
a61af66fc99e Initial load
duke
parents:
diff changeset
722 jint nMethods);
a61af66fc99e Initial load
duke
parents:
diff changeset
723 jint (JNICALL *UnregisterNatives)
a61af66fc99e Initial load
duke
parents:
diff changeset
724 (JNIEnv *env, jclass clazz);
a61af66fc99e Initial load
duke
parents:
diff changeset
725
a61af66fc99e Initial load
duke
parents:
diff changeset
726 jint (JNICALL *MonitorEnter)
a61af66fc99e Initial load
duke
parents:
diff changeset
727 (JNIEnv *env, jobject obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
728 jint (JNICALL *MonitorExit)
a61af66fc99e Initial load
duke
parents:
diff changeset
729 (JNIEnv *env, jobject obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
730
a61af66fc99e Initial load
duke
parents:
diff changeset
731 jint (JNICALL *GetJavaVM)
a61af66fc99e Initial load
duke
parents:
diff changeset
732 (JNIEnv *env, JavaVM **vm);
a61af66fc99e Initial load
duke
parents:
diff changeset
733
a61af66fc99e Initial load
duke
parents:
diff changeset
734 void (JNICALL *GetStringRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
735 (JNIEnv *env, jstring str, jsize start, jsize len, jchar *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
736 void (JNICALL *GetStringUTFRegion)
a61af66fc99e Initial load
duke
parents:
diff changeset
737 (JNIEnv *env, jstring str, jsize start, jsize len, char *buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
738
a61af66fc99e Initial load
duke
parents:
diff changeset
739 void * (JNICALL *GetPrimitiveArrayCritical)
a61af66fc99e Initial load
duke
parents:
diff changeset
740 (JNIEnv *env, jarray array, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
741 void (JNICALL *ReleasePrimitiveArrayCritical)
a61af66fc99e Initial load
duke
parents:
diff changeset
742 (JNIEnv *env, jarray array, void *carray, jint mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
743
a61af66fc99e Initial load
duke
parents:
diff changeset
744 const jchar * (JNICALL *GetStringCritical)
a61af66fc99e Initial load
duke
parents:
diff changeset
745 (JNIEnv *env, jstring string, jboolean *isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
746 void (JNICALL *ReleaseStringCritical)
a61af66fc99e Initial load
duke
parents:
diff changeset
747 (JNIEnv *env, jstring string, const jchar *cstring);
a61af66fc99e Initial load
duke
parents:
diff changeset
748
a61af66fc99e Initial load
duke
parents:
diff changeset
749 jweak (JNICALL *NewWeakGlobalRef)
a61af66fc99e Initial load
duke
parents:
diff changeset
750 (JNIEnv *env, jobject obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
751 void (JNICALL *DeleteWeakGlobalRef)
a61af66fc99e Initial load
duke
parents:
diff changeset
752 (JNIEnv *env, jweak ref);
a61af66fc99e Initial load
duke
parents:
diff changeset
753
a61af66fc99e Initial load
duke
parents:
diff changeset
754 jboolean (JNICALL *ExceptionCheck)
a61af66fc99e Initial load
duke
parents:
diff changeset
755 (JNIEnv *env);
a61af66fc99e Initial load
duke
parents:
diff changeset
756
a61af66fc99e Initial load
duke
parents:
diff changeset
757 jobject (JNICALL *NewDirectByteBuffer)
a61af66fc99e Initial load
duke
parents:
diff changeset
758 (JNIEnv* env, void* address, jlong capacity);
a61af66fc99e Initial load
duke
parents:
diff changeset
759 void* (JNICALL *GetDirectBufferAddress)
a61af66fc99e Initial load
duke
parents:
diff changeset
760 (JNIEnv* env, jobject buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
761 jlong (JNICALL *GetDirectBufferCapacity)
a61af66fc99e Initial load
duke
parents:
diff changeset
762 (JNIEnv* env, jobject buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
763
a61af66fc99e Initial load
duke
parents:
diff changeset
764 /* New JNI 1.6 Features */
a61af66fc99e Initial load
duke
parents:
diff changeset
765
a61af66fc99e Initial load
duke
parents:
diff changeset
766 jobjectRefType (JNICALL *GetObjectRefType)
a61af66fc99e Initial load
duke
parents:
diff changeset
767 (JNIEnv* env, jobject obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
768 };
a61af66fc99e Initial load
duke
parents:
diff changeset
769
a61af66fc99e Initial load
duke
parents:
diff changeset
770 /*
a61af66fc99e Initial load
duke
parents:
diff changeset
771 * We use inlined functions for C++ so that programmers can write:
a61af66fc99e Initial load
duke
parents:
diff changeset
772 *
a61af66fc99e Initial load
duke
parents:
diff changeset
773 * env->FindClass("java/lang/String")
a61af66fc99e Initial load
duke
parents:
diff changeset
774 *
a61af66fc99e Initial load
duke
parents:
diff changeset
775 * in C++ rather than:
a61af66fc99e Initial load
duke
parents:
diff changeset
776 *
a61af66fc99e Initial load
duke
parents:
diff changeset
777 * (*env)->FindClass(env, "java/lang/String")
a61af66fc99e Initial load
duke
parents:
diff changeset
778 *
a61af66fc99e Initial load
duke
parents:
diff changeset
779 * in C.
a61af66fc99e Initial load
duke
parents:
diff changeset
780 */
a61af66fc99e Initial load
duke
parents:
diff changeset
781
a61af66fc99e Initial load
duke
parents:
diff changeset
782 struct JNIEnv_ {
a61af66fc99e Initial load
duke
parents:
diff changeset
783 const struct JNINativeInterface_ *functions;
a61af66fc99e Initial load
duke
parents:
diff changeset
784 #ifdef __cplusplus
a61af66fc99e Initial load
duke
parents:
diff changeset
785
a61af66fc99e Initial load
duke
parents:
diff changeset
786 jint GetVersion() {
a61af66fc99e Initial load
duke
parents:
diff changeset
787 return functions->GetVersion(this);
a61af66fc99e Initial load
duke
parents:
diff changeset
788 }
a61af66fc99e Initial load
duke
parents:
diff changeset
789 jclass DefineClass(const char *name, jobject loader, const jbyte *buf,
a61af66fc99e Initial load
duke
parents:
diff changeset
790 jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
791 return functions->DefineClass(this, name, loader, buf, len);
a61af66fc99e Initial load
duke
parents:
diff changeset
792 }
a61af66fc99e Initial load
duke
parents:
diff changeset
793 jclass FindClass(const char *name) {
a61af66fc99e Initial load
duke
parents:
diff changeset
794 return functions->FindClass(this, name);
a61af66fc99e Initial load
duke
parents:
diff changeset
795 }
a61af66fc99e Initial load
duke
parents:
diff changeset
796 jmethodID FromReflectedMethod(jobject method) {
a61af66fc99e Initial load
duke
parents:
diff changeset
797 return functions->FromReflectedMethod(this,method);
a61af66fc99e Initial load
duke
parents:
diff changeset
798 }
a61af66fc99e Initial load
duke
parents:
diff changeset
799 jfieldID FromReflectedField(jobject field) {
a61af66fc99e Initial load
duke
parents:
diff changeset
800 return functions->FromReflectedField(this,field);
a61af66fc99e Initial load
duke
parents:
diff changeset
801 }
a61af66fc99e Initial load
duke
parents:
diff changeset
802
a61af66fc99e Initial load
duke
parents:
diff changeset
803 jobject ToReflectedMethod(jclass cls, jmethodID methodID, jboolean isStatic) {
a61af66fc99e Initial load
duke
parents:
diff changeset
804 return functions->ToReflectedMethod(this, cls, methodID, isStatic);
a61af66fc99e Initial load
duke
parents:
diff changeset
805 }
a61af66fc99e Initial load
duke
parents:
diff changeset
806
a61af66fc99e Initial load
duke
parents:
diff changeset
807 jclass GetSuperclass(jclass sub) {
a61af66fc99e Initial load
duke
parents:
diff changeset
808 return functions->GetSuperclass(this, sub);
a61af66fc99e Initial load
duke
parents:
diff changeset
809 }
a61af66fc99e Initial load
duke
parents:
diff changeset
810 jboolean IsAssignableFrom(jclass sub, jclass sup) {
a61af66fc99e Initial load
duke
parents:
diff changeset
811 return functions->IsAssignableFrom(this, sub, sup);
a61af66fc99e Initial load
duke
parents:
diff changeset
812 }
a61af66fc99e Initial load
duke
parents:
diff changeset
813
a61af66fc99e Initial load
duke
parents:
diff changeset
814 jobject ToReflectedField(jclass cls, jfieldID fieldID, jboolean isStatic) {
a61af66fc99e Initial load
duke
parents:
diff changeset
815 return functions->ToReflectedField(this,cls,fieldID,isStatic);
a61af66fc99e Initial load
duke
parents:
diff changeset
816 }
a61af66fc99e Initial load
duke
parents:
diff changeset
817
a61af66fc99e Initial load
duke
parents:
diff changeset
818 jint Throw(jthrowable obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
819 return functions->Throw(this, obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
820 }
a61af66fc99e Initial load
duke
parents:
diff changeset
821 jint ThrowNew(jclass clazz, const char *msg) {
a61af66fc99e Initial load
duke
parents:
diff changeset
822 return functions->ThrowNew(this, clazz, msg);
a61af66fc99e Initial load
duke
parents:
diff changeset
823 }
a61af66fc99e Initial load
duke
parents:
diff changeset
824 jthrowable ExceptionOccurred() {
a61af66fc99e Initial load
duke
parents:
diff changeset
825 return functions->ExceptionOccurred(this);
a61af66fc99e Initial load
duke
parents:
diff changeset
826 }
a61af66fc99e Initial load
duke
parents:
diff changeset
827 void ExceptionDescribe() {
a61af66fc99e Initial load
duke
parents:
diff changeset
828 functions->ExceptionDescribe(this);
a61af66fc99e Initial load
duke
parents:
diff changeset
829 }
a61af66fc99e Initial load
duke
parents:
diff changeset
830 void ExceptionClear() {
a61af66fc99e Initial load
duke
parents:
diff changeset
831 functions->ExceptionClear(this);
a61af66fc99e Initial load
duke
parents:
diff changeset
832 }
a61af66fc99e Initial load
duke
parents:
diff changeset
833 void FatalError(const char *msg) {
a61af66fc99e Initial load
duke
parents:
diff changeset
834 functions->FatalError(this, msg);
a61af66fc99e Initial load
duke
parents:
diff changeset
835 }
a61af66fc99e Initial load
duke
parents:
diff changeset
836
a61af66fc99e Initial load
duke
parents:
diff changeset
837 jint PushLocalFrame(jint capacity) {
a61af66fc99e Initial load
duke
parents:
diff changeset
838 return functions->PushLocalFrame(this,capacity);
a61af66fc99e Initial load
duke
parents:
diff changeset
839 }
a61af66fc99e Initial load
duke
parents:
diff changeset
840 jobject PopLocalFrame(jobject result) {
a61af66fc99e Initial load
duke
parents:
diff changeset
841 return functions->PopLocalFrame(this,result);
a61af66fc99e Initial load
duke
parents:
diff changeset
842 }
a61af66fc99e Initial load
duke
parents:
diff changeset
843
a61af66fc99e Initial load
duke
parents:
diff changeset
844 jobject NewGlobalRef(jobject lobj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
845 return functions->NewGlobalRef(this,lobj);
a61af66fc99e Initial load
duke
parents:
diff changeset
846 }
a61af66fc99e Initial load
duke
parents:
diff changeset
847 void DeleteGlobalRef(jobject gref) {
a61af66fc99e Initial load
duke
parents:
diff changeset
848 functions->DeleteGlobalRef(this,gref);
a61af66fc99e Initial load
duke
parents:
diff changeset
849 }
a61af66fc99e Initial load
duke
parents:
diff changeset
850 void DeleteLocalRef(jobject obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
851 functions->DeleteLocalRef(this, obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
852 }
a61af66fc99e Initial load
duke
parents:
diff changeset
853
a61af66fc99e Initial load
duke
parents:
diff changeset
854 jboolean IsSameObject(jobject obj1, jobject obj2) {
a61af66fc99e Initial load
duke
parents:
diff changeset
855 return functions->IsSameObject(this,obj1,obj2);
a61af66fc99e Initial load
duke
parents:
diff changeset
856 }
a61af66fc99e Initial load
duke
parents:
diff changeset
857
a61af66fc99e Initial load
duke
parents:
diff changeset
858 jobject NewLocalRef(jobject ref) {
a61af66fc99e Initial load
duke
parents:
diff changeset
859 return functions->NewLocalRef(this,ref);
a61af66fc99e Initial load
duke
parents:
diff changeset
860 }
a61af66fc99e Initial load
duke
parents:
diff changeset
861 jint EnsureLocalCapacity(jint capacity) {
a61af66fc99e Initial load
duke
parents:
diff changeset
862 return functions->EnsureLocalCapacity(this,capacity);
a61af66fc99e Initial load
duke
parents:
diff changeset
863 }
a61af66fc99e Initial load
duke
parents:
diff changeset
864
a61af66fc99e Initial load
duke
parents:
diff changeset
865 jobject AllocObject(jclass clazz) {
a61af66fc99e Initial load
duke
parents:
diff changeset
866 return functions->AllocObject(this,clazz);
a61af66fc99e Initial load
duke
parents:
diff changeset
867 }
a61af66fc99e Initial load
duke
parents:
diff changeset
868 jobject NewObject(jclass clazz, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
869 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
870 jobject result;
a61af66fc99e Initial load
duke
parents:
diff changeset
871 va_start(args, methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
872 result = functions->NewObjectV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
873 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
874 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
875 }
a61af66fc99e Initial load
duke
parents:
diff changeset
876 jobject NewObjectV(jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
877 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
878 return functions->NewObjectV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
879 }
a61af66fc99e Initial load
duke
parents:
diff changeset
880 jobject NewObjectA(jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
881 const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
882 return functions->NewObjectA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
883 }
a61af66fc99e Initial load
duke
parents:
diff changeset
884
a61af66fc99e Initial load
duke
parents:
diff changeset
885 jclass GetObjectClass(jobject obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
886 return functions->GetObjectClass(this,obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
887 }
a61af66fc99e Initial load
duke
parents:
diff changeset
888 jboolean IsInstanceOf(jobject obj, jclass clazz) {
a61af66fc99e Initial load
duke
parents:
diff changeset
889 return functions->IsInstanceOf(this,obj,clazz);
a61af66fc99e Initial load
duke
parents:
diff changeset
890 }
a61af66fc99e Initial load
duke
parents:
diff changeset
891
a61af66fc99e Initial load
duke
parents:
diff changeset
892 jmethodID GetMethodID(jclass clazz, const char *name,
a61af66fc99e Initial load
duke
parents:
diff changeset
893 const char *sig) {
a61af66fc99e Initial load
duke
parents:
diff changeset
894 return functions->GetMethodID(this,clazz,name,sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
895 }
a61af66fc99e Initial load
duke
parents:
diff changeset
896
a61af66fc99e Initial load
duke
parents:
diff changeset
897 jobject CallObjectMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
898 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
899 jobject result;
a61af66fc99e Initial load
duke
parents:
diff changeset
900 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
901 result = functions->CallObjectMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
902 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
903 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
904 }
a61af66fc99e Initial load
duke
parents:
diff changeset
905 jobject CallObjectMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
906 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
907 return functions->CallObjectMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
908 }
a61af66fc99e Initial load
duke
parents:
diff changeset
909 jobject CallObjectMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
910 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
911 return functions->CallObjectMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
912 }
a61af66fc99e Initial load
duke
parents:
diff changeset
913
a61af66fc99e Initial load
duke
parents:
diff changeset
914 jboolean CallBooleanMethod(jobject obj,
a61af66fc99e Initial load
duke
parents:
diff changeset
915 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
916 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
917 jboolean result;
a61af66fc99e Initial load
duke
parents:
diff changeset
918 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
919 result = functions->CallBooleanMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
920 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
921 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
922 }
a61af66fc99e Initial load
duke
parents:
diff changeset
923 jboolean CallBooleanMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
924 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
925 return functions->CallBooleanMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
926 }
a61af66fc99e Initial load
duke
parents:
diff changeset
927 jboolean CallBooleanMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
928 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
929 return functions->CallBooleanMethodA(this,obj,methodID, args);
a61af66fc99e Initial load
duke
parents:
diff changeset
930 }
a61af66fc99e Initial load
duke
parents:
diff changeset
931
a61af66fc99e Initial load
duke
parents:
diff changeset
932 jbyte CallByteMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
933 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
934 jbyte result;
a61af66fc99e Initial load
duke
parents:
diff changeset
935 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
936 result = functions->CallByteMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
937 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
938 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
939 }
a61af66fc99e Initial load
duke
parents:
diff changeset
940 jbyte CallByteMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
941 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
942 return functions->CallByteMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
943 }
a61af66fc99e Initial load
duke
parents:
diff changeset
944 jbyte CallByteMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
945 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
946 return functions->CallByteMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
947 }
a61af66fc99e Initial load
duke
parents:
diff changeset
948
a61af66fc99e Initial load
duke
parents:
diff changeset
949 jchar CallCharMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
950 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
951 jchar result;
a61af66fc99e Initial load
duke
parents:
diff changeset
952 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
953 result = functions->CallCharMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
954 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
955 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
956 }
a61af66fc99e Initial load
duke
parents:
diff changeset
957 jchar CallCharMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
958 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
959 return functions->CallCharMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
960 }
a61af66fc99e Initial load
duke
parents:
diff changeset
961 jchar CallCharMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
962 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
963 return functions->CallCharMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
964 }
a61af66fc99e Initial load
duke
parents:
diff changeset
965
a61af66fc99e Initial load
duke
parents:
diff changeset
966 jshort CallShortMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
967 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
968 jshort result;
a61af66fc99e Initial load
duke
parents:
diff changeset
969 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
970 result = functions->CallShortMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
971 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
972 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
973 }
a61af66fc99e Initial load
duke
parents:
diff changeset
974 jshort CallShortMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
975 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
976 return functions->CallShortMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
977 }
a61af66fc99e Initial load
duke
parents:
diff changeset
978 jshort CallShortMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
979 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
980 return functions->CallShortMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
981 }
a61af66fc99e Initial load
duke
parents:
diff changeset
982
a61af66fc99e Initial load
duke
parents:
diff changeset
983 jint CallIntMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
984 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
985 jint result;
a61af66fc99e Initial load
duke
parents:
diff changeset
986 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
987 result = functions->CallIntMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
988 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
989 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
990 }
a61af66fc99e Initial load
duke
parents:
diff changeset
991 jint CallIntMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
992 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
993 return functions->CallIntMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
994 }
a61af66fc99e Initial load
duke
parents:
diff changeset
995 jint CallIntMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
996 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
997 return functions->CallIntMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
998 }
a61af66fc99e Initial load
duke
parents:
diff changeset
999
a61af66fc99e Initial load
duke
parents:
diff changeset
1000 jlong CallLongMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1001 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1002 jlong result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1003 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1004 result = functions->CallLongMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1005 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1006 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1007 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1008 jlong CallLongMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1009 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1010 return functions->CallLongMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1011 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1012 jlong CallLongMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1013 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1014 return functions->CallLongMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1015 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1016
a61af66fc99e Initial load
duke
parents:
diff changeset
1017 jfloat CallFloatMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1018 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1019 jfloat result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1020 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1021 result = functions->CallFloatMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1022 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1023 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1024 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1025 jfloat CallFloatMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1026 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1027 return functions->CallFloatMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1028 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1029 jfloat CallFloatMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1030 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1031 return functions->CallFloatMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1032 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1033
a61af66fc99e Initial load
duke
parents:
diff changeset
1034 jdouble CallDoubleMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1035 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1036 jdouble result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1037 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1038 result = functions->CallDoubleMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1039 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1040 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1041 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1042 jdouble CallDoubleMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1043 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1044 return functions->CallDoubleMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1045 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1046 jdouble CallDoubleMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1047 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1048 return functions->CallDoubleMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1049 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1050
a61af66fc99e Initial load
duke
parents:
diff changeset
1051 void CallVoidMethod(jobject obj, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1052 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1053 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1054 functions->CallVoidMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1055 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1056 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1057 void CallVoidMethodV(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1058 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1059 functions->CallVoidMethodV(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1060 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1061 void CallVoidMethodA(jobject obj, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1062 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1063 functions->CallVoidMethodA(this,obj,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1064 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1065
a61af66fc99e Initial load
duke
parents:
diff changeset
1066 jobject CallNonvirtualObjectMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1067 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1068 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1069 jobject result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1070 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1071 result = functions->CallNonvirtualObjectMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1072 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1073 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1074 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1075 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1076 jobject CallNonvirtualObjectMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1077 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1078 return functions->CallNonvirtualObjectMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1079 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1080 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1081 jobject CallNonvirtualObjectMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1082 jmethodID methodID, const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1083 return functions->CallNonvirtualObjectMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1084 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1085 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1086
a61af66fc99e Initial load
duke
parents:
diff changeset
1087 jboolean CallNonvirtualBooleanMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1088 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1089 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1090 jboolean result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1091 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1092 result = functions->CallNonvirtualBooleanMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1093 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1094 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1095 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1096 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1097 jboolean CallNonvirtualBooleanMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1098 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1099 return functions->CallNonvirtualBooleanMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1100 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1101 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1102 jboolean CallNonvirtualBooleanMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1103 jmethodID methodID, const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1104 return functions->CallNonvirtualBooleanMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1105 methodID, args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1106 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1107
a61af66fc99e Initial load
duke
parents:
diff changeset
1108 jbyte CallNonvirtualByteMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1109 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1110 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1111 jbyte result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1112 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1113 result = functions->CallNonvirtualByteMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1114 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1115 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1116 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1117 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1118 jbyte CallNonvirtualByteMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1119 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1120 return functions->CallNonvirtualByteMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1121 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1122 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1123 jbyte CallNonvirtualByteMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1124 jmethodID methodID, const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1125 return functions->CallNonvirtualByteMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1126 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1127 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1128
a61af66fc99e Initial load
duke
parents:
diff changeset
1129 jchar CallNonvirtualCharMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1130 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1131 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1132 jchar result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1133 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1134 result = functions->CallNonvirtualCharMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1135 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1136 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1137 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1138 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1139 jchar CallNonvirtualCharMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1140 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1141 return functions->CallNonvirtualCharMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1142 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1143 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1144 jchar CallNonvirtualCharMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1145 jmethodID methodID, const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1146 return functions->CallNonvirtualCharMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1147 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1148 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1149
a61af66fc99e Initial load
duke
parents:
diff changeset
1150 jshort CallNonvirtualShortMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1151 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1152 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1153 jshort result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1154 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1155 result = functions->CallNonvirtualShortMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1156 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1157 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1158 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1159 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1160 jshort CallNonvirtualShortMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1161 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1162 return functions->CallNonvirtualShortMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1163 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1164 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1165 jshort CallNonvirtualShortMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1166 jmethodID methodID, const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1167 return functions->CallNonvirtualShortMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1168 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1169 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1170
a61af66fc99e Initial load
duke
parents:
diff changeset
1171 jint CallNonvirtualIntMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1172 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1173 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1174 jint result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1175 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1176 result = functions->CallNonvirtualIntMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1177 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1178 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1179 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1180 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1181 jint CallNonvirtualIntMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1182 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1183 return functions->CallNonvirtualIntMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1184 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1185 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1186 jint CallNonvirtualIntMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1187 jmethodID methodID, const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1188 return functions->CallNonvirtualIntMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1189 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1190 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1191
a61af66fc99e Initial load
duke
parents:
diff changeset
1192 jlong CallNonvirtualLongMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1193 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1194 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1195 jlong result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1196 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1197 result = functions->CallNonvirtualLongMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1198 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1199 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1200 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1201 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1202 jlong CallNonvirtualLongMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1203 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1204 return functions->CallNonvirtualLongMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1205 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1206 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1207 jlong CallNonvirtualLongMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1208 jmethodID methodID, const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1209 return functions->CallNonvirtualLongMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1210 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1211 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1212
a61af66fc99e Initial load
duke
parents:
diff changeset
1213 jfloat CallNonvirtualFloatMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1214 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1215 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1216 jfloat result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1217 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1218 result = functions->CallNonvirtualFloatMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1219 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1220 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1221 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1222 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1223 jfloat CallNonvirtualFloatMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1224 jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1225 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1226 return functions->CallNonvirtualFloatMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1227 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1228 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1229 jfloat CallNonvirtualFloatMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1230 jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1231 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1232 return functions->CallNonvirtualFloatMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1233 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1234 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1235
a61af66fc99e Initial load
duke
parents:
diff changeset
1236 jdouble CallNonvirtualDoubleMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1237 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1238 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1239 jdouble result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1240 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1241 result = functions->CallNonvirtualDoubleMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1242 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1243 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1244 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1245 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1246 jdouble CallNonvirtualDoubleMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1247 jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1248 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1249 return functions->CallNonvirtualDoubleMethodV(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1250 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1251 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1252 jdouble CallNonvirtualDoubleMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1253 jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1254 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1255 return functions->CallNonvirtualDoubleMethodA(this,obj,clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1256 methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1257 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1258
a61af66fc99e Initial load
duke
parents:
diff changeset
1259 void CallNonvirtualVoidMethod(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1260 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1261 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1262 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1263 functions->CallNonvirtualVoidMethodV(this,obj,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1264 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1265 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1266 void CallNonvirtualVoidMethodV(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1267 jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1268 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1269 functions->CallNonvirtualVoidMethodV(this,obj,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1270 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1271 void CallNonvirtualVoidMethodA(jobject obj, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1272 jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1273 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1274 functions->CallNonvirtualVoidMethodA(this,obj,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1275 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1276
a61af66fc99e Initial load
duke
parents:
diff changeset
1277 jfieldID GetFieldID(jclass clazz, const char *name,
a61af66fc99e Initial load
duke
parents:
diff changeset
1278 const char *sig) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1279 return functions->GetFieldID(this,clazz,name,sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
1280 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1281
a61af66fc99e Initial load
duke
parents:
diff changeset
1282 jobject GetObjectField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1283 return functions->GetObjectField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1284 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1285 jboolean GetBooleanField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1286 return functions->GetBooleanField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1287 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1288 jbyte GetByteField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1289 return functions->GetByteField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1290 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1291 jchar GetCharField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1292 return functions->GetCharField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1293 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1294 jshort GetShortField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1295 return functions->GetShortField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1296 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1297 jint GetIntField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1298 return functions->GetIntField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1299 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1300 jlong GetLongField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1301 return functions->GetLongField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1302 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1303 jfloat GetFloatField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1304 return functions->GetFloatField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1305 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1306 jdouble GetDoubleField(jobject obj, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1307 return functions->GetDoubleField(this,obj,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1308 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1309
a61af66fc99e Initial load
duke
parents:
diff changeset
1310 void SetObjectField(jobject obj, jfieldID fieldID, jobject val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1311 functions->SetObjectField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1312 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1313 void SetBooleanField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1314 jboolean val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1315 functions->SetBooleanField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1316 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1317 void SetByteField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1318 jbyte val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1319 functions->SetByteField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1320 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1321 void SetCharField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1322 jchar val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1323 functions->SetCharField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1324 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1325 void SetShortField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1326 jshort val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1327 functions->SetShortField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1328 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1329 void SetIntField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1330 jint val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1331 functions->SetIntField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1332 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1333 void SetLongField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1334 jlong val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1335 functions->SetLongField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1336 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1337 void SetFloatField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1338 jfloat val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1339 functions->SetFloatField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1340 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1341 void SetDoubleField(jobject obj, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1342 jdouble val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1343 functions->SetDoubleField(this,obj,fieldID,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1344 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1345
a61af66fc99e Initial load
duke
parents:
diff changeset
1346 jmethodID GetStaticMethodID(jclass clazz, const char *name,
a61af66fc99e Initial load
duke
parents:
diff changeset
1347 const char *sig) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1348 return functions->GetStaticMethodID(this,clazz,name,sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
1349 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1350
a61af66fc99e Initial load
duke
parents:
diff changeset
1351 jobject CallStaticObjectMethod(jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1352 ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1353 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1354 jobject result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1355 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1356 result = functions->CallStaticObjectMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1357 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1358 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1359 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1360 jobject CallStaticObjectMethodV(jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1361 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1362 return functions->CallStaticObjectMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1363 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1364 jobject CallStaticObjectMethodA(jclass clazz, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1365 const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1366 return functions->CallStaticObjectMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1367 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1368
a61af66fc99e Initial load
duke
parents:
diff changeset
1369 jboolean CallStaticBooleanMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1370 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1371 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1372 jboolean result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1373 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1374 result = functions->CallStaticBooleanMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1375 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1376 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1377 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1378 jboolean CallStaticBooleanMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1379 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1380 return functions->CallStaticBooleanMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1381 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1382 jboolean CallStaticBooleanMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1383 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1384 return functions->CallStaticBooleanMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1385 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1386
a61af66fc99e Initial load
duke
parents:
diff changeset
1387 jbyte CallStaticByteMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1388 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1389 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1390 jbyte result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1391 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1392 result = functions->CallStaticByteMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1393 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1394 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1395 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1396 jbyte CallStaticByteMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1397 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1398 return functions->CallStaticByteMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1399 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1400 jbyte CallStaticByteMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1401 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1402 return functions->CallStaticByteMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1403 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1404
a61af66fc99e Initial load
duke
parents:
diff changeset
1405 jchar CallStaticCharMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1406 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1407 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1408 jchar result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1409 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1410 result = functions->CallStaticCharMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1411 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1412 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1413 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1414 jchar CallStaticCharMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1415 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1416 return functions->CallStaticCharMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1417 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1418 jchar CallStaticCharMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1419 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1420 return functions->CallStaticCharMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1421 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1422
a61af66fc99e Initial load
duke
parents:
diff changeset
1423 jshort CallStaticShortMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1424 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1425 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1426 jshort result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1427 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1428 result = functions->CallStaticShortMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1429 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1430 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1431 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1432 jshort CallStaticShortMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1433 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1434 return functions->CallStaticShortMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1435 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1436 jshort CallStaticShortMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1437 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1438 return functions->CallStaticShortMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1439 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1440
a61af66fc99e Initial load
duke
parents:
diff changeset
1441 jint CallStaticIntMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1442 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1443 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1444 jint result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1445 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1446 result = functions->CallStaticIntMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1447 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1448 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1449 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1450 jint CallStaticIntMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1451 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1452 return functions->CallStaticIntMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1453 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1454 jint CallStaticIntMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1455 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1456 return functions->CallStaticIntMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1457 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1458
a61af66fc99e Initial load
duke
parents:
diff changeset
1459 jlong CallStaticLongMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1460 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1461 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1462 jlong result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1463 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1464 result = functions->CallStaticLongMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1465 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1466 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1467 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1468 jlong CallStaticLongMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1469 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1470 return functions->CallStaticLongMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1471 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1472 jlong CallStaticLongMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1473 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1474 return functions->CallStaticLongMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1475 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1476
a61af66fc99e Initial load
duke
parents:
diff changeset
1477 jfloat CallStaticFloatMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1478 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1479 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1480 jfloat result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1481 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1482 result = functions->CallStaticFloatMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1483 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1484 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1485 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1486 jfloat CallStaticFloatMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1487 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1488 return functions->CallStaticFloatMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1489 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1490 jfloat CallStaticFloatMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1491 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1492 return functions->CallStaticFloatMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1493 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1494
a61af66fc99e Initial load
duke
parents:
diff changeset
1495 jdouble CallStaticDoubleMethod(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1496 jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1497 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1498 jdouble result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1499 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1500 result = functions->CallStaticDoubleMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1501 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1502 return result;
a61af66fc99e Initial load
duke
parents:
diff changeset
1503 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1504 jdouble CallStaticDoubleMethodV(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1505 jmethodID methodID, va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1506 return functions->CallStaticDoubleMethodV(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1507 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1508 jdouble CallStaticDoubleMethodA(jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1509 jmethodID methodID, const jvalue *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1510 return functions->CallStaticDoubleMethodA(this,clazz,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1511 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1512
a61af66fc99e Initial load
duke
parents:
diff changeset
1513 void CallStaticVoidMethod(jclass cls, jmethodID methodID, ...) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1514 va_list args;
a61af66fc99e Initial load
duke
parents:
diff changeset
1515 va_start(args,methodID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1516 functions->CallStaticVoidMethodV(this,cls,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1517 va_end(args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1518 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1519 void CallStaticVoidMethodV(jclass cls, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1520 va_list args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1521 functions->CallStaticVoidMethodV(this,cls,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1522 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1523 void CallStaticVoidMethodA(jclass cls, jmethodID methodID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1524 const jvalue * args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1525 functions->CallStaticVoidMethodA(this,cls,methodID,args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1526 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1527
a61af66fc99e Initial load
duke
parents:
diff changeset
1528 jfieldID GetStaticFieldID(jclass clazz, const char *name,
a61af66fc99e Initial load
duke
parents:
diff changeset
1529 const char *sig) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1530 return functions->GetStaticFieldID(this,clazz,name,sig);
a61af66fc99e Initial load
duke
parents:
diff changeset
1531 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1532 jobject GetStaticObjectField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1533 return functions->GetStaticObjectField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1534 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1535 jboolean GetStaticBooleanField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1536 return functions->GetStaticBooleanField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1537 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1538 jbyte GetStaticByteField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1539 return functions->GetStaticByteField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1540 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1541 jchar GetStaticCharField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1542 return functions->GetStaticCharField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1543 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1544 jshort GetStaticShortField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1545 return functions->GetStaticShortField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1546 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1547 jint GetStaticIntField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1548 return functions->GetStaticIntField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1549 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1550 jlong GetStaticLongField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1551 return functions->GetStaticLongField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1552 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1553 jfloat GetStaticFloatField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1554 return functions->GetStaticFloatField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1555 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1556 jdouble GetStaticDoubleField(jclass clazz, jfieldID fieldID) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1557 return functions->GetStaticDoubleField(this,clazz,fieldID);
a61af66fc99e Initial load
duke
parents:
diff changeset
1558 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1559
a61af66fc99e Initial load
duke
parents:
diff changeset
1560 void SetStaticObjectField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1561 jobject value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1562 functions->SetStaticObjectField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1563 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1564 void SetStaticBooleanField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1565 jboolean value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1566 functions->SetStaticBooleanField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1567 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1568 void SetStaticByteField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1569 jbyte value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1570 functions->SetStaticByteField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1571 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1572 void SetStaticCharField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1573 jchar value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1574 functions->SetStaticCharField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1575 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1576 void SetStaticShortField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1577 jshort value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1578 functions->SetStaticShortField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1579 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1580 void SetStaticIntField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1581 jint value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1582 functions->SetStaticIntField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1583 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1584 void SetStaticLongField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1585 jlong value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1586 functions->SetStaticLongField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1587 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1588 void SetStaticFloatField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1589 jfloat value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1590 functions->SetStaticFloatField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1591 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1592 void SetStaticDoubleField(jclass clazz, jfieldID fieldID,
a61af66fc99e Initial load
duke
parents:
diff changeset
1593 jdouble value) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1594 functions->SetStaticDoubleField(this,clazz,fieldID,value);
a61af66fc99e Initial load
duke
parents:
diff changeset
1595 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1596
a61af66fc99e Initial load
duke
parents:
diff changeset
1597 jstring NewString(const jchar *unicode, jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1598 return functions->NewString(this,unicode,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1599 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1600 jsize GetStringLength(jstring str) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1601 return functions->GetStringLength(this,str);
a61af66fc99e Initial load
duke
parents:
diff changeset
1602 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1603 const jchar *GetStringChars(jstring str, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1604 return functions->GetStringChars(this,str,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1605 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1606 void ReleaseStringChars(jstring str, const jchar *chars) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1607 functions->ReleaseStringChars(this,str,chars);
a61af66fc99e Initial load
duke
parents:
diff changeset
1608 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1609
a61af66fc99e Initial load
duke
parents:
diff changeset
1610 jstring NewStringUTF(const char *utf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1611 return functions->NewStringUTF(this,utf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1612 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1613 jsize GetStringUTFLength(jstring str) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1614 return functions->GetStringUTFLength(this,str);
a61af66fc99e Initial load
duke
parents:
diff changeset
1615 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1616 const char* GetStringUTFChars(jstring str, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1617 return functions->GetStringUTFChars(this,str,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1618 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1619 void ReleaseStringUTFChars(jstring str, const char* chars) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1620 functions->ReleaseStringUTFChars(this,str,chars);
a61af66fc99e Initial load
duke
parents:
diff changeset
1621 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1622
a61af66fc99e Initial load
duke
parents:
diff changeset
1623 jsize GetArrayLength(jarray array) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1624 return functions->GetArrayLength(this,array);
a61af66fc99e Initial load
duke
parents:
diff changeset
1625 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1626
a61af66fc99e Initial load
duke
parents:
diff changeset
1627 jobjectArray NewObjectArray(jsize len, jclass clazz,
a61af66fc99e Initial load
duke
parents:
diff changeset
1628 jobject init) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1629 return functions->NewObjectArray(this,len,clazz,init);
a61af66fc99e Initial load
duke
parents:
diff changeset
1630 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1631 jobject GetObjectArrayElement(jobjectArray array, jsize index) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1632 return functions->GetObjectArrayElement(this,array,index);
a61af66fc99e Initial load
duke
parents:
diff changeset
1633 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1634 void SetObjectArrayElement(jobjectArray array, jsize index,
a61af66fc99e Initial load
duke
parents:
diff changeset
1635 jobject val) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1636 functions->SetObjectArrayElement(this,array,index,val);
a61af66fc99e Initial load
duke
parents:
diff changeset
1637 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1638
a61af66fc99e Initial load
duke
parents:
diff changeset
1639 jbooleanArray NewBooleanArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1640 return functions->NewBooleanArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1641 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1642 jbyteArray NewByteArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1643 return functions->NewByteArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1644 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1645 jcharArray NewCharArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1646 return functions->NewCharArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1647 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1648 jshortArray NewShortArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1649 return functions->NewShortArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1650 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1651 jintArray NewIntArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1652 return functions->NewIntArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1653 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1654 jlongArray NewLongArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1655 return functions->NewLongArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1656 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1657 jfloatArray NewFloatArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1658 return functions->NewFloatArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1659 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1660 jdoubleArray NewDoubleArray(jsize len) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1661 return functions->NewDoubleArray(this,len);
a61af66fc99e Initial load
duke
parents:
diff changeset
1662 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1663
a61af66fc99e Initial load
duke
parents:
diff changeset
1664 jboolean * GetBooleanArrayElements(jbooleanArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1665 return functions->GetBooleanArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1666 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1667 jbyte * GetByteArrayElements(jbyteArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1668 return functions->GetByteArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1669 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1670 jchar * GetCharArrayElements(jcharArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1671 return functions->GetCharArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1672 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1673 jshort * GetShortArrayElements(jshortArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1674 return functions->GetShortArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1675 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1676 jint * GetIntArrayElements(jintArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1677 return functions->GetIntArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1678 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1679 jlong * GetLongArrayElements(jlongArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1680 return functions->GetLongArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1681 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1682 jfloat * GetFloatArrayElements(jfloatArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1683 return functions->GetFloatArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1684 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1685 jdouble * GetDoubleArrayElements(jdoubleArray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1686 return functions->GetDoubleArrayElements(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1687 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1688
a61af66fc99e Initial load
duke
parents:
diff changeset
1689 void ReleaseBooleanArrayElements(jbooleanArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1690 jboolean *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1691 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1692 functions->ReleaseBooleanArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1693 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1694 void ReleaseByteArrayElements(jbyteArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1695 jbyte *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1696 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1697 functions->ReleaseByteArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1698 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1699 void ReleaseCharArrayElements(jcharArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1700 jchar *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1701 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1702 functions->ReleaseCharArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1703 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1704 void ReleaseShortArrayElements(jshortArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1705 jshort *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1706 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1707 functions->ReleaseShortArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1708 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1709 void ReleaseIntArrayElements(jintArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1710 jint *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1711 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1712 functions->ReleaseIntArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1713 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1714 void ReleaseLongArrayElements(jlongArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1715 jlong *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1716 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1717 functions->ReleaseLongArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1718 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1719 void ReleaseFloatArrayElements(jfloatArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1720 jfloat *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1721 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1722 functions->ReleaseFloatArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1723 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1724 void ReleaseDoubleArrayElements(jdoubleArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1725 jdouble *elems,
a61af66fc99e Initial load
duke
parents:
diff changeset
1726 jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1727 functions->ReleaseDoubleArrayElements(this,array,elems,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1728 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1729
a61af66fc99e Initial load
duke
parents:
diff changeset
1730 void GetBooleanArrayRegion(jbooleanArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1731 jsize start, jsize len, jboolean *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1732 functions->GetBooleanArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1733 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1734 void GetByteArrayRegion(jbyteArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1735 jsize start, jsize len, jbyte *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1736 functions->GetByteArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1737 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1738 void GetCharArrayRegion(jcharArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1739 jsize start, jsize len, jchar *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1740 functions->GetCharArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1741 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1742 void GetShortArrayRegion(jshortArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1743 jsize start, jsize len, jshort *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1744 functions->GetShortArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1745 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1746 void GetIntArrayRegion(jintArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1747 jsize start, jsize len, jint *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1748 functions->GetIntArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1749 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1750 void GetLongArrayRegion(jlongArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1751 jsize start, jsize len, jlong *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1752 functions->GetLongArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1753 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1754 void GetFloatArrayRegion(jfloatArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1755 jsize start, jsize len, jfloat *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1756 functions->GetFloatArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1757 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1758 void GetDoubleArrayRegion(jdoubleArray array,
a61af66fc99e Initial load
duke
parents:
diff changeset
1759 jsize start, jsize len, jdouble *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1760 functions->GetDoubleArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1761 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1762
a61af66fc99e Initial load
duke
parents:
diff changeset
1763 void SetBooleanArrayRegion(jbooleanArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1764 const jboolean *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1765 functions->SetBooleanArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1766 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1767 void SetByteArrayRegion(jbyteArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1768 const jbyte *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1769 functions->SetByteArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1770 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1771 void SetCharArrayRegion(jcharArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1772 const jchar *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1773 functions->SetCharArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1774 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1775 void SetShortArrayRegion(jshortArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1776 const jshort *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1777 functions->SetShortArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1778 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1779 void SetIntArrayRegion(jintArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1780 const jint *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1781 functions->SetIntArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1782 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1783 void SetLongArrayRegion(jlongArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1784 const jlong *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1785 functions->SetLongArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1786 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1787 void SetFloatArrayRegion(jfloatArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1788 const jfloat *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1789 functions->SetFloatArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1790 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1791 void SetDoubleArrayRegion(jdoubleArray array, jsize start, jsize len,
a61af66fc99e Initial load
duke
parents:
diff changeset
1792 const jdouble *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1793 functions->SetDoubleArrayRegion(this,array,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1794 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1795
a61af66fc99e Initial load
duke
parents:
diff changeset
1796 jint RegisterNatives(jclass clazz, const JNINativeMethod *methods,
a61af66fc99e Initial load
duke
parents:
diff changeset
1797 jint nMethods) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1798 return functions->RegisterNatives(this,clazz,methods,nMethods);
a61af66fc99e Initial load
duke
parents:
diff changeset
1799 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1800 jint UnregisterNatives(jclass clazz) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1801 return functions->UnregisterNatives(this,clazz);
a61af66fc99e Initial load
duke
parents:
diff changeset
1802 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1803
a61af66fc99e Initial load
duke
parents:
diff changeset
1804 jint MonitorEnter(jobject obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1805 return functions->MonitorEnter(this,obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
1806 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1807 jint MonitorExit(jobject obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1808 return functions->MonitorExit(this,obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
1809 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1810
a61af66fc99e Initial load
duke
parents:
diff changeset
1811 jint GetJavaVM(JavaVM **vm) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1812 return functions->GetJavaVM(this,vm);
a61af66fc99e Initial load
duke
parents:
diff changeset
1813 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1814
a61af66fc99e Initial load
duke
parents:
diff changeset
1815 void GetStringRegion(jstring str, jsize start, jsize len, jchar *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1816 functions->GetStringRegion(this,str,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1817 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1818 void GetStringUTFRegion(jstring str, jsize start, jsize len, char *buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1819 functions->GetStringUTFRegion(this,str,start,len,buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1820 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1821
a61af66fc99e Initial load
duke
parents:
diff changeset
1822 void * GetPrimitiveArrayCritical(jarray array, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1823 return functions->GetPrimitiveArrayCritical(this,array,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1824 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1825 void ReleasePrimitiveArrayCritical(jarray array, void *carray, jint mode) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1826 functions->ReleasePrimitiveArrayCritical(this,array,carray,mode);
a61af66fc99e Initial load
duke
parents:
diff changeset
1827 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1828
a61af66fc99e Initial load
duke
parents:
diff changeset
1829 const jchar * GetStringCritical(jstring string, jboolean *isCopy) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1830 return functions->GetStringCritical(this,string,isCopy);
a61af66fc99e Initial load
duke
parents:
diff changeset
1831 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1832 void ReleaseStringCritical(jstring string, const jchar *cstring) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1833 functions->ReleaseStringCritical(this,string,cstring);
a61af66fc99e Initial load
duke
parents:
diff changeset
1834 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1835
a61af66fc99e Initial load
duke
parents:
diff changeset
1836 jweak NewWeakGlobalRef(jobject obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1837 return functions->NewWeakGlobalRef(this,obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
1838 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1839 void DeleteWeakGlobalRef(jweak ref) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1840 functions->DeleteWeakGlobalRef(this,ref);
a61af66fc99e Initial load
duke
parents:
diff changeset
1841 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1842
a61af66fc99e Initial load
duke
parents:
diff changeset
1843 jboolean ExceptionCheck() {
a61af66fc99e Initial load
duke
parents:
diff changeset
1844 return functions->ExceptionCheck(this);
a61af66fc99e Initial load
duke
parents:
diff changeset
1845 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1846
a61af66fc99e Initial load
duke
parents:
diff changeset
1847 jobject NewDirectByteBuffer(void* address, jlong capacity) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1848 return functions->NewDirectByteBuffer(this, address, capacity);
a61af66fc99e Initial load
duke
parents:
diff changeset
1849 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1850 void* GetDirectBufferAddress(jobject buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1851 return functions->GetDirectBufferAddress(this, buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1852 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1853 jlong GetDirectBufferCapacity(jobject buf) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1854 return functions->GetDirectBufferCapacity(this, buf);
a61af66fc99e Initial load
duke
parents:
diff changeset
1855 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1856 jobjectRefType GetObjectRefType(jobject obj) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1857 return functions->GetObjectRefType(this, obj);
a61af66fc99e Initial load
duke
parents:
diff changeset
1858 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1859
a61af66fc99e Initial load
duke
parents:
diff changeset
1860 #endif /* __cplusplus */
a61af66fc99e Initial load
duke
parents:
diff changeset
1861 };
a61af66fc99e Initial load
duke
parents:
diff changeset
1862
a61af66fc99e Initial load
duke
parents:
diff changeset
1863 typedef struct JavaVMOption {
a61af66fc99e Initial load
duke
parents:
diff changeset
1864 char *optionString;
a61af66fc99e Initial load
duke
parents:
diff changeset
1865 void *extraInfo;
a61af66fc99e Initial load
duke
parents:
diff changeset
1866 } JavaVMOption;
a61af66fc99e Initial load
duke
parents:
diff changeset
1867
a61af66fc99e Initial load
duke
parents:
diff changeset
1868 typedef struct JavaVMInitArgs {
a61af66fc99e Initial load
duke
parents:
diff changeset
1869 jint version;
a61af66fc99e Initial load
duke
parents:
diff changeset
1870
a61af66fc99e Initial load
duke
parents:
diff changeset
1871 jint nOptions;
a61af66fc99e Initial load
duke
parents:
diff changeset
1872 JavaVMOption *options;
a61af66fc99e Initial load
duke
parents:
diff changeset
1873 jboolean ignoreUnrecognized;
a61af66fc99e Initial load
duke
parents:
diff changeset
1874 } JavaVMInitArgs;
a61af66fc99e Initial load
duke
parents:
diff changeset
1875
a61af66fc99e Initial load
duke
parents:
diff changeset
1876 typedef struct JavaVMAttachArgs {
a61af66fc99e Initial load
duke
parents:
diff changeset
1877 jint version;
a61af66fc99e Initial load
duke
parents:
diff changeset
1878
a61af66fc99e Initial load
duke
parents:
diff changeset
1879 char *name;
a61af66fc99e Initial load
duke
parents:
diff changeset
1880 jobject group;
a61af66fc99e Initial load
duke
parents:
diff changeset
1881 } JavaVMAttachArgs;
a61af66fc99e Initial load
duke
parents:
diff changeset
1882
a61af66fc99e Initial load
duke
parents:
diff changeset
1883 /* These will be VM-specific. */
a61af66fc99e Initial load
duke
parents:
diff changeset
1884
a61af66fc99e Initial load
duke
parents:
diff changeset
1885 #define JDK1_2
a61af66fc99e Initial load
duke
parents:
diff changeset
1886 #define JDK1_4
a61af66fc99e Initial load
duke
parents:
diff changeset
1887
a61af66fc99e Initial load
duke
parents:
diff changeset
1888 /* End VM-specific. */
a61af66fc99e Initial load
duke
parents:
diff changeset
1889
a61af66fc99e Initial load
duke
parents:
diff changeset
1890 struct JNIInvokeInterface_ {
a61af66fc99e Initial load
duke
parents:
diff changeset
1891 void *reserved0;
a61af66fc99e Initial load
duke
parents:
diff changeset
1892 void *reserved1;
a61af66fc99e Initial load
duke
parents:
diff changeset
1893 void *reserved2;
a61af66fc99e Initial load
duke
parents:
diff changeset
1894
a61af66fc99e Initial load
duke
parents:
diff changeset
1895 jint (JNICALL *DestroyJavaVM)(JavaVM *vm);
a61af66fc99e Initial load
duke
parents:
diff changeset
1896
a61af66fc99e Initial load
duke
parents:
diff changeset
1897 jint (JNICALL *AttachCurrentThread)(JavaVM *vm, void **penv, void *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1898
a61af66fc99e Initial load
duke
parents:
diff changeset
1899 jint (JNICALL *DetachCurrentThread)(JavaVM *vm);
a61af66fc99e Initial load
duke
parents:
diff changeset
1900
a61af66fc99e Initial load
duke
parents:
diff changeset
1901 jint (JNICALL *GetEnv)(JavaVM *vm, void **penv, jint version);
a61af66fc99e Initial load
duke
parents:
diff changeset
1902
a61af66fc99e Initial load
duke
parents:
diff changeset
1903 jint (JNICALL *AttachCurrentThreadAsDaemon)(JavaVM *vm, void **penv, void *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1904 };
a61af66fc99e Initial load
duke
parents:
diff changeset
1905
a61af66fc99e Initial load
duke
parents:
diff changeset
1906 struct JavaVM_ {
a61af66fc99e Initial load
duke
parents:
diff changeset
1907 const struct JNIInvokeInterface_ *functions;
a61af66fc99e Initial load
duke
parents:
diff changeset
1908 #ifdef __cplusplus
a61af66fc99e Initial load
duke
parents:
diff changeset
1909
a61af66fc99e Initial load
duke
parents:
diff changeset
1910 jint DestroyJavaVM() {
a61af66fc99e Initial load
duke
parents:
diff changeset
1911 return functions->DestroyJavaVM(this);
a61af66fc99e Initial load
duke
parents:
diff changeset
1912 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1913 jint AttachCurrentThread(void **penv, void *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1914 return functions->AttachCurrentThread(this, penv, args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1915 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1916 jint DetachCurrentThread() {
a61af66fc99e Initial load
duke
parents:
diff changeset
1917 return functions->DetachCurrentThread(this);
a61af66fc99e Initial load
duke
parents:
diff changeset
1918 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1919
a61af66fc99e Initial load
duke
parents:
diff changeset
1920 jint GetEnv(void **penv, jint version) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1921 return functions->GetEnv(this, penv, version);
a61af66fc99e Initial load
duke
parents:
diff changeset
1922 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1923 jint AttachCurrentThreadAsDaemon(void **penv, void *args) {
a61af66fc99e Initial load
duke
parents:
diff changeset
1924 return functions->AttachCurrentThreadAsDaemon(this, penv, args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1925 }
a61af66fc99e Initial load
duke
parents:
diff changeset
1926 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
1927 };
a61af66fc99e Initial load
duke
parents:
diff changeset
1928
a61af66fc99e Initial load
duke
parents:
diff changeset
1929 #ifdef _JNI_IMPLEMENTATION_
a61af66fc99e Initial load
duke
parents:
diff changeset
1930 #define _JNI_IMPORT_OR_EXPORT_ JNIEXPORT
a61af66fc99e Initial load
duke
parents:
diff changeset
1931 #else
a61af66fc99e Initial load
duke
parents:
diff changeset
1932 #define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
a61af66fc99e Initial load
duke
parents:
diff changeset
1933 #endif
a61af66fc99e Initial load
duke
parents:
diff changeset
1934 _JNI_IMPORT_OR_EXPORT_ jint JNICALL
a61af66fc99e Initial load
duke
parents:
diff changeset
1935 JNI_GetDefaultJavaVMInitArgs(void *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1936
a61af66fc99e Initial load
duke
parents:
diff changeset
1937 _JNI_IMPORT_OR_EXPORT_ jint JNICALL
a61af66fc99e Initial load
duke
parents:
diff changeset
1938 JNI_CreateJavaVM(JavaVM **pvm, void **penv, void *args);
a61af66fc99e Initial load
duke
parents:
diff changeset
1939
a61af66fc99e Initial load
duke
parents:
diff changeset
1940 _JNI_IMPORT_OR_EXPORT_ jint JNICALL
a61af66fc99e Initial load
duke
parents:
diff changeset
1941 JNI_GetCreatedJavaVMs(JavaVM **, jsize, jsize *);
a61af66fc99e Initial load
duke
parents:
diff changeset
1942
a61af66fc99e Initial load
duke
parents:
diff changeset
1943 /* Defined by native libraries. */
a61af66fc99e Initial load
duke
parents:
diff changeset
1944 JNIEXPORT jint JNICALL
a61af66fc99e Initial load
duke
parents:
diff changeset
1945 JNI_OnLoad(JavaVM *vm, void *reserved);
a61af66fc99e Initial load
duke
parents:
diff changeset
1946
a61af66fc99e Initial load
duke
parents:
diff changeset
1947 JNIEXPORT void JNICALL
a61af66fc99e Initial load
duke
parents:
diff changeset
1948 JNI_OnUnload(JavaVM *vm, void *reserved);
a61af66fc99e Initial load
duke
parents:
diff changeset
1949
a61af66fc99e Initial load
duke
parents:
diff changeset
1950 #define JNI_VERSION_1_1 0x00010001
a61af66fc99e Initial load
duke
parents:
diff changeset
1951 #define JNI_VERSION_1_2 0x00010002
a61af66fc99e Initial load
duke
parents:
diff changeset
1952 #define JNI_VERSION_1_4 0x00010004
a61af66fc99e Initial load
duke
parents:
diff changeset
1953 #define JNI_VERSION_1_6 0x00010006
a61af66fc99e Initial load
duke
parents:
diff changeset
1954
a61af66fc99e Initial load
duke
parents:
diff changeset
1955 #ifdef __cplusplus
a61af66fc99e Initial load
duke
parents:
diff changeset
1956 } /* extern "C" */
a61af66fc99e Initial load
duke
parents:
diff changeset
1957 #endif /* __cplusplus */
a61af66fc99e Initial load
duke
parents:
diff changeset
1958
a61af66fc99e Initial load
duke
parents:
diff changeset
1959 #endif /* !_JAVASOFT_JNI_H_ */