1 package jrre.classloader.classfile.pool_entries;
2
3 public class CPMethodRef extends CPInfo{
4
5 private int classIndex;
6 private int nameTypeIndex;
7
8 /***
9 * Gets the NameTypeIndex.
10 */
11 public int getNameTypeIndex(){
12 return this.nameTypeIndex;
13 }
14
15 /***
16 * Sets the NameTypeIndex.
17 * @param NameTypeIndex The value to set it to.
18 */
19 public void setNameTypeIndex(int nameTypeIndex){
20 this.nameTypeIndex = nameTypeIndex;
21 }
22
23 /***
24 * Gets the ClassIndex.
25 */
26 public int getClassIndex(){
27 return this.classIndex;
28 }
29
30 /***
31 * Sets the ClassIndex.
32 * @param ClassIndex The value to set it to.
33 */
34 public void setClassIndex(int classIndex){
35 this.classIndex = classIndex;
36 }
37
38 public CPMethodRef(int classIndex, int nameTypeIndex){
39 this.classIndex = classIndex; this.nameTypeIndex = nameTypeIndex;
40 }
41
42 public String toString(){
43 return "MethodRef: classIndex = " + classIndex + ", nameTypeIndex = " + nameTypeIndex;
44 }
45
46 }
47
This page was automatically generated by Maven