KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jas > DeprecatedAttr


1 /**
2  * This is used to represent the deprecated attr
3  *
4  * @author $Author: Jennifer Lhotak$
5  * @version $Revision: 1.1 $
6  */

7
8 package jas;
9
10 import java.io.*;
11
12 public class DeprecatedAttr
13 {
14   static CP attr = new AsciiCP("Deprecated");
15
16   /**
17    * Create a new deprecated attribute
18    */

19
20   public DeprecatedAttr()
21   { }
22
23   void resolve(ClassEnv e)
24   {
25     e.addCPItem(attr);
26   }
27
28   void write(ClassEnv e, DataOutputStream out)
29     throws IOException, jasError
30   {
31     out.writeShort(e.getCPIndex(attr));
32     out.writeInt(0);
33   }
34 }
35
36   
37
Popular Tags