comparison src/java.base/share/native/libjava/ConstantPool.c @ 13591:d78919a39b77

8141615: Add new public methods to sun.reflect.ConstantPool Reviewed-by: twisti, iignatyev, coleenp
author kshefov
date Tue, 12 Jan 2016 17:03:06 +0300
parents f08705540498
children 8606d027b2c2
comparison
equal deleted inserted replaced
0:2ca79ea7b3fa 1:ac7042e1e829
1 /* 1 /*
2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 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. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 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 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
42 (JNIEnv *env, jobject unused, jobject jcpool, jint index) 42 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
43 { 43 {
44 return JVM_ConstantPoolGetClassAtIfLoaded(env, unused, jcpool, index); 44 return JVM_ConstantPoolGetClassAtIfLoaded(env, unused, jcpool, index);
45 } 45 }
46 46
47 JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getClassRefIndexAt0
48 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
49 {
50 return JVM_ConstantPoolGetClassRefIndexAt(env, unused, jcpool, index);
51 }
52
47 JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getMethodAt0 53 JNIEXPORT jobject JNICALL Java_sun_reflect_ConstantPool_getMethodAt0
48 (JNIEnv *env, jobject unused, jobject jcpool, jint index) 54 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
49 { 55 {
50 return JVM_ConstantPoolGetMethodAt(env, unused, jcpool, index); 56 return JVM_ConstantPoolGetMethodAt(env, unused, jcpool, index);
51 } 57 }
70 76
71 JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getMemberRefInfoAt0 77 JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getMemberRefInfoAt0
72 (JNIEnv *env, jobject unused, jobject jcpool, jint index) 78 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
73 { 79 {
74 return JVM_ConstantPoolGetMemberRefInfoAt(env, unused, jcpool, index); 80 return JVM_ConstantPoolGetMemberRefInfoAt(env, unused, jcpool, index);
81 }
82
83 JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getNameAndTypeRefIndexAt0
84 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
85 {
86 return JVM_ConstantPoolGetNameAndTypeRefIndexAt(env, unused, jcpool, index);
87 }
88
89 JNIEXPORT jobjectArray JNICALL Java_sun_reflect_ConstantPool_getNameAndTypeRefInfoAt0
90 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
91 {
92 return JVM_ConstantPoolGetNameAndTypeRefInfoAt(env, unused, jcpool, index);
75 } 93 }
76 94
77 JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getIntAt0 95 JNIEXPORT jint JNICALL Java_sun_reflect_ConstantPool_getIntAt0
78 (JNIEnv *env, jobject unused, jobject jcpool, jint index) 96 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
79 { 97 {
107 JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getUTF8At0 125 JNIEXPORT jstring JNICALL Java_sun_reflect_ConstantPool_getUTF8At0
108 (JNIEnv *env, jobject unused, jobject jcpool, jint index) 126 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
109 { 127 {
110 return JVM_ConstantPoolGetUTF8At(env, unused, jcpool, index); 128 return JVM_ConstantPoolGetUTF8At(env, unused, jcpool, index);
111 } 129 }
130
131 JNIEXPORT jbyte JNICALL Java_sun_reflect_ConstantPool_getTagAt0
132 (JNIEnv *env, jobject unused, jobject jcpool, jint index)
133 {
134 return JVM_ConstantPoolGetTagAt(env, unused, jcpool, index);
135 }
136