Source code: com/chaoswg/xtc4y/classdesc/FieldInfo.java
1 //$Header: /cvsroot/xtc4y/xtc4y/src/com/chaoswg/xtc4y/classdesc/FieldInfo.java,v 1.1.1.1 2003/08/07 13:40:29 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:29 $, 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.util.Vector;
21
22 import java.io.DataInputStream;
23 import java.io.DataOutputStream;
24 import java.io.IOException;
25
26 /**
27 * This class describes the information for a filed
28 * @author Mike Toggweiler
29 **/
30 public class FieldInfo extends NameDescriptorInfo {
31 /**
32 * Creates a FieldInfo and initializes it from a DataInputStream
33 * @param dis the DataInputStream to read from
34 * @param cp the constant pool to resolve indices
35 **/
36 protected FieldInfo(DataInputStream dis, ConstantPool cp)
37 throws IOException {
38 super(dis, cp);
39 }
40
41 /**
42 * Construct a new field with a given access flag, the name and the
43 * descriptor
44 * @param an instance of a FieldAccessFlags class
45 * @param name the field name
46 * @param descriptor the field descriptor
47 **/
48 public FieldInfo(FieldAccessFlags access, String name,
49 String descriptor) {
50 super(access, name, descriptor);
51 }
52
53 /**
54 * @param access the access flag
55 * @return a concrete implementation of the abstract AccessFlags class
56 **/
57 protected AccessFlags getAccessFlags(short access) {
58 return new FieldAccessFlags(access);
59 }
60 }