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

Method getAnnotations

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

Source from the content-addressed store, hash-verified

690 }
691
692 public Annotation[] getAnnotations() {
693 Annotation[] array = new Annotation[countAnnotations()];
694 int i = 0;
695 for (VMClass c = vmClass; c != null; c = c.super_) {
696 if (c.addendum != null && c.addendum.annotationTable != null) {
697 Object[] table = (Object[]) c.addendum.annotationTable;
698 for (int j = 0; j < table.length; ++j) {
699 array[i++] = getAnnotation(vmClass, (Object[]) table[j]);
700 }
701 }
702 }
703
704 return array;
705 }
706
707 public ProtectionDomain getProtectionDomain() {
708 return Classes.getProtectionDomain(vmClass);

Callers

nothing calls this directly

Calls 2

countAnnotationsMethod · 0.95
getAnnotationMethod · 0.95

Tested by

no test coverage detected