Source code: com/chaoswg/xtc4y/classdesc/FieldrefCPEntry.java
1 //$Header: /cvsroot/xtc4y/xtc4y/src/com/chaoswg/xtc4y/classdesc/FieldrefCPEntry.java,v 1.1.1.1 2003/08/07 13:40:30 toggm Exp $
2 /******************************************************************************
3 * XTC4y - eXtreme Testing Collection 4 you *
4 * -------------------------------------------------------------------------- *
5 * URL: http://www.chaoswg.com/xtc4y *
6 * Author: Mike Toggweiler (2.dog@gmx.ch) *
7 * *
8 * Last Updated: $Date: 2003/08/07 13:40:30 $, by $Author: toggm $ *
9 * Version: $Revision: 1.1.1.1 $ *
10 * -------------------------------------------------------------------------- *
11 * COPYRIGHT: (c) 2003 by Mike Toggweiler *
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 *****************************************************************************/
18 package com.chaoswg.xtc4y.classdesc;
19
20 import java.io.DataInputStream;
21 import java.io.DataOutputStream;
22 import java.io.IOException;
23
24 /**
25 * this class represent a Fieldref constant pool entry. No setter methods
26 * are implemented because the values may be changed in the returned
27 * constant pool entries.
28 * @author Mike Toggweiler
29 **/
30 public class FieldrefCPEntry extends RefCPEntry {
31 /**
32 * The tag identifying a Fieldref cp entry
33 **/
34 public static final byte TAG = 9;
35
36 /**
37 * Create a fieldref entry
38 * @param classCP a ClassCPEntry
39 * @param natCP a NameAndTypeCPEntry
40 **/
41 public FieldrefCPEntry(ClassCPEntry classCP, NameAndTypeCPEntry natCP) {
42 super(TAG, classCP, natCP);
43 }
44
45 /**
46 * Creates a FielrefCPEntry and initializes it from a DataInputStream
47 * @param dis the DataInputStream to read from
48 **/
49 protected FieldrefCPEntry(DataInputStream dis)
50 throws IOException {
51 super(TAG, dis);
52 }
53 }