Esempio n. 1
0
  private FieldOrMethodInfo parseFieldOrMethodInfo() throws IOException {

    FieldOrMethodInfo result =
        new FieldOrMethodInfo(
            in.readUnsignedShort(), in.readUnsignedShort(), in.readUnsignedShort());

    int attributesCount = in.readUnsignedShort();
    for (int a = 0; a < attributesCount; a++) {
      AttributeInfo attribute = parseAttribute();
      if ("RuntimeVisibleAnnotations".equals(attribute.name)) {
        result.runtimeVisibleAnnotations = attribute;
      }
    }

    return result;
  }