Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

java_lang_Class.c

Go to the documentation of this file.
00001 /*!
00002  * @file java_lang_Class.c
00003  *
00004  * @brief Sample subset of @c @b java.lang.Class 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_Class.c $ \$Id: java_lang_Class.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_Class.h"
00053 #include "jlClass.h"
00054 
00055 /*!
00056  * @brief Native implementation
00057  * of @c @b java.lang.Class.registerNatives()
00058  *
00059  * @verbatim
00060    Class:     java_lang_Class
00061    Method:    registerNatives
00062    Signature: ()V
00063    @endverbatim
00064  *
00065  */
00066 JNIEXPORT void JNICALL
00067     Java_java_lang_Class_registerNatives(JNIEnv *env, jclass jc)
00068 {
00069    /* Contents to be determined */
00070 }
00071 
00072 
00073 /*!
00074  * @brief Native implementation
00075  * of @c @b java.lang.Class.unregisterNatives()
00076  *
00077  * @verbatim
00078    Class:     java_lang_Class
00079    Method:    unregisterNatives
00080    Signature: ()V
00081    @endverbatim
00082  *
00083  */
00084 JNIEXPORT void JNICALL
00085     Java_java_lang_Class_unregisterNatives(JNIEnv *env, jclass jc)
00086 {
00087    /* Contents to be determined */
00088 }
00089 
00090 
00091 /*!
00092  * @brief Native implementation
00093  * of @c @b java.lang.Class.isArray()
00094  *
00095  * @verbatim
00096    Class:     java_lang_Class
00097    Method:    isArray
00098    Signature: ()Z
00099    @endverbatim
00100  *
00101  */
00102 JNIEXPORT jboolean JNICALL
00103     Java_java_lang_Class_isArray(JNIEnv *env, jobject jo)
00104 {
00105     return(jlClass_isArray(jo));
00106 }
00107 
00108 
00109 /*!
00110  * @brief Native implementation
00111  * of @c @b java.lang.Class.isPrimative()
00112  *
00113  * @verbatim
00114    Class:     java_lang_Class
00115    Method:    isPrimitive
00116    Signature: ()Z
00117    @endverbatim
00118  *
00119  */
00120 JNIEXPORT jboolean JNICALL
00121     Java_java_lang_Class_isPrimitive(JNIEnv *env, jobject jo)
00122 {
00123     return(jlClass_isPrimative(jo));
00124 }
00125 
00126 
00127 /* EOF */
00128 

Generated on Fri Sep 30 18:48:54 2005 by  doxygen 1.4.4