mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 992357 - b. Add array support stubs; r=blassey
This commit is contained in:
parent
1288077545
commit
c5ae95c1bf
@ -63,6 +63,40 @@ public class NativeJSObject
|
||||
*/
|
||||
public native boolean optBoolean(String name, boolean fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of a boolean array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @throws IllegalArgumentException
|
||||
* If the property does not exist or if its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native boolean[] getBooleanArray(String name);
|
||||
|
||||
/**
|
||||
* Returns the value of a boolean array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @param fallback
|
||||
* Value to return if property does not exist
|
||||
* @throws IllegalArgumentException
|
||||
* If the property exists and its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native boolean[] optBooleanArray(String name, boolean[] fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of an object property as a Bundle.
|
||||
*
|
||||
@ -97,6 +131,40 @@ public class NativeJSObject
|
||||
*/
|
||||
public native Bundle optBundle(String name, Bundle fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of an object array property as a Bundle array.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @throws IllegalArgumentException
|
||||
* If the property does not exist or if its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native Bundle[] getBundleArray(String name);
|
||||
|
||||
/**
|
||||
* Returns the value of an object array property as a Bundle array.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @param fallback
|
||||
* Value to return if property does not exist
|
||||
* @throws IllegalArgumentException
|
||||
* If the property exists and its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native Bundle[] optBundleArray(String name, Bundle[] fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of a double property.
|
||||
*
|
||||
@ -131,6 +199,40 @@ public class NativeJSObject
|
||||
*/
|
||||
public native double optDouble(String name, double fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of a double array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @throws IllegalArgumentException
|
||||
* If the property does not exist or if its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native double[] getDoubleArray(String name);
|
||||
|
||||
/**
|
||||
* Returns the value of a double array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @param fallback
|
||||
* Value to return if property does not exist
|
||||
* @throws IllegalArgumentException
|
||||
* If the property exists and its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native double[] optDoubleArray(String name, double[] fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of an int property.
|
||||
*
|
||||
@ -165,6 +267,40 @@ public class NativeJSObject
|
||||
*/
|
||||
public native int optInt(String name, int fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of an int array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @throws IllegalArgumentException
|
||||
* If the property does not exist or if its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native int[] getIntArray(String name);
|
||||
|
||||
/**
|
||||
* Returns the value of an int array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @param fallback
|
||||
* Value to return if property does not exist
|
||||
* @throws IllegalArgumentException
|
||||
* If the property exists and its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native int[] optIntArray(String name, int[] fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of an object property.
|
||||
*
|
||||
@ -199,6 +335,40 @@ public class NativeJSObject
|
||||
*/
|
||||
public native NativeJSObject optObject(String name, NativeJSObject fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of an object array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @throws IllegalArgumentException
|
||||
* If the property does not exist or if its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native NativeJSObject[] getObjectArray(String name);
|
||||
|
||||
/**
|
||||
* Returns the value of an object array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @param fallback
|
||||
* Value to return if property does not exist
|
||||
* @throws IllegalArgumentException
|
||||
* If the property exists and its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native NativeJSObject[] optObjectArray(String name, NativeJSObject[] fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of a string property.
|
||||
*
|
||||
@ -233,6 +403,40 @@ public class NativeJSObject
|
||||
*/
|
||||
public native String optString(String name, String fallback);
|
||||
|
||||
/**
|
||||
* Returns the value of a string array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @throws IllegalArgumentException
|
||||
* If the property does not exist or if its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native String[] getStringArray(String name);
|
||||
|
||||
/**
|
||||
* Returns the value of a string array property.
|
||||
*
|
||||
* @param name
|
||||
* Property name
|
||||
* @param fallback
|
||||
* Value to return if property does not exist
|
||||
* @throws IllegalArgumentException
|
||||
* If the property exists and its type does not match the return type
|
||||
* @throws NullPointerException
|
||||
* If name is null or if this JS object has been disposed
|
||||
* @throws IllegalThreadStateException
|
||||
* If not called on the thread this object is attached to
|
||||
* @throws UnsupportedOperationException
|
||||
* If an internal JSAPI call failed
|
||||
*/
|
||||
public native String[] optStringArray(String name, String[] fallback);
|
||||
|
||||
/**
|
||||
* Returns whether a property exists in this object
|
||||
*
|
||||
|
@ -647,6 +647,44 @@ Java_org_mozilla_gecko_util_NativeJSObject_optBoolean(JNIEnv * arg0, jobject arg
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jbooleanArray (*Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray;
|
||||
extern "C" NS_EXPORT jbooleanArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray(JNIEnv * arg0, jobject arg1, jstring arg2) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray(arg0, arg1, arg2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jbooleanArray (*Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray_t)(JNIEnv *, jobject, jstring, jbooleanArray);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray;
|
||||
extern "C" NS_EXPORT jbooleanArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray(JNIEnv * arg0, jobject arg1, jstring arg2, jbooleanArray arg3) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray(arg0, arg1, arg2, arg3);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobject (*Java_org_mozilla_gecko_util_NativeJSObject_getBundle_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getBundle_t f_Java_org_mozilla_gecko_util_NativeJSObject_getBundle;
|
||||
extern "C" NS_EXPORT jobject JNICALL
|
||||
@ -685,6 +723,44 @@ Java_org_mozilla_gecko_util_NativeJSObject_optBundle(JNIEnv * arg0, jobject arg1
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobjectArray (*Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray;
|
||||
extern "C" NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray(JNIEnv * arg0, jobject arg1, jstring arg2) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray(arg0, arg1, arg2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobjectArray (*Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray_t)(JNIEnv *, jobject, jstring, jobjectArray);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray;
|
||||
extern "C" NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray(JNIEnv * arg0, jobject arg1, jstring arg2, jobjectArray arg3) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray(arg0, arg1, arg2, arg3);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jdouble (*Java_org_mozilla_gecko_util_NativeJSObject_getDouble_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getDouble_t f_Java_org_mozilla_gecko_util_NativeJSObject_getDouble;
|
||||
extern "C" NS_EXPORT jdouble JNICALL
|
||||
@ -723,6 +799,44 @@ Java_org_mozilla_gecko_util_NativeJSObject_optDouble(JNIEnv * arg0, jobject arg1
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jdoubleArray (*Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray;
|
||||
extern "C" NS_EXPORT jdoubleArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray(JNIEnv * arg0, jobject arg1, jstring arg2) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray(arg0, arg1, arg2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jdoubleArray (*Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray_t)(JNIEnv *, jobject, jstring, jdoubleArray);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray;
|
||||
extern "C" NS_EXPORT jdoubleArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray(JNIEnv * arg0, jobject arg1, jstring arg2, jdoubleArray arg3) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray(arg0, arg1, arg2, arg3);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jint (*Java_org_mozilla_gecko_util_NativeJSObject_getInt_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getInt_t f_Java_org_mozilla_gecko_util_NativeJSObject_getInt;
|
||||
extern "C" NS_EXPORT jint JNICALL
|
||||
@ -761,6 +875,44 @@ Java_org_mozilla_gecko_util_NativeJSObject_optInt(JNIEnv * arg0, jobject arg1, j
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jintArray (*Java_org_mozilla_gecko_util_NativeJSObject_getIntArray_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getIntArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_getIntArray;
|
||||
extern "C" NS_EXPORT jintArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getIntArray(JNIEnv * arg0, jobject arg1, jstring arg2) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_getIntArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_getIntArray(arg0, arg1, arg2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_getIntArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_getIntArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jintArray (*Java_org_mozilla_gecko_util_NativeJSObject_optIntArray_t)(JNIEnv *, jobject, jstring, jintArray);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_optIntArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_optIntArray;
|
||||
extern "C" NS_EXPORT jintArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optIntArray(JNIEnv * arg0, jobject arg1, jstring arg2, jintArray arg3) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_optIntArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_optIntArray(arg0, arg1, arg2, arg3);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_optIntArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_optIntArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobject (*Java_org_mozilla_gecko_util_NativeJSObject_getObject_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getObject_t f_Java_org_mozilla_gecko_util_NativeJSObject_getObject;
|
||||
extern "C" NS_EXPORT jobject JNICALL
|
||||
@ -799,6 +951,44 @@ Java_org_mozilla_gecko_util_NativeJSObject_optObject(JNIEnv * arg0, jobject arg1
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobjectArray (*Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray;
|
||||
extern "C" NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray(JNIEnv * arg0, jobject arg1, jstring arg2) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray(arg0, arg1, arg2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobjectArray (*Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray_t)(JNIEnv *, jobject, jstring, jobjectArray);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray;
|
||||
extern "C" NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray(JNIEnv * arg0, jobject arg1, jstring arg2, jobjectArray arg3) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray(arg0, arg1, arg2, arg3);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jstring (*Java_org_mozilla_gecko_util_NativeJSObject_getString_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getString_t f_Java_org_mozilla_gecko_util_NativeJSObject_getString;
|
||||
extern "C" NS_EXPORT jstring JNICALL
|
||||
@ -837,6 +1027,44 @@ Java_org_mozilla_gecko_util_NativeJSObject_optString(JNIEnv * arg0, jobject arg1
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobjectArray (*Java_org_mozilla_gecko_util_NativeJSObject_getStringArray_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_getStringArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_getStringArray;
|
||||
extern "C" NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getStringArray(JNIEnv * arg0, jobject arg1, jstring arg2) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_getStringArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_getStringArray(arg0, arg1, arg2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_getStringArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_getStringArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jobjectArray (*Java_org_mozilla_gecko_util_NativeJSObject_optStringArray_t)(JNIEnv *, jobject, jstring, jobjectArray);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_optStringArray_t f_Java_org_mozilla_gecko_util_NativeJSObject_optStringArray;
|
||||
extern "C" NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optStringArray(JNIEnv * arg0, jobject arg1, jstring arg2, jobjectArray arg3) {
|
||||
if (!f_Java_org_mozilla_gecko_util_NativeJSObject_optStringArray) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return nullptr;
|
||||
}
|
||||
return f_Java_org_mozilla_gecko_util_NativeJSObject_optStringArray(arg0, arg1, arg2, arg3);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_util_NativeJSObject_optStringArray", &f_Java_org_mozilla_gecko_util_NativeJSObject_optStringArray);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef jboolean (*Java_org_mozilla_gecko_util_NativeJSObject_has_t)(JNIEnv *, jobject, jstring);
|
||||
static Java_org_mozilla_gecko_util_NativeJSObject_has_t f_Java_org_mozilla_gecko_util_NativeJSObject_has;
|
||||
extern "C" NS_EXPORT jboolean JNICALL
|
||||
|
@ -623,6 +623,20 @@ Java_org_mozilla_gecko_util_NativeJSObject_optBoolean(JNIEnv* env, jobject insta
|
||||
return GetProperty<BooleanProperty>(env, instance, name, FallbackOption::RETURN, fallback);
|
||||
}
|
||||
|
||||
NS_EXPORT jbooleanArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getBooleanArray(
|
||||
JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jbooleanArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optBooleanArray(
|
||||
JNIEnv* env, jobject instance, jstring name, jbooleanArray fallback)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jobject JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getBundle(JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
@ -636,6 +650,20 @@ Java_org_mozilla_gecko_util_NativeJSObject_optBundle(JNIEnv* env, jobject instan
|
||||
return GetProperty<BundleProperty>(env, instance, name, FallbackOption::RETURN, fallback);
|
||||
}
|
||||
|
||||
NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getBundleArray(
|
||||
JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optBundleArray(
|
||||
JNIEnv* env, jobject instance, jstring name, jobjectArray fallback)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jdouble JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getDouble(JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
@ -649,6 +677,20 @@ Java_org_mozilla_gecko_util_NativeJSObject_optDouble(JNIEnv* env, jobject instan
|
||||
return GetProperty<DoubleProperty>(env, instance, name, FallbackOption::RETURN, fallback);
|
||||
}
|
||||
|
||||
NS_EXPORT jdoubleArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getDoubleArray(
|
||||
JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jdoubleArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optDoubleArray(
|
||||
JNIEnv* env, jobject instance, jstring name, jdoubleArray fallback)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jint JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getInt(JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
@ -662,6 +704,20 @@ Java_org_mozilla_gecko_util_NativeJSObject_optInt(JNIEnv* env, jobject instance,
|
||||
return GetProperty<IntProperty>(env, instance, name, FallbackOption::RETURN, fallback);
|
||||
}
|
||||
|
||||
NS_EXPORT jintArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getIntArray(
|
||||
JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jintArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optIntArray(
|
||||
JNIEnv* env, jobject instance, jstring name, jintArray fallback)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jobject JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getObject(JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
@ -675,6 +731,20 @@ Java_org_mozilla_gecko_util_NativeJSObject_optObject(JNIEnv* env, jobject instan
|
||||
return GetProperty<ObjectProperty>(env, instance, name, FallbackOption::RETURN, fallback);
|
||||
}
|
||||
|
||||
NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getObjectArray(
|
||||
JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optObjectArray(
|
||||
JNIEnv* env, jobject instance, jstring name, jobjectArray fallback)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jstring JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getString(JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
@ -688,6 +758,20 @@ Java_org_mozilla_gecko_util_NativeJSObject_optString(JNIEnv* env, jobject instan
|
||||
return GetProperty<StringProperty>(env, instance, name, FallbackOption::RETURN, fallback);
|
||||
}
|
||||
|
||||
NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_getStringArray(
|
||||
JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jobjectArray JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_optStringArray(
|
||||
JNIEnv* env, jobject instance, jstring name, jobjectArray fallback)
|
||||
{
|
||||
return nullptr; // TODO add implementation
|
||||
}
|
||||
|
||||
NS_EXPORT jboolean JNICALL
|
||||
Java_org_mozilla_gecko_util_NativeJSObject_has(JNIEnv* env, jobject instance, jstring name)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user