< prev index next >

src/java.base/share/native/libjava/ConstantPool.c

Print this page


   1 /*
   2  * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  57 }
  58 
  59 JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getFieldAt0
  60 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  61 {
  62   return JVM_ConstantPoolGetFieldAt(env, unused, jcpool, index);
  63 }
  64 
  65 JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getFieldAtIfLoaded0
  66 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  67 {
  68   return JVM_ConstantPoolGetFieldAtIfLoaded(env, unused, jcpool, index);
  69 }
  70 
  71 JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getMemberRefInfoAt0
  72 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  73 {
  74   return JVM_ConstantPoolGetMemberRefInfoAt(env, unused, jcpool, index);
  75 }
  76 












  77 JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getIntAt0
  78 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  79 {
  80   return JVM_ConstantPoolGetIntAt(env, unused, jcpool, index);
  81 }
  82 
  83 JNIEXPORT jlong JNICALL Java_sun_reflect_ConstantPool_getLongAt0
  84 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  85 {
  86   return JVM_ConstantPoolGetLongAt(env, unused, jcpool, index);
  87 }
  88 
  89 JNIEXPORT jfloat JNICALL Java_sun_reflect_ConstantPool_getFloatAt0
  90 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  91 {
  92   return JVM_ConstantPoolGetFloatAt(env, unused, jcpool, index);
  93 }
  94 
  95 JNIEXPORT jdouble JNICALL Java_sun_reflect_ConstantPool_getDoubleAt0
  96 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  97 {
  98   return JVM_ConstantPoolGetDoubleAt(env, unused, jcpool, index);
  99 }
 100 
 101 JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getStringAt0
 102 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
 103 {
 104   return JVM_ConstantPoolGetStringAt(env, unused, jcpool, index);
 105 }
 106 
 107 JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getUTF8At0
 108 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
 109 {
 110   return JVM_ConstantPoolGetUTF8At(env, unused, jcpool, index);
 111 }







   1 /*
   2  * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  57 }
  58 
  59 JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getFieldAt0
  60 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  61 {
  62   return JVM_ConstantPoolGetFieldAt(env, unused, jcpool, index);
  63 }
  64 
  65 JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getFieldAtIfLoaded0
  66 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  67 {
  68   return JVM_ConstantPoolGetFieldAtIfLoaded(env, unused, jcpool, index);
  69 }
  70 
  71 JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getMemberRefInfoAt0
  72 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  73 {
  74   return JVM_ConstantPoolGetMemberRefInfoAt(env, unused, jcpool, index);
  75 }
  76 
  77 JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getNameAndTypeRefInfoAt0
  78 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  79 {
  80   return JVM_ConstantPoolGetNameAndTypeRefInfoAt(env, unused, jcpool, index);
  81 }
  82 
  83 JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getInvokedynamicRefInfoAt0
  84 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  85 {
  86   return JVM_ConstantPoolGetInvokedynamicRefInfoAt(env, unused, jcpool, index);
  87 }
  88 
  89 JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getIntAt0
  90 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  91 {
  92   return JVM_ConstantPoolGetIntAt(env, unused, jcpool, index);
  93 }
  94 
  95 JNIEXPORT jlong JNICALL Java_sun_reflect_ConstantPool_getLongAt0
  96 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
  97 {
  98   return JVM_ConstantPoolGetLongAt(env, unused, jcpool, index);
  99 }
 100 
 101 JNIEXPORT jfloat JNICALL Java_sun_reflect_ConstantPool_getFloatAt0
 102 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
 103 {
 104   return JVM_ConstantPoolGetFloatAt(env, unused, jcpool, index);
 105 }
 106 
 107 JNIEXPORT jdouble JNICALL Java_sun_reflect_ConstantPool_getDoubleAt0
 108 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
 109 {
 110   return JVM_ConstantPoolGetDoubleAt(env, unused, jcpool, index);
 111 }
 112 
 113 JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getStringAt0
 114 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
 115 {
 116   return JVM_ConstantPoolGetStringAt(env, unused, jcpool, index);
 117 }
 118 
 119 JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getUTF8At0
 120 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
 121 {
 122   return JVM_ConstantPoolGetUTF8At(env, unused, jcpool, index);
 123 }
 124 
 125 JNIEXPORT jbyte JNICALL Java_sun_reflect_ConstantPool_getTagAt0
 126 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
 127 {
 128   return JVM_ConstantPoolGetTagAt(env, unused, jcpool, index);
 129 }
 130 
< prev index next >