/* * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ #include "jvm.h" #include "jdk_internal_reflect_ConstantPool.h" JNIEXPORT jclass JNICALL Java_jdk_internal_reflect_ConstantPool_getHolder1 (JNIEnv *env, jobject jcpool) { return JVM_ConstantPool1GetHolder(env, jcpool); } JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getSize1 (JNIEnv *env, jobject jcpool) { return JVM_ConstantPool1GetSize(env, jcpool); } JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getWordCountAt1 (JNIEnv *env, jobject jcpool, jint index) { return JVM_ConstantPool1GetWordCountAt(env, jcpool, index); } JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getWordAt1 (JNIEnv *env, jobject jcpool, jint index, jint word) { return JVM_ConstantPool1GetWordAt(env, jcpool, index, word); } JNIEXPORT jobject JNICALL Java_jdk_internal_reflect_ConstantPool_getRefAt1 (JNIEnv *env, jobject jcpool, jint index, jint word, jbyte resolving, jobject if_not_present) { return JVM_ConstantPool1GetRefAt(env, jcpool, index, word, resolving, if_not_present); } JNIEXPORT void JNICALL Java_jdk_internal_reflect_ConstantPool_copyOutRefsAt1 (JNIEnv *env, jobject jcpool, jint index, jint start_word, jint end_word, jobject buf, jint buf_pos, jbyte resolving, jobject if_not_present, jobject if_null_constant, jboolean skip_non_null) { JVM_ConstantPool1CopyOutRefsAt(env, jcpool, index, start_word, end_word, buf, buf_pos, resolving, if_not_present, if_null_constant, skip_non_null); } JNIEXPORT jint JNICALL Java_jdk_internal_reflect_ConstantPool_getIntAt1 (JNIEnv *env, jobject jcpool, jint index) { return JVM_ConstantPool1GetIntAt(env, jcpool, index); } JNIEXPORT jlong JNICALL Java_jdk_internal_reflect_ConstantPool_getLongAt1 (JNIEnv *env, jobject jcpool, jint index) { return JVM_ConstantPool1GetLongAt(env, jcpool, index); } JNIEXPORT jfloat JNICALL Java_jdk_internal_reflect_ConstantPool_getFloatAt1 (JNIEnv *env, jobject jcpool, jint index) { return JVM_ConstantPool1GetFloatAt(env, jcpool, index); } JNIEXPORT jdouble JNICALL Java_jdk_internal_reflect_ConstantPool_getDoubleAt1 (JNIEnv *env, jobject jcpool, jint index) { return JVM_ConstantPool1GetDoubleAt(env, jcpool, index); } JNIEXPORT jbyte JNICALL Java_jdk_internal_reflect_ConstantPool_getTagAt1 (JNIEnv *env, jobject jcpool, jint index) { return JVM_ConstantPool1GetTagAt(env, jcpool, index); } JNIEXPORT jbyteArray JNICALL Java_jdk_internal_reflect_ConstantPool_getTags1 (JNIEnv *env, jobject jcpool) { return JVM_ConstantPool1GetTags(env, jcpool); }