Lines Matching refs:mapKey
86 static Optional<? extends AnnotationValue> unwrapValue(AnnotationMirror mapKey) { in unwrapValue() argument
87 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
89 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
91 ? Optional.of(getOnlyElement(getAnnotationValuesWithDefaults(mapKey).values())) in unwrapValue()
172 AnnotationMirror mapKey, DaggerElements elements) { in directMapKeyExpression() argument
173 Optional<? extends AnnotationValue> unwrappedValue = unwrapValue(mapKey); in directMapKeyExpression()
174 AnnotationExpression annotationExpression = new AnnotationExpression(mapKey); in directMapKeyExpression()
176 if (MoreTypes.asTypeElement(mapKey.getAnnotationType()) in directMapKeyExpression()
189 getOnlyElement(getAnnotationValuesWithDefaults(mapKey).keySet()).getReturnType(); in directMapKeyExpression()
214 .filter(mapKey -> !isMapKeyPubliclyAccessible(mapKey)) in mapKeyFactoryMethod()
216 mapKey -> in mapKeyFactoryMethod()
219 .returns(TypeName.get(mapKeyType(mapKey, types))) in mapKeyFactoryMethod()
220 .addStatement("return $L", directMapKeyExpression(mapKey, elements)) in mapKeyFactoryMethod()