()
| 128 | } |
| 129 | |
| 130 | public Annotation[] getAnnotations() { |
| 131 | if (vmMethod.hasAnnotations()) { |
| 132 | Object[] table = (Object[]) vmMethod.addendum.annotationTable; |
| 133 | Annotation[] array = new Annotation[table.length]; |
| 134 | for (int i = 0; i < table.length; ++i) { |
| 135 | array[i] = Classes.getAnnotation |
| 136 | (vmMethod.class_.loader, (Object[]) table[i]); |
| 137 | } |
| 138 | return array; |
| 139 | } else { |
| 140 | return new Annotation[0]; |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | public Annotation[] getDeclaredAnnotations() { |
| 145 | return getAnnotations(); |