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

Method getAnnotation

classpath/java/lang/Class.java:641–648  ·  view source on GitHub ↗
(VMClass c, Object[] a)

Source from the content-addressed store, hash-verified

639 }
640
641 private static Annotation getAnnotation(VMClass c, Object[] a) {
642 if (a[0] == null) {
643 a[0] = Proxy.newProxyInstance
644 (c.loader, new Class[] { (Class) a[1] },
645 new AnnotationInvocationHandler(a));
646 }
647 return (Annotation) a[0];
648 }
649
650 public <T extends Annotation> T getAnnotation(Class<T> class_) {
651 for (VMClass c = vmClass; c != null; c = c.super_) {

Callers 3

isAnnotationPresentMethod · 0.95
getAnnotationsMethod · 0.95

Calls 2

newProxyInstanceMethod · 0.95
linkMethod · 0.95

Tested by

no test coverage detected