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

Method getDeclaredAnnotations

classpath/java/lang/Class.java:667–680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

665 }
666
667 public Annotation[] getDeclaredAnnotations() {
668 if (vmClass.addendum.annotationTable != null) {
669 Classes.link(vmClass);
670
671 Object[] table = (Object[]) vmClass.addendum.annotationTable;
672 Annotation[] array = new Annotation[table.length];
673 for (int i = 0; i < table.length; ++i) {
674 array[i] = getAnnotation(vmClass, (Object[]) table[i]);
675 }
676 return array;
677 } else {
678 return new Annotation[0];
679 }
680 }
681
682 private int countAnnotations() {
683 int count = 0;

Callers

nothing calls this directly

Calls 2

linkMethod · 0.95
getAnnotationMethod · 0.95

Tested by

no test coverage detected