KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > yworks > yguard > obf > classfile > AnnotationDefaultAttrInfo


1 /*
2  * RuntimeVisibleAnnotationsAttrInfo.java
3  *
4  * Created on April 20, 2005, 11:51 AM
5  */

6
7 package com.yworks.yguard.obf.classfile;
8
9 /**
10  *
11  * @author muellese
12  */

13 public class AnnotationDefaultAttrInfo extends AttrInfo
14 {
15   protected ElementValueInfo elementValue;
16   
17   /** Creates a new instance of AnnotationDefaultAttrInfo */
18   public AnnotationDefaultAttrInfo(ClassFile cf, int attrNameIndex, int attrLength)
19   {
20     super(cf, attrNameIndex, attrLength);
21   }
22   
23   protected String JavaDoc getAttrName()
24   {
25     return ClassConstants.ATTR_AnnotationDefault;
26   }
27   
28   public void writeInfo(java.io.DataOutput JavaDoc dout) throws java.io.IOException JavaDoc
29   {
30     elementValue.write(dout);
31   }
32   
33   
34   
35   protected void readInfo(java.io.DataInput JavaDoc din) throws java.io.IOException JavaDoc
36   {
37     elementValue = ElementValueInfo.create(din);
38   }
39
40   protected void markUtf8RefsInInfo(ConstantPool pool)
41   {
42     elementValue.markUtf8RefsInInfo(pool);
43   }
44 }
45
Popular Tags