KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sli > kim > classfile > AttributeInfo


1 package sli.kim.classfile;
2
3 /**
4 * A class for storing information about a class/field/method attribute.
5 * This class is usually only used for non-standard attributes. Standard
6 * attributes such as SourceFile, Code, LineNumberTable, LocalVariableTable,
7 * Exceptions, and ConstantValue are handled with specialized methods in
8 * the appropriate Info class.
9 *
10 * @see ClassInfo
11 * @see FieldInfo
12 * @see MethodInfo
13 */

14 public class AttributeInfo {
15     public String JavaDoc name;
16     public byte[] data;
17
18     public AttributeInfo(String JavaDoc name, byte[] data) {
19         this.name = name;
20         this.data = data;
21     }
22
23     public String JavaDoc getName() {
24         return name;
25     }
26
27     public byte[] getData() {
28         return data;
29     }
30 }
31
Popular Tags