1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.jdo.impl.enhancer.classfile;
20
21 import java.io.*;
22
23 /***
24 * Class representing a reference to an interface method of some class
25 * in the constant pool of a class file.
26 */
27 public class ConstInterfaceMethodRef extends ConstBasicMemberRef {
28
29 public static final int MyTag = CONSTANTInterfaceMethodRef;
30
31
32
33 /***
34 * The tag of this constant entry
35 */
36 public int tag () { return MyTag; }
37
38 /***
39 * A printable representation
40 */
41 public String toString () {
42 return "CONSTANTInterfaceMethodRef(" + indexAsString() + "): " +
43 super.toString();
44 }
45
46 /* package local methods *//package-summary/html">class="comment"> package local methods *//package-summary.html">
47
48 ConstInterfaceMethodRef (ConstClass cname, ConstNameAndType NT) {
49 super(cname, NT);
50 }
51
52 ConstInterfaceMethodRef (int cnameIndex, int NT_index) {
53 super(cnameIndex, NT_index);
54 }
55
56 static ConstInterfaceMethodRef read (DataInputStream input)
57 throws IOException {
58 int cname = input.readUnsignedShort();
59 int NT = input.readUnsignedShort();
60 return new ConstInterfaceMethodRef (cname, NT);
61 }
62 }