KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jas > SyntheticAttr


1 /**
2  * This is used to represent the synthetic 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 SyntheticAttr
13 {
14   static CP attr = new AsciiCP("Synthetic");
15
16   /**
17    * Create a new synthetic attribute
18    */

19
20   public SyntheticAttr()
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