/// <summary>
 /// Default ctor
 /// </summary>
 protected AnnotationsAttribute(Annotation[] annotations)
 {
     this.annotations = annotations;
 }
Exemple #2
0
 /// <summary>
 /// Read the data of a RuntimeVisibleAnnotations or RuntimeInvisibleAnnotations attribute.
 /// </summary>
 private Annotation[] ReadAnnotationsAttribute(ConstantPool cp)
 {
     var count = stream.ReadU2();
     var result = new Annotation[count];
     for (var i = 0; i < count; i++)
     {
         result[i] = ReadAnnotation(cp);
     }
     return result;
 }