1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 * http://www.mozilla.org/MPL/
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
16 * The Original Code is Mozilla Communicator client code, released
19 * The Initial Developer of the Original Code is
20 * Netscape Communications Corporation.
21 * Portions created by the Initial Developer are Copyright (C) 1998
22 * the Initial Developer. All Rights Reserved.
26 * Alternatively, the contents of this file may be used under the terms of
27 * either of the GNU General Public License Version 2 or later (the "GPL"),
28 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
41 * This file is part of the Java-vendor-neutral implementation of LiveConnect
43 * Declarations of private (internal) functions/data/types for
44 * JavaScript <==> Java communication.
49 /* Header for class netscape_javascript_JSObject */
51 #ifndef _Included_netscape_javascript_JSObject
52 #define _Included_netscape_javascript_JSObject
57 * Class: netscape_javascript_JSObject
61 JNIEXPORT
void JNICALL Java_netscape_javascript_JSObject_initClass
65 * Class: netscape_javascript_JSObject
67 * Signature: (Ljava/lang/String;)Ljava/lang/Object;
69 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_getMember
70 (JNIEnv
*, jobject
, jstring
);
73 * Class: netscape_javascript_JSObject
75 * Signature: (I)Ljava/lang/Object;
77 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_getSlot
78 (JNIEnv
*, jobject
, jint
);
81 * Class: netscape_javascript_JSObject
83 * Signature: (Ljava/lang/String;Ljava/lang/Object;)V
85 JNIEXPORT
void JNICALL Java_netscape_javascript_JSObject_setMember
86 (JNIEnv
*, jobject
, jstring
, jobject
);
89 * Class: netscape_javascript_JSObject
91 * Signature: (ILjava/lang/Object;)V
93 JNIEXPORT
void JNICALL Java_netscape_javascript_JSObject_setSlot
94 (JNIEnv
*, jobject
, jint
, jobject
);
97 * Class: netscape_javascript_JSObject
98 * Method: removeMember
99 * Signature: (Ljava/lang/String;)V
101 JNIEXPORT
void JNICALL Java_netscape_javascript_JSObject_removeMember
102 (JNIEnv
*, jobject
, jstring
);
105 * Class: netscape_javascript_JSObject
107 * Signature: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
109 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_call
110 (JNIEnv
*, jobject
, jstring
, jobjectArray
);
113 * Class: netscape_javascript_JSObject
115 * Signature: (Ljava/lang/String;)Ljava/lang/Object;
117 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_eval
118 (JNIEnv
*, jobject
, jstring
);
121 * Class: netscape_javascript_JSObject
123 * Signature: ()Ljava/lang/String;
125 JNIEXPORT jstring JNICALL Java_netscape_javascript_JSObject_toString
129 * Class: netscape_javascript_JSObject
131 * Signature: (Ljava/applet/Applet;)Lnetscape/javascript/JSObject;
133 JNIEXPORT jobject JNICALL Java_netscape_javascript_JSObject_getWindow
134 (JNIEnv
*, jclass
, jobject
);
137 * Class: netscape_javascript_JSObject
141 JNIEXPORT
void JNICALL Java_netscape_javascript_JSObject_finalize
145 * Class: netscape_javascript_JSObject
147 * Signature: (Ljava/lang/Object;)Z
149 JNIEXPORT jboolean JNICALL Java_netscape_javascript_JSObject_equals
150 (JNIEnv
*, jobject
, jobject
);