Lines Matching refs:mapKey
83 static Optional<? extends AnnotationValue> unwrapValue(AnnotationMirror mapKey) { in unwrapValue() argument
84 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
86 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
88 ? Optional.of(getOnlyElement(getAnnotationValuesWithDefaults(mapKey).values())) in unwrapValue()
169 AnnotationMirror mapKey, DaggerElements elements) { in directMapKeyExpression() argument
170 Optional<? extends AnnotationValue> unwrappedValue = unwrapValue(mapKey); in directMapKeyExpression()
171 AnnotationExpression annotationExpression = new AnnotationExpression(mapKey); in directMapKeyExpression()
173 if (MoreTypes.asTypeElement(mapKey.getAnnotationType()) in directMapKeyExpression()
186 getOnlyElement(getAnnotationValuesWithDefaults(mapKey).keySet()).getReturnType(); in directMapKeyExpression()
211 .filter(mapKey -> !isMapKeyPubliclyAccessible(mapKey)) in mapKeyFactoryMethod()
213 mapKey -> in mapKeyFactoryMethod()
216 .returns(TypeName.get(mapKeyType(mapKey, types))) in mapKeyFactoryMethod()
217 .addStatement("return $L", directMapKeyExpression(mapKey, elements)) in mapKeyFactoryMethod()