| 1 6 7 package com.yworks.yguard.obf.classfile; 8 9 13 public class RuntimeVisibleParameterAnnotationsAttrInfo extends AttrInfo 14 { 15 private int u1parameterCount; 16 private ParameterAnnotationInfo[] annotations; 17 18 19 public RuntimeVisibleParameterAnnotationsAttrInfo(ClassFile cf, int attrNameIndex, int attrLength) 20 { 21 super(cf, attrNameIndex, attrLength); 22 } 23 24 protected ParameterAnnotationInfo[] getParameterAnnotations(){ 25 return annotations; 26 } 27 28 protected String getAttrName() 29 { 30 return ClassConstants.ATTR_RuntimeVisibleParameterAnnotations; 31 } 32 33 public void writeInfo(java.io.DataOutput dout) throws java.io.IOException  34 { 35 dout.writeByte(u1parameterCount); 36 for (int i = 0; i < u1parameterCount; i++){ 37 annotations[i].write(dout); 38 } 39 } 40 41 protected void markUtf8RefsInInfo(ConstantPool pool) { 42 for (int i = 0; i < u1parameterCount; i++){ 43 annotations[i].markUtf8RefsInInfo(pool); 44 } 45 } 46 47 48 protected void readInfo(java.io.DataInput din) throws java.io.IOException  49 { 50 u1parameterCount = din.readUnsignedByte(); 51 annotations = new ParameterAnnotationInfo[u1parameterCount]; 52 for (int i = 0; i < u1parameterCount; i++){ 53 annotations[i] = ParameterAnnotationInfo.create(din); 54 } 55 } 56 57 58 } 59 | Popular Tags |