Home
last modified time | relevance | path

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

/external/guice/core/src/com/google/inject/internal/
DProvidesMethodScanner.java151 static TypeAndValue<?> typeAndValueOfMapKey(Annotation mapKeyAnnotation) { in typeAndValueOfMapKey() argument
152 if (!mapKeyAnnotation.annotationType().getAnnotation(MapKey.class).unwrapValue()) { in typeAndValueOfMapKey()
153 return new TypeAndValue(TypeLiteral.get(mapKeyAnnotation.annotationType()), mapKeyAnnotation); in typeAndValueOfMapKey()
156 Method valueMethod = mapKeyAnnotation.annotationType().getDeclaredMethod("value"); in typeAndValueOfMapKey()
159 TypeLiteral.get(mapKeyAnnotation.annotationType()).getReturnType(valueMethod); in typeAndValueOfMapKey()
160 return new TypeAndValue(returnType, valueMethod.invoke(mapKeyAnnotation)); in typeAndValueOfMapKey()
/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();