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