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

Method getAnnotations

classpath/java/lang/reflect/Method.java:130–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 2

mainMethod · 0.95

Calls 2

getAnnotationMethod · 0.95
hasAnnotationsMethod · 0.45

Tested by 1

mainMethod · 0.76