Searched refs:mapKeyAnnotation (Results 1 – 3 of 3) sorted by relevance
163 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));
87 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue() local89 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() argument284 mapKeyAnnotation.getAnnotationType().asElement().getSimpleName(), in annotationSnippet()287 getAnnotationValuesWithDefaults(mapKeyAnnotation).entrySet(), in annotationSnippet()
286 AnnotationMirror mapKeyAnnotation = getMapKey(method).get();287 return MapKeys.unwrapValue(mapKeyAnnotation).isPresent()288 ? getUnwrappedMapKeyType(mapKeyAnnotation.getAnnotationType(), types)289 : mapKeyAnnotation.getAnnotationType();