Searched refs:mapKeyAnnotation (Results 1 – 5 of 5) sorted by relevance
84 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue() local86 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()87 return mapKeyAnnotation.unwrapValue() in unwrapValue()92 static TypeMirror mapKeyType(AnnotationMirror mapKeyAnnotation, DaggerTypes types) { in mapKeyType() argument93 return unwrapValue(mapKeyAnnotation).isPresent() in mapKeyType()94 ? getUnwrappedMapKeyType(mapKeyAnnotation.getAnnotationType(), types) in mapKeyType()95 : mapKeyAnnotation.getAnnotationType(); in mapKeyType()149 AnnotationMirror mapKeyAnnotation = binding.mapKeyAnnotation().get(); in getMapKeyExpression() local151 mapKeyAnnotation, requestingClass.packageName()) in getMapKeyExpression()152 ? directMapKeyExpression(mapKeyAnnotation, elements) in getMapKeyExpression()[all …]
56 public final Optional<AnnotationMirror> mapKeyAnnotation() { in mapKeyAnnotation() method in ContributionBinding
151 static TypeAndValue<?> typeAndValueOfMapKey(Annotation mapKeyAnnotation) { in typeAndValueOfMapKey() argument152 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()
102 AnnotationMirror mapKeyAnnotation = in validateMethod() local105 elements.getTypeElement(injectedTypeFromMapKey(mapKeyAnnotation).get()); in validateMethod()
181 .wrap(mapBinding.mapKeyAnnotation().get().getAnnotationType()))); in indexByMapKeyAnnotationType()