MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getAnnotations

Method getAnnotations

classpath/java/lang/reflect/Field.java:373–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371 }
372
373 public Annotation[] getAnnotations() {
374 if (hasAnnotations()) {
375 Object[] table = (Object[]) vmField.addendum.annotationTable;
376 Annotation[] array = new Annotation[table.length];
377 for (int i = 0; i < table.length; ++i) {
378 array[i] = getAnnotation((Object[]) table[i]);
379 }
380 return array;
381 } else {
382 return new Annotation[0];
383 }
384 }
385
386 public Annotation[] getDeclaredAnnotations() {
387 return getAnnotations();

Callers 1

Calls 2

hasAnnotationsMethod · 0.95
getAnnotationMethod · 0.95

Tested by

no test coverage detected