01: /*
02: * RuntimeVisibleAnnotationsAttrInfo.java
03: *
04: * Created on April 20, 2005, 11:51 AM
05: */
06:
07: package com.yworks.yguard.obf.classfile;
08:
09: /**
10: *
11: * @author muellese
12: */
13: public class AnnotationDefaultAttrInfo extends AttrInfo {
14: protected ElementValueInfo elementValue;
15:
16: /** Creates a new instance of AnnotationDefaultAttrInfo */
17: public AnnotationDefaultAttrInfo(ClassFile cf, int attrNameIndex,
18: int attrLength) {
19: super (cf, attrNameIndex, attrLength);
20: }
21:
22: protected String getAttrName() {
23: return ClassConstants.ATTR_AnnotationDefault;
24: }
25:
26: public void writeInfo(java.io.DataOutput dout)
27: throws java.io.IOException {
28: elementValue.write(dout);
29: }
30:
31: protected void readInfo(java.io.DataInput din)
32: throws java.io.IOException {
33: elementValue = ElementValueInfo.create(din);
34: }
35:
36: protected void markUtf8RefsInInfo(ConstantPool pool) {
37: elementValue.markUtf8RefsInInfo(pool);
38: }
39: }
|