Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/reflect/ConstantPool.c
38829 views
/*1* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#include "jvm.h"26#include "sun_reflect_ConstantPool.h"2728JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getSize029(JNIEnv *env, jobject unused, jobject jcpool)30{31return JVM_ConstantPoolGetSize(env, unused, jcpool);32}3334JNIEXPORT jclass JNICALL Java_sun_reflect_ConstantPool_getClassAt035(JNIEnv *env, jobject unused, jobject jcpool, jint index)36{37return JVM_ConstantPoolGetClassAt(env, unused, jcpool, index);38}3940JNIEXPORT jclass JNICALL Java_sun_reflect_ConstantPool_getClassAtIfLoaded041(JNIEnv *env, jobject unused, jobject jcpool, jint index)42{43return JVM_ConstantPoolGetClassAtIfLoaded(env, unused, jcpool, index);44}4546JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getMethodAt047(JNIEnv *env, jobject unused, jobject jcpool, jint index)48{49return JVM_ConstantPoolGetMethodAt(env, unused, jcpool, index);50}5152JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getMethodAtIfLoaded053(JNIEnv *env, jobject unused, jobject jcpool, jint index)54{55return JVM_ConstantPoolGetMethodAtIfLoaded(env, unused, jcpool, index);56}5758JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getFieldAt059(JNIEnv *env, jobject unused, jobject jcpool, jint index)60{61return JVM_ConstantPoolGetFieldAt(env, unused, jcpool, index);62}6364JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getFieldAtIfLoaded065(JNIEnv *env, jobject unused, jobject jcpool, jint index)66{67return JVM_ConstantPoolGetFieldAtIfLoaded(env, unused, jcpool, index);68}6970JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getMemberRefInfoAt071(JNIEnv *env, jobject unused, jobject jcpool, jint index)72{73return JVM_ConstantPoolGetMemberRefInfoAt(env, unused, jcpool, index);74}7576JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getIntAt077(JNIEnv *env, jobject unused, jobject jcpool, jint index)78{79return JVM_ConstantPoolGetIntAt(env, unused, jcpool, index);80}8182JNIEXPORT jlong JNICALL Java_sun_reflect_ConstantPool_getLongAt083(JNIEnv *env, jobject unused, jobject jcpool, jint index)84{85return JVM_ConstantPoolGetLongAt(env, unused, jcpool, index);86}8788JNIEXPORT jfloat JNICALL Java_sun_reflect_ConstantPool_getFloatAt089(JNIEnv *env, jobject unused, jobject jcpool, jint index)90{91return JVM_ConstantPoolGetFloatAt(env, unused, jcpool, index);92}9394JNIEXPORT jdouble JNICALL Java_sun_reflect_ConstantPool_getDoubleAt095(JNIEnv *env, jobject unused, jobject jcpool, jint index)96{97return JVM_ConstantPoolGetDoubleAt(env, unused, jcpool, index);98}99100JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getStringAt0101(JNIEnv *env, jobject unused, jobject jcpool, jint index)102{103return JVM_ConstantPoolGetStringAt(env, unused, jcpool, index);104}105106JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getUTF8At0107(JNIEnv *env, jobject unused, jobject jcpool, jint index)108{109return JVM_ConstantPoolGetUTF8At(env, unused, jcpool, index);110}111112113