Returns the prototypes of the attributes used by this class, its fields and its methods. @return the prototypes of the attributes used by this class, its fields and its methods.
()
| 700 | * @return the prototypes of the attributes used by this class, its fields and its methods. |
| 701 | */ |
| 702 | private Attribute[] getAttributePrototypes() { |
| 703 | Attribute.Set attributePrototypes = new Attribute.Set(); |
| 704 | attributePrototypes.addAttributes(firstAttribute); |
| 705 | FieldWriter fieldWriter = firstField; |
| 706 | while (fieldWriter != null) { |
| 707 | fieldWriter.collectAttributePrototypes(attributePrototypes); |
| 708 | fieldWriter = (FieldWriter) fieldWriter.fv; |
| 709 | } |
| 710 | MethodWriter methodWriter = firstMethod; |
| 711 | while (methodWriter != null) { |
| 712 | methodWriter.collectAttributePrototypes(attributePrototypes); |
| 713 | methodWriter = (MethodWriter) methodWriter.mv; |
| 714 | } |
| 715 | return attributePrototypes.toArray(); |
| 716 | } |
| 717 | |
| 718 | // ----------------------------------------------------------------------------------------------- |
| 719 | // Utility methods: constant pool management for Attribute sub classes |
no test coverage detected