1 | private int classIndex;↵ | | 1 | private int classIndex;↵
|
2 | /** I↵ | | 2 | /**↵
|
3 | ndex into the constant pool for the name and type entry↵ | | 3 | * the index into the constant pool of the name and type entry↵
|
| | | 4 | * describing the method↵
|
4 | */↵ | | 5 | */↵
|
5 | private int nameAndTypeIndex;↵ | | 6 | private int nameAndTypeIndex;↵
|
|
6 | /** Constructor. */↵ | | 7 | /** Constructor. */↵
|
7 | public FieldRefCPInfo() {↵ | | 8 | public InterfaceMethodRefCPInfo() {↵
|
8 | super(CONSTANT_FIELDREF, 1);↵ | | 9 | super(CONSTANT_INTERFACEMETHODREF, 1);↵
|
9 | }↵ | | 10 | }↵
|
|
10 | /**↵ | | 11 | /**↵
|
11 | * read a constant pool entry from a class stream.↵ | | 12 | * read a constant pool entry from a class stream.↵
|
12 | *↵ | | 13 | *↵
|
13 | * @param cpStream the DataInputStream which contains the constant pool↵ | | 14 | * @param cpStream the DataInputStream which contains the constant pool↵
|
14 | * entry to be read.↵ | | 15 | * entry to be read.↵
|
15 | * @exception IOException if there is a problem reading the entry from↵ | | 16 | * @exception IOException if there is a problem reading the entry from↵
|
16 | * the stream.↵ | | 17 | * the stream.↵
|
17 | */↵ | | 18 | */↵
|
18 | public void read(DataInputStream cpStream) throws IOException {↵ | | 19 | public void read(DataInputStream cpStream) throws IOException {↵
|
19 | classIndex = cpStream.readUnsignedShort();↵ | | 20 | classIndex = cpStream.readUnsignedShort();↵
|
20 | nameAndTypeIndex = cpStream.readUnsignedShort() | | 21 | nameAndTypeIndex = cpStream.readUnsignedShort()
|