00001 /*! 00002 * @file java_lang_Object.c 00003 * 00004 * @brief Sample subset of @c @b java.lang.Object native 00005 * methods 00006 * 00007 * This file contains a stub sample implementation this class. 00008 * 00009 * The full implementation of this source file should contain each and 00010 * every native method that is declared by the implmentation and it 00011 * should be stored in a shared archive along with the other classes 00012 * of this Java package's native methods. 00013 * 00014 * In this stub sample, the parameter <b><code>(JNIEnv *)</code></b> 00015 * is @e not considered. Obviously, this is required for proper 00016 * linkage in a real implementation. 00017 * 00018 * 00019 * @section Control 00020 * 00021 * \$URL: https://svn.apache.org/path/name/java_lang_Object.c $ \$Id: java_lang_Object.c 0 09/28/2005 dlydick $ 00022 * 00023 * Copyright 2005 The Apache Software Foundation 00024 * or its licensors, as applicable. 00025 * 00026 * Licensed under the Apache License, Version 2.0 ("the License"); 00027 * you may not use this file except in compliance with the License. 00028 * You may obtain a copy of the License at 00029 * 00030 * http://www.apache.org/licenses/LICENSE-2.0 00031 * 00032 * Unless required by applicable law or agreed to in writing, 00033 * software distributed under the License is distributed on an 00034 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 00035 * either express or implied. 00036 * 00037 * See the License for the specific language governing permissions 00038 * and limitations under the License. 00039 * 00040 * @version \$LastChangedRevision: 0 $ 00041 * 00042 * @date \$LastChangedDate: 09/28/2005 $ 00043 * 00044 * @author \$LastChangedBy: dlydick $ 00045 * Original code contributed by Daniel Lydick on 09/28/2005. 00046 * 00047 * @section Reference 00048 * 00049 */ 00050 00051 #include <jni.h> 00052 #include "java_lang_Object.h" 00053 #include "jlObject.h" 00054 00055 #ifdef __cplusplus 00056 extern "C" { 00057 #endif 00058 00059 /*! 00060 * @brief Native implementation 00061 * of @c @b java.lang.Object.registerNatives() 00062 * 00063 * @verbatim 00064 Class: java_lang_Object 00065 Method: registerNatives 00066 Signature: ()V 00067 @endverbatim 00068 * 00069 */ 00070 JNIEXPORT void JNICALL 00071 Java_java_lang_Object_registerNatives(JNIEnv *env, jclass jc) 00072 { 00073 /* Contents to be determined */ 00074 } 00075 00076 00077 /*! 00078 * @brief Native implementation 00079 * of @c @b java.lang.Object.unregisterNatives() 00080 * 00081 * @verbatim 00082 Class: java_lang_Object 00083 Method: unregisterNatives 00084 Signature: ()V 00085 @endverbatim 00086 * 00087 */ 00088 JNIEXPORT void JNICALL 00089 Java_java_lang_Object_unregisterNatives(JNIEnv *env, jclass jc) 00090 { 00091 /* Contents to be determined */ 00092 } 00093 00094 00095 /*! 00096 * @brief Native implementation 00097 * of @c @b java.lang.Object.getClass() 00098 * 00099 * @verbatim 00100 Class: java_lang_Object 00101 Method: getClass 00102 Signature: ()Ljava/lang/Class; 00103 @endverbatim 00104 * 00105 */ 00106 JNIEXPORT jobject JNICALL 00107 Java_java_lang_Object_getClass(JNIEnv *env, jobject jo) 00108 { 00109 return(jlObject_getClass(jo)); 00110 } 00111 00112 00113 /*! 00114 * @brief Native implementation 00115 * of @c @b java.lang.Object.hashCode() 00116 * 00117 * @verbatim 00118 Class: java_lang_Object 00119 Method: hashCode 00120 Signature: ()I 00121 @endverbatim 00122 * 00123 */ 00124 JNIEXPORT jint JNICALL 00125 Java_java_lang_Object_hashCode(JNIEnv *env, jobject jo) 00126 { 00127 return(jlObject_hashCode(jo)); 00128 } 00129 00130 00131 /*! 00132 * @brief Native implementation 00133 * of @c @b java.lang.Object.wait() 00134 * 00135 * @verbatim 00136 Class: java_lang_Object 00137 Method: wait 00138 Signature: ()V 00139 @endverbatim 00140 * 00141 */ 00142 JNIEXPORT void JNICALL 00143 Java_java_lang_Object_wait(JNIEnv *env, jobject jo) 00144 { 00145 jlObject_wait4ever(jo); 00146 00147 return; 00148 } 00149 00150 00151 /*! 00152 * @brief Native implementation 00153 * of @c @b java.lang.Object.wait(long) 00154 * 00155 * @verbatim 00156 Class: java_lang_Object 00157 Method: wait 00158 Signature: (J)V 00159 @endverbatim 00160 * 00161 */ 00162 JNIEXPORT void JNICALL 00163 Java_java_lang_Object_wait__J(JNIEnv *env, jobject jo, jlong jl) 00164 { 00165 jlObject_waittimed(jo, jl); 00166 00167 return; 00168 } 00169 00170 00171 #ifdef __cplusplus 00172 } 00173 #endif 00174 00175 00176 /* EOF */ 00177