MCPcopy Create free account
hub / github.com/antlr/codebuff / getAnnotation

Method getAnnotation

output/java_guava/1.4.16/Parameter.java:72–82  ·  view source on GitHub ↗
(Class<A> annotationType)

Source from the content-addressed store, hash-verified

70 }
71
72 @Override
73 @Nullable
74 public <A extends Annotation> A getAnnotation(Class<A> annotationType) {
75 checkNotNull(annotationType);
76 for (Annotation annotation : annotations) {
77 if (annotationType.isInstance(annotation)) {
78 return annotationType.cast(annotation);
79 }
80 }
81 return null;
82 }
83
84 @Override
85 public Annotation[] getAnnotations() {

Callers 1

isAnnotationPresentMethod · 0.95

Calls 2

checkNotNullMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected