Home
last modified time | relevance | path

Searched refs:mapKeyAnnotation (Results 1 – 3 of 3) sorted by relevance

/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DMultibindingsScanner.java163 static TypeAndValue<?> typeAndValueOfMapKey(Annotation mapKeyAnnotation) {
164 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) {
165 return new TypeAndValue(TypeLiteral.get(mapKeyAnnotation.annotationType()), mapKeyAnnotation);
168 Method valueMethod = mapKeyAnnotation.annotationType().getDeclaredMethod("value");
171 TypeLiteral.get(mapKeyAnnotation.annotationType()).getReturnType(valueMethod);
172 return new TypeAndValue(returnType, valueMethod.invoke(mapKeyAnnotation));
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DMapKeys.java87 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue() local
89 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
90 return mapKeyAnnotation.unwrapValue() in unwrapValue()
280 AnnotationMirror mapKeyAnnotation, final MapKeySnippet mapKeySnippet) { in annotationSnippet() argument
284 mapKeyAnnotation.getAnnotationType().asElement().getSimpleName(), in annotationSnippet()
287 getAnnotationValuesWithDefaults(mapKeyAnnotation).entrySet(), in annotationSnippet()
DKey.java286 AnnotationMirror mapKeyAnnotation = getMapKey(method).get();
287 return MapKeys.unwrapValue(mapKeyAnnotation).isPresent()
288 ? getUnwrappedMapKeyType(mapKeyAnnotation.getAnnotationType(), types)
289 : mapKeyAnnotation.getAnnotationType();