()
| 680 | } |
| 681 | |
| 682 | private int countAnnotations() { |
| 683 | int count = 0; |
| 684 | for (VMClass c = vmClass; c != null; c = c.super_) { |
| 685 | if (c.addendum != null && c.addendum.annotationTable != null) { |
| 686 | count += ((Object[]) c.addendum.annotationTable).length; |
| 687 | } |
| 688 | } |
| 689 | return count; |
| 690 | } |
| 691 | |
| 692 | public Annotation[] getAnnotations() { |
| 693 | Annotation[] array = new Annotation[countAnnotations()]; |