Path: blob/master/src/java.base/share/native/libjava/ConstantPool.c
41149 views
/*1* Copyright (c) 2003, 2015, 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 "jdk_internal_reflect_ConstantPool.h"2728JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getSize029(JNIEnv *env, jobject unused, jobject jcpool)30{31return JVM_ConstantPoolGetSize(env, unused, jcpool);32}3334JNIEXPORT jclass JNICALL Java_jdk_internal_reflect_ConstantPool_getClassAt035(JNIEnv *env, jobject unused, jobject jcpool, jint index)36{37return JVM_ConstantPoolGetClassAt(env, unused, jcpool, index);38}3940JNIEXPORT jclass JNICALL Java_jdk_internal_reflect_ConstantPool_getClassAtIfLoaded041(JNIEnv *env, jobject unused, jobject jcpool, jint index)42{43return JVM_ConstantPoolGetClassAtIfLoaded(env, unused, jcpool, index);44}4546JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getClassRefIndexAt047(JNIEnv *env, jobject unused, jobject jcpool, jint index)48{49return JVM_ConstantPoolGetClassRefIndexAt(env, unused, jcpool, index);50}5152JNIEXPORT jobject JNICALL Java_jdk_internal_reflect_ConstantPool_getMethodAt053(JNIEnv *env, jobject unused, jobject jcpool, jint index)54{55return JVM_ConstantPoolGetMethodAt(env, unused, jcpool, index);56}5758JNIEXPORT jobject JNICALL Java_jdk_internal_reflect_ConstantPool_getMethodAtIfLoaded059(JNIEnv *env, jobject unused, jobject jcpool, jint index)60{61return JVM_ConstantPoolGetMethodAtIfLoaded(env, unused, jcpool, index);62}6364JNIEXPORT jobject JNICALL Java_jdk_internal_reflect_ConstantPool_getFieldAt065(JNIEnv *env, jobject unused, jobject jcpool, jint index)66{67return JVM_ConstantPoolGetFieldAt(env, unused, jcpool, index);68}6970JNIEXPORT jobject JNICALL Java_jdk_internal_reflect_ConstantPool_getFieldAtIfLoaded071(JNIEnv *env, jobject unused, jobject jcpool, jint index)72{73return JVM_ConstantPoolGetFieldAtIfLoaded(env, unused, jcpool, index);74}7576JNIEXPORT jobjectArray JNICALL Java_jdk_internal_reflect_ConstantPool_getMemberRefInfoAt077(JNIEnv *env, jobject unused, jobject jcpool, jint index)78{79return JVM_ConstantPoolGetMemberRefInfoAt(env, unused, jcpool, index);80}8182JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getNameAndTypeRefIndexAt083(JNIEnv *env, jobject unused, jobject jcpool, jint index)84{85return JVM_ConstantPoolGetNameAndTypeRefIndexAt(env, unused, jcpool, index);86}8788JNIEXPORT jobjectArray JNICALL Java_jdk_internal_reflect_ConstantPool_getNameAndTypeRefInfoAt089(JNIEnv *env, jobject unused, jobject jcpool, jint index)90{91return JVM_ConstantPoolGetNameAndTypeRefInfoAt(env, unused, jcpool, index);92}9394JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getIntAt095(JNIEnv *env, jobject unused, jobject jcpool, jint index)96{97return JVM_ConstantPoolGetIntAt(env, unused, jcpool, index);98}99100JNIEXPORT jlong JNICALL Java_jdk_internal_reflect_ConstantPool_getLongAt0101(JNIEnv *env, jobject unused, jobject jcpool, jint index)102{103return JVM_ConstantPoolGetLongAt(env, unused, jcpool, index);104}105106JNIEXPORT jfloat JNICALL Java_jdk_internal_reflect_ConstantPool_getFloatAt0107(JNIEnv *env, jobject unused, jobject jcpool, jint index)108{109return JVM_ConstantPoolGetFloatAt(env, unused, jcpool, index);110}111112JNIEXPORT jdouble JNICALL Java_jdk_internal_reflect_ConstantPool_getDoubleAt0113(JNIEnv *env, jobject unused, jobject jcpool, jint index)114{115return JVM_ConstantPoolGetDoubleAt(env, unused, jcpool, index);116}117118JNIEXPORT jstring JNICALL Java_jdk_internal_reflect_ConstantPool_getStringAt0119(JNIEnv *env, jobject unused, jobject jcpool, jint index)120{121return JVM_ConstantPoolGetStringAt(env, unused, jcpool, index);122}123124JNIEXPORT jstring JNICALL Java_jdk_internal_reflect_ConstantPool_getUTF8At0125(JNIEnv *env, jobject unused, jobject jcpool, jint index)126{127return JVM_ConstantPoolGetUTF8At(env, unused, jcpool, index);128}129130JNIEXPORT jbyte JNICALL Java_jdk_internal_reflect_ConstantPool_getTagAt0131(JNIEnv *env, jobject unused, jobject jcpool, jint index)132{133return JVM_ConstantPoolGetTagAt(env, unused, jcpool, index);134}135136137138